Compare commits
3 Commits
8abea9c774
...
bdf8e4e1da
| Author | SHA1 | Date |
|---|---|---|
|
|
bdf8e4e1da | |
|
|
ccc3157ab7 | |
|
|
039ad034b4 |
|
|
@ -155,6 +155,7 @@ public class QualityInspectionServiceImpl implements QualityInspectionService {
|
||||||
list.forEach(vo -> {
|
list.forEach(vo -> {
|
||||||
vo.setId(num[0]);
|
vo.setId(num[0]);
|
||||||
num[0]++;
|
num[0]++;
|
||||||
|
vo.setRectStatus( "1".equals(vo.getRectStatus())?"已整改":"待整改");
|
||||||
});
|
});
|
||||||
ExportParams exportParams = new ExportParams("质量检查", "质量检查", ExcelType.XSSF);
|
ExportParams exportParams = new ExportParams("质量检查", "质量检查", ExcelType.XSSF);
|
||||||
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, SafetyViolationVo.class, list);
|
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, SafetyViolationVo.class, list);
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ public class SafetyViolationServiceImpl implements SafetyViolationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public ServerResponse updateSafetyViolationById(SafetyViolationDto bean) {
|
public ServerResponse updateSafetyViolationById(SafetyViolationDto bean) {
|
||||||
LoginUser loginUser = UserUtil.getLoginUser();
|
LoginUser loginUser = UserUtil.getLoginUser();
|
||||||
bean.setUpdateUserId(loginUser.getId());
|
bean.setUpdateUserId(loginUser.getId());
|
||||||
|
|
@ -166,6 +167,7 @@ public class SafetyViolationServiceImpl implements SafetyViolationService {
|
||||||
list.forEach(vo -> {
|
list.forEach(vo -> {
|
||||||
vo.setId(num[0]);
|
vo.setId(num[0]);
|
||||||
num[0]++;
|
num[0]++;
|
||||||
|
vo.setRectStatus( "1".equals(vo.getRectStatus())?"已整改":"待整改");
|
||||||
});
|
});
|
||||||
ExportParams exportParams = new ExportParams("安全违章", "安全违章", ExcelType.XSSF);
|
ExportParams exportParams = new ExportParams("安全违章", "安全违章", ExcelType.XSSF);
|
||||||
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, SafetyViolationVo.class, list);
|
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, SafetyViolationVo.class, list);
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,38 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SafetyViolationVo extends PageEntity {
|
public class SafetyViolationVo extends PageEntity {
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@Excel(name = "序号", width = 20.0, orderNum = "0")
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 工程名称
|
||||||
|
*/
|
||||||
|
@Excel(name = "工程名称", width = 20.0, orderNum = "1")
|
||||||
|
private String proName;
|
||||||
|
/**
|
||||||
|
* 工序名称
|
||||||
|
*/
|
||||||
|
@Excel(name = "工序名称", width = 20.0, orderNum = "2")
|
||||||
|
private String gxName;
|
||||||
|
/**
|
||||||
|
* 违章地点
|
||||||
|
*/
|
||||||
|
@Excel(name = "违章/检查地点", width = 20.0, orderNum = "3")
|
||||||
|
private String vioPlace;
|
||||||
|
/**
|
||||||
|
* 违章描述
|
||||||
|
*/
|
||||||
|
@Excel(name = "违章/检查描述", width = 20.0, orderNum = "4")
|
||||||
|
private String vioDesc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 违章照片数量
|
||||||
|
*/
|
||||||
|
@Excel(name = "违章/缺陷照片数量", width = 20.0, orderNum = "5")
|
||||||
|
private String vioPhotoNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查人
|
* 检查人
|
||||||
*/
|
*/
|
||||||
|
|
@ -22,6 +54,38 @@ public class SafetyViolationVo extends PageEntity {
|
||||||
*/
|
*/
|
||||||
@Excel(name = "违章/检查时间", width = 20.0, orderNum = "7")
|
@Excel(name = "违章/检查时间", width = 20.0, orderNum = "7")
|
||||||
private String createTime;
|
private String createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 整改期限
|
||||||
|
*/
|
||||||
|
@Excel(name = "整改期限", width = 20.0, orderNum = "8")
|
||||||
|
private String rectDate;
|
||||||
|
/**
|
||||||
|
* 整改状态 0.待整改 1.已整改
|
||||||
|
*/
|
||||||
|
@Excel(name = "整改状态", width = 20.0, orderNum = "9",replace = {"待整改_0,已整改_1"})
|
||||||
|
private String rectStatus;
|
||||||
|
/**
|
||||||
|
* 整改说明
|
||||||
|
*/
|
||||||
|
@Excel(name = "整改说明", width = 20.0, orderNum = "10")
|
||||||
|
private String rectDesc;
|
||||||
|
/**
|
||||||
|
* 整改照片数量
|
||||||
|
*/
|
||||||
|
@Excel(name = "整改照片数量", width = 20.0, orderNum = "11")
|
||||||
|
private String rectPhotoNum;
|
||||||
|
/**
|
||||||
|
* 整改人
|
||||||
|
*/
|
||||||
|
@Excel(name = "整改人", width = 20.0, orderNum = "12")
|
||||||
|
private String rectUserName;
|
||||||
|
/**
|
||||||
|
* 整改时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "整改时间", width = 20.0, orderNum = "13")
|
||||||
|
private String rectTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
|
|
@ -38,16 +102,8 @@ public class SafetyViolationVo extends PageEntity {
|
||||||
* 工序id
|
* 工序id
|
||||||
*/
|
*/
|
||||||
private Long gxId;
|
private Long gxId;
|
||||||
/**
|
|
||||||
* 工序名称
|
|
||||||
*/
|
|
||||||
@Excel(name = "工序名称", width = 20.0, orderNum = "2")
|
|
||||||
private String gxName;
|
|
||||||
/**
|
|
||||||
* id
|
|
||||||
*/
|
|
||||||
@Excel(name = "序号", width = 20.0, orderNum = "0")
|
|
||||||
private Long id;
|
|
||||||
/**
|
/**
|
||||||
* 是否可用 1.可用 0.不可用
|
* 是否可用 1.可用 0.不可用
|
||||||
*/
|
*/
|
||||||
|
|
@ -64,36 +120,8 @@ public class SafetyViolationVo extends PageEntity {
|
||||||
* 工程id
|
* 工程id
|
||||||
*/
|
*/
|
||||||
private Long proId;
|
private Long proId;
|
||||||
/**
|
|
||||||
* 工程名称
|
|
||||||
*/
|
|
||||||
@Excel(name = "工程名称", width = 20.0, orderNum = "1")
|
|
||||||
private String proName;
|
|
||||||
/**
|
|
||||||
* 整改期限
|
|
||||||
*/
|
|
||||||
@Excel(name = "整改期限", width = 20.0, orderNum = "8")
|
|
||||||
private String rectDate;
|
|
||||||
/**
|
|
||||||
* 整改说明
|
|
||||||
*/
|
|
||||||
@Excel(name = "整改说明", width = 20.0, orderNum = "10")
|
|
||||||
private String rectDesc;
|
|
||||||
/**
|
|
||||||
* 整改状态 0.待整改 1.已整改
|
|
||||||
*/
|
|
||||||
@Excel(name = "整改状态", width = 20.0, orderNum = "9",replace = "0=待整改,1=已整改")
|
|
||||||
private String rectStatus;
|
|
||||||
/**
|
|
||||||
* 整改时间
|
|
||||||
*/
|
|
||||||
@Excel(name = "整改时间", width = 20.0, orderNum = "13")
|
|
||||||
private String rectTime;
|
|
||||||
/**
|
|
||||||
* 整改人
|
|
||||||
*/
|
|
||||||
@Excel(name = "整改人", width = 20.0, orderNum = "12")
|
|
||||||
private String rectUserName;
|
|
||||||
/**
|
/**
|
||||||
* 修改时间
|
* 修改时间
|
||||||
*/
|
*/
|
||||||
|
|
@ -111,26 +139,7 @@ public class SafetyViolationVo extends PageEntity {
|
||||||
* 违章时间
|
* 违章时间
|
||||||
*/
|
*/
|
||||||
private String vioDate;
|
private String vioDate;
|
||||||
/**
|
|
||||||
* 违章描述
|
|
||||||
*/
|
|
||||||
@Excel(name = "违章/检查描述", width = 20.0, orderNum = "4")
|
|
||||||
private String vioDesc;
|
|
||||||
/**
|
|
||||||
* 违章地点
|
|
||||||
*/
|
|
||||||
@Excel(name = "违章/检查地点", width = 20.0, orderNum = "3")
|
|
||||||
private String vioPlace;
|
|
||||||
/**
|
|
||||||
* 违章照片数量
|
|
||||||
*/
|
|
||||||
@Excel(name = "违章/缺陷照片数量", width = 20.0, orderNum = "5")
|
|
||||||
private String vioPhotoNum;
|
|
||||||
/**
|
|
||||||
* 整改照片数量
|
|
||||||
*/
|
|
||||||
@Excel(name = "整改照片数量", width = 20.0, orderNum = "11")
|
|
||||||
private String rectPhotoNum;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 违章照片
|
* 违章照片
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,19 @@
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''">id,</if>
|
<if test="id != null and id != ''">id,</if>
|
||||||
<if test="proId != null and proId != ''">pro_id,</if>
|
<if test="proId != null and proId != ''">pro_id,</if>
|
||||||
<if test="proName != null">pro_name,</if>
|
<if test="proName != null and proName != ''">pro_name,</if>
|
||||||
<if test="majorId != null and majorId != ''">major_id,</if>
|
<if test="majorId != null and majorId != ''">major_id,</if>
|
||||||
<if test="majorName != null">major_name,</if>
|
<if test="majorName != null and majorName != ''">major_name,</if>
|
||||||
<if test="gxId != null and gxId != ''">gx_id,</if>
|
<if test="gxId != null and gxId != ''">gx_id,</if>
|
||||||
<if test="gxName != null">gx_name,</if>
|
<if test="gxName != null and gxName != ''">gx_name,</if>
|
||||||
<if test="checkUserName != null">check_user_name,</if>
|
<if test="checkUserName != null and checkUserName != ''">check_user_name,</if>
|
||||||
<if test="vioDate != null">vio_date,</if>
|
<if test="vioDate != null and vioDate != ''">vio_date,</if>
|
||||||
<if test="vioPlace != null">vio_place,</if>
|
<if test="vioPlace != null and vioPlace != ''" >vio_place,</if>
|
||||||
<if test="vioDesc != null">vio_desc,</if>
|
<if test="vioDesc != null and vioDesc != ''" >vio_desc,</if>
|
||||||
<if test="rectDate != null">rect_date,</if>
|
<if test="rectDate != null and rectDate != ''">rect_date,</if>
|
||||||
<if test="rectUserName != null">rect_user_name,</if>
|
<if test="rectUserName != null and rectUserName != ''">rect_user_name,</if>
|
||||||
<if test="rectTime != null">rect_time,</if>
|
<if test="rectTime != null and rectTime != ''">rect_time,</if>
|
||||||
<if test="rectDesc != null">rect_desc,</if>
|
<if test="rectDesc != null and rectDesc != ''" >rect_desc,</if>
|
||||||
<if test="rectStatus != null">rect_status,</if>
|
<if test="rectStatus != null">rect_status,</if>
|
||||||
<if test="buildBeforeDesc != null">build_before_desc,</if>
|
<if test="buildBeforeDesc != null">build_before_desc,</if>
|
||||||
<if test="buildUnderDesc != null">build_under_desc,</if>
|
<if test="buildUnderDesc != null">build_under_desc,</if>
|
||||||
|
|
@ -39,18 +39,18 @@
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''">#{id},</if>
|
<if test="id != null and id != ''">#{id},</if>
|
||||||
<if test="proId != null and proId != ''">#{proId},</if>
|
<if test="proId != null and proId != ''">#{proId},</if>
|
||||||
<if test="proName != null">#{proName},</if>
|
<if test="proName != null and proName != ''">#{proName},</if>
|
||||||
<if test="majorId != null and majorId != ''">#{majorId},</if>
|
<if test="majorId != null and majorId != ''">#{majorId},</if>
|
||||||
<if test="majorName != null">#{majorName},</if>
|
<if test="majorName != null and majorName != ''">#{majorName},</if>
|
||||||
<if test="gxId != null and gxId != ''">#{gxId},</if>
|
<if test="gxId != null and gxId != ''">#{gxId},</if>
|
||||||
<if test="gxName != null and gxName != ''">#{gxName},</if>
|
<if test="gxName != null and gxName != ''">#{gxName},</if>
|
||||||
<if test="checkUserName != null">#{checkUserName},</if>
|
<if test="checkUserName != null and checkUserName != ''">#{checkUserName},</if>
|
||||||
<if test="vioDate != null and vioDate != ''">#{vioDate},</if>
|
<if test="vioDate != null and vioDate != ''">#{vioDate},</if>
|
||||||
<if test="vioPlace != null">#{vioPlace},</if>
|
<if test="vioPlace != null and vioPlace != ''">#{vioPlace},</if>
|
||||||
<if test="vioDesc != null">#{vioDesc},</if>
|
<if test="vioDesc != null and vioDesc != ''">#{vioDesc},</if>
|
||||||
<if test="rectDate != null and rectDate != ''">#{rectDate},</if>
|
<if test="rectDate != null and rectDate != ''">#{rectDate},</if>
|
||||||
<if test="rectUserName != null">#{rectUserName},</if>
|
<if test="rectUserName != null and rectUserName != ''">#{rectUserName},</if>
|
||||||
<if test="rectTime != null">#{rectTime},</if>
|
<if test="rectTime != null and rectTime != ''">#{rectTime},</if>
|
||||||
<if test="rectDesc != null and rectDesc != ''">#{rectDesc},</if>
|
<if test="rectDesc != null and rectDesc != ''">#{rectDesc},</if>
|
||||||
<if test="rectStatus != null">#{rectStatus},</if>
|
<if test="rectStatus != null">#{rectStatus},</if>
|
||||||
<if test="buildBeforeDesc != null">#{buildBeforeDesc},</if>
|
<if test="buildBeforeDesc != null">#{buildBeforeDesc},</if>
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
sfr.original_file_path
|
sfr.original_file_path
|
||||||
FROM
|
FROM
|
||||||
sys_file_resource sfr
|
sys_file_resource sfr
|
||||||
LEFT JOIN sys_distinct sd ON sd.dict_value = sfr.source_type
|
LEFT JOIN sys_distinct sd ON sd.dict_value = sfr.source_type and sd.p_id = '114'
|
||||||
AND sd.del_flag = 0
|
AND sd.del_flag = 0
|
||||||
LEFT JOIN tb_comprehensive_query tcq ON tcq.id = sfr.source_id and tcq.upload_type = sfr.upload_type
|
LEFT JOIN tb_comprehensive_query tcq ON tcq.id = sfr.source_id and tcq.upload_type = sfr.upload_type
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,18 @@
|
||||||
gx_id,
|
gx_id,
|
||||||
gx_name,
|
gx_name,
|
||||||
check_user_name,
|
check_user_name,
|
||||||
|
<if test="vioDate != null and vioDate !='' ">
|
||||||
check_date,
|
check_date,
|
||||||
|
</if>
|
||||||
check_place,
|
check_place,
|
||||||
check_desc,
|
check_desc,
|
||||||
|
<if test="rectDate != null and rectDate !='' ">
|
||||||
rect_date,
|
rect_date,
|
||||||
|
</if>
|
||||||
rect_user_name,
|
rect_user_name,
|
||||||
|
<if test="rectTime != null and rectTime !='' ">
|
||||||
rect_time,
|
rect_time,
|
||||||
|
</if>
|
||||||
rect_desc,
|
rect_desc,
|
||||||
rect_status,
|
rect_status,
|
||||||
data_source,
|
data_source,
|
||||||
|
|
@ -33,12 +39,18 @@
|
||||||
#{gxId},
|
#{gxId},
|
||||||
#{gxName},
|
#{gxName},
|
||||||
#{checkUserName},
|
#{checkUserName},
|
||||||
|
<if test="vioDate != null and vioDate !='' ">
|
||||||
#{vioDate},
|
#{vioDate},
|
||||||
|
</if>
|
||||||
#{vioPlace},
|
#{vioPlace},
|
||||||
#{vioDesc},
|
#{vioDesc},
|
||||||
|
<if test="rectDate != null and rectDate !='' ">
|
||||||
#{rectDate},
|
#{rectDate},
|
||||||
|
</if>
|
||||||
#{rectUserName},
|
#{rectUserName},
|
||||||
|
<if test="rectTime != null and rectTime !='' ">
|
||||||
#{rectTime},
|
#{rectTime},
|
||||||
|
</if>
|
||||||
#{rectDesc},
|
#{rectDesc},
|
||||||
#{rectStatus},
|
#{rectStatus},
|
||||||
#{dataSource},
|
#{dataSource},
|
||||||
|
|
@ -72,7 +84,7 @@
|
||||||
<if test="checkUserName != null">
|
<if test="checkUserName != null">
|
||||||
check_user_name = #{checkUserName},
|
check_user_name = #{checkUserName},
|
||||||
</if>
|
</if>
|
||||||
<if test="vioDate != null">
|
<if test="vioDate != null and vioDate != ''">
|
||||||
check_date = #{vioDate},
|
check_date = #{vioDate},
|
||||||
</if>
|
</if>
|
||||||
<if test="vioPlace != null">
|
<if test="vioPlace != null">
|
||||||
|
|
@ -81,13 +93,13 @@
|
||||||
<if test="vioDesc != null">
|
<if test="vioDesc != null">
|
||||||
check_desc = #{vioDesc},
|
check_desc = #{vioDesc},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectDate != null">
|
<if test="rectDate != null and rectDate != ''">
|
||||||
rect_date = #{rectDate},
|
rect_date = #{rectDate},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectUserName != null">
|
<if test="rectUserName != null">
|
||||||
rect_user_name = #{rectUserName},
|
rect_user_name = #{rectUserName},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectTime != null">
|
<if test="rectTime != null and rectTime != ''">
|
||||||
rect_time = #{rectTime},
|
rect_time = #{rectTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectDesc != null">
|
<if test="rectDesc != null">
|
||||||
|
|
@ -110,7 +122,8 @@
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="delQualityInspectionById">
|
<delete id="delQualityInspectionById">
|
||||||
update tb_quality_inspection set is_active = '0'
|
update tb_quality_inspection
|
||||||
|
set is_active = '0'
|
||||||
WHERE id = #{id}
|
WHERE id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
@ -165,8 +178,7 @@
|
||||||
GROUP BY tsv.id
|
GROUP BY tsv.id
|
||||||
</select>
|
</select>
|
||||||
<select id="getQualityInspectionById" resultType="com.bonus.imgTool.imgUpload.vo.SafetyViolationVo">
|
<select id="getQualityInspectionById" resultType="com.bonus.imgTool.imgUpload.vo.SafetyViolationVo">
|
||||||
SELECT
|
SELECT tsv.id,
|
||||||
tsv.id,
|
|
||||||
tsv.pro_id,
|
tsv.pro_id,
|
||||||
tsv.pro_name,
|
tsv.pro_name,
|
||||||
tsv.major_id,
|
tsv.major_id,
|
||||||
|
|
@ -183,8 +195,7 @@
|
||||||
tsv.rect_desc,
|
tsv.rect_desc,
|
||||||
tsv.rect_status,
|
tsv.rect_status,
|
||||||
tsv.data_source
|
tsv.data_source
|
||||||
FROM
|
FROM tb_quality_inspection tsv
|
||||||
tb_quality_inspection tsv
|
|
||||||
WHERE tsv.id = #{id}
|
WHERE tsv.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,23 @@
|
||||||
gx_id,
|
gx_id,
|
||||||
gx_name,
|
gx_name,
|
||||||
check_user_name,
|
check_user_name,
|
||||||
|
<if test="vioDate != null and vioDate !='' ">
|
||||||
vio_date,
|
vio_date,
|
||||||
|
</if>
|
||||||
vio_place,
|
vio_place,
|
||||||
vio_desc,
|
vio_desc,
|
||||||
|
<if test="rectDate != null and rectDate !='' ">
|
||||||
rect_date,
|
rect_date,
|
||||||
|
</if>
|
||||||
rect_user_name,
|
rect_user_name,
|
||||||
|
<if test="rectTime != null and rectTime !='' ">
|
||||||
rect_time,
|
rect_time,
|
||||||
|
</if>
|
||||||
rect_desc,
|
rect_desc,
|
||||||
rect_status,
|
rect_status,
|
||||||
data_source,
|
data_source,
|
||||||
create_user_id,
|
create_user_id,
|
||||||
create_user_name,
|
create_user_name
|
||||||
create_time
|
|
||||||
)values (
|
)values (
|
||||||
#{proId},
|
#{proId},
|
||||||
#{proName},
|
#{proName},
|
||||||
|
|
@ -33,18 +38,23 @@
|
||||||
#{gxId},
|
#{gxId},
|
||||||
#{gxName},
|
#{gxName},
|
||||||
#{checkUserName},
|
#{checkUserName},
|
||||||
|
<if test="vioDate != null and vioDate !='' ">
|
||||||
#{vioDate},
|
#{vioDate},
|
||||||
|
</if>
|
||||||
#{vioPlace},
|
#{vioPlace},
|
||||||
#{vioDesc},
|
#{vioDesc},
|
||||||
|
<if test="rectDate != null and rectDate !='' ">
|
||||||
#{rectDate},
|
#{rectDate},
|
||||||
|
</if>
|
||||||
#{rectUserName},
|
#{rectUserName},
|
||||||
|
<if test="rectTime != null and rectTime !='' ">
|
||||||
#{rectTime},
|
#{rectTime},
|
||||||
|
</if>
|
||||||
#{rectDesc},
|
#{rectDesc},
|
||||||
#{rectStatus},
|
#{rectStatus},
|
||||||
#{dataSource},
|
#{dataSource},
|
||||||
#{createUserId},
|
#{createUserId},
|
||||||
#{createUserName},
|
#{createUserName}
|
||||||
#{createTime}
|
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
@ -106,7 +116,7 @@
|
||||||
<if test="checkUserName != null">
|
<if test="checkUserName != null">
|
||||||
check_user_name = #{checkUserName},
|
check_user_name = #{checkUserName},
|
||||||
</if>
|
</if>
|
||||||
<if test="vioDate != null">
|
<if test="vioDate != null and vioDate != ''">
|
||||||
vio_date = #{vioDate},
|
vio_date = #{vioDate},
|
||||||
</if>
|
</if>
|
||||||
<if test="vioPlace != null">
|
<if test="vioPlace != null">
|
||||||
|
|
@ -115,13 +125,13 @@
|
||||||
<if test="vioDesc != null">
|
<if test="vioDesc != null">
|
||||||
vio_desc = #{vioDesc},
|
vio_desc = #{vioDesc},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectDate != null">
|
<if test="rectDate != null and rectDate != ''">
|
||||||
rect_date = #{rectDate},
|
rect_date = #{rectDate},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectUserName != null">
|
<if test="rectUserName != null">
|
||||||
rect_user_name = #{rectUserName},
|
rect_user_name = #{rectUserName},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectTime != null">
|
<if test="rectTime != null and rectTime != ''">
|
||||||
rect_time = #{rectTime},
|
rect_time = #{rectTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="rectDesc != null">
|
<if test="rectDesc != null">
|
||||||
|
|
@ -153,14 +163,15 @@
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="delImgPhotoBySourceId">
|
<delete id="delImgPhotoBySourceId">
|
||||||
update sys_file_resource set is_active = '0'
|
update sys_file_resource
|
||||||
WHERE
|
set is_active = '0'
|
||||||
source_id = #{sourceId}
|
WHERE source_id = #{sourceId}
|
||||||
AND upload_type = #{uploadType}
|
AND upload_type = #{uploadType}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="delSafetyViolationById">
|
<delete id="delSafetyViolationById">
|
||||||
update tb_safety_violations set is_active = '0'
|
update tb_safety_violations
|
||||||
|
set is_active = '0'
|
||||||
WHERE id = #{id}
|
WHERE id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
@ -215,8 +226,7 @@
|
||||||
GROUP BY tsv.id
|
GROUP BY tsv.id
|
||||||
</select>
|
</select>
|
||||||
<select id="getSafetyViolationById" resultType="com.bonus.imgTool.imgUpload.vo.SafetyViolationVo">
|
<select id="getSafetyViolationById" resultType="com.bonus.imgTool.imgUpload.vo.SafetyViolationVo">
|
||||||
SELECT
|
SELECT tsv.id,
|
||||||
tsv.id,
|
|
||||||
tsv.pro_id,
|
tsv.pro_id,
|
||||||
tsv.pro_name,
|
tsv.pro_name,
|
||||||
tsv.major_id,
|
tsv.major_id,
|
||||||
|
|
@ -233,14 +243,12 @@
|
||||||
tsv.rect_desc,
|
tsv.rect_desc,
|
||||||
tsv.rect_status,
|
tsv.rect_status,
|
||||||
tsv.data_source
|
tsv.data_source
|
||||||
FROM
|
FROM tb_safety_violations tsv
|
||||||
tb_safety_violations tsv
|
|
||||||
WHERE tsv.id = #{id}
|
WHERE tsv.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getImgPhotoList" resultType="com.bonus.imgTool.system.vo.dto.FileStorageDto">
|
<select id="getImgPhotoList" resultType="com.bonus.imgTool.system.vo.dto.FileStorageDto">
|
||||||
SELECT
|
SELECT sfr.id,
|
||||||
sfr.id,
|
|
||||||
sfr.file_name,
|
sfr.file_name,
|
||||||
sfr.file_suffix,
|
sfr.file_suffix,
|
||||||
sfr.file_size,
|
sfr.file_size,
|
||||||
|
|
@ -254,11 +262,10 @@
|
||||||
sfr.source_type_name,
|
sfr.source_type_name,
|
||||||
sfr.create_user,
|
sfr.create_user,
|
||||||
sfr.create_user_name
|
sfr.create_user_name
|
||||||
FROM
|
FROM sys_file_resource sfr
|
||||||
sys_file_resource sfr
|
|
||||||
WHERE sfr.source_id = #{sourceId}
|
WHERE sfr.source_id = #{sourceId}
|
||||||
AND sfr.source_type = #{sourceType}
|
AND sfr.source_type = #{sourceType}
|
||||||
And sfr.is_active= '1'
|
And sfr.is_active = '1'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue