修改 打印显示数量

master
wanghao 2 days ago
parent 6fadcf9d31
commit 3e8a38698e

@ -245,7 +245,7 @@
</select>
<!--完成任务-->
<update id="updataInspectionTaskByObjid">
UPDATE record_inspection_task SET task_state = #{state},remark = #{remark} WHERE objid = #{tableId};
UPDATE record_inspection_task SET task_state = #{state},remark = #{remark},update_time=now() WHERE objid = #{tableId};
</update>
<insert id="insertInspetionPictrue">

@ -36,6 +36,15 @@ public class RecordInspectionTask extends BaseEntity
@Excel(name = "完成状态")
private String taskState;
private String imgPath;
private int sanQty;
public int getSanQty() {
return sanQty;
}
public void setSanQty(int sanQty) {
this.sanQty = sanQty;
}
public String getImgPath() {
return imgPath;

@ -12,10 +12,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="planePosition" column="plane_position" />
<result property="taskState" column="task_state" />
<result property="imgPath" column="img_path" />
<result property="updateTime" column="update_time" />
<result property="sanQty" column="sanQty" />
</resultMap>
<sql id="selectRecordInspectionTaskVo">
select objid, inspection_id, area_id, area_name, plane_position, task_state from record_inspection_task
select objid, inspection_id, area_id, area_name, plane_position, task_state,update_time from record_inspection_task
</sql>
<select id="selectRecordInspectionTaskList" parameterType="RecordInspectionTask" resultMap="RecordInspectionTaskResult">
@ -75,14 +77,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<select id="iRecordInspectionTaskService" resultMap="RecordInspectionTaskResult">
select rit.objid, rit.inspection_id, area_id, area_name, plane_position, task_state,
select rit.objid,
rit.inspection_id,
area_id,
area_name,
plane_position,
count(info.inspection_id) as sanQty,
task_state,
rii.img_path
from record_inspection_task rit
left join bg_wheel_chocks.record_inspection_img rii on rit.objid = rii.task_id
left join record_inspection_img rii on rit.objid = rii.task_id
left join record_inspection_info as info on info.inspection_id=rit.inspection_id and
info.location_code=plane_position
where rit.inspection_id in
<foreach item="objid" collection="array" open="(" separator="," close=")">
#{objid}
</foreach>
group by info. location_code, rit.inspection_id;
</select>
</mapper>

@ -30,7 +30,7 @@
width: calc(48% - 2px);
margin: 12px 1% 0 1%;
border: 1px solid #1111;
height: 206px;
height: 180px;
}
.printList .item .card .left, .printList .item .card .right {

@ -113,6 +113,9 @@
formatter: function (value, row, index) {
return $.table.selectDictLabel(taskStateDatas, value);
}
}, {
field: 'updateTime',
title: '完成时间'
},
{
title: '操作',
@ -195,7 +198,8 @@
title: '提交时间'
}
]});
]
});
$(childTable1).bootstrapTable({
url: ctx + "manage/record_inspection_img/list",
method: 'post',

Loading…
Cancel
Save