| | |
| | | <mapper namespace="com.thhy.secure.modules.biz.regionInspection.mapper.RegionInspectionRecordMapper"> |
| | | |
| | | <insert id="insertIMG"> |
| | | insert into t_region_inspection_record |
| | | insert into t_region_inspection_record_img |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | |
| | | <delete id="delete"> |
| | | delete from t_region_inspection_record where id=#{id,jdbcType=VARCHAR} |
| | | </delete> |
| | | <delete id="deleteIMG"> |
| | | delete from t_region_inspection_record_img where regionInspectionRecordId=#{regionInspectionRecordId,jdbcType=VARCHAR} |
| | | </delete> |
| | | |
| | | <delete id="deleteByRegionInspectionId"> |
| | | delete from t_region_inspection_record where regionInspectionId=#{regionInspectionId,jdbcType=VARCHAR} |
| | | </delete> |
| | | |
| | | <select id="selectImgByRecordId" resultType="com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionRecordImgEntity"> |
| | | select * from t_region_inspection_record_img where regionInspectionRecordId = #{regionInspectionRecordId} |
| | | </select> |
| | | <select id="selectPageList" resultType="com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionRecordEntity"> |
| | | SELECT a.userId, |
| | | a.regionInspectionId, |
| | |
| | | |
| | | <select id="regionInfo" resultType="com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionRecordEntity"> |
| | | SELECT |
| | | t.id, |
| | | t.userId, |
| | | t.regionInspectionId, |
| | | t.regionHazardInformId, |
| | |
| | | t.result result, |
| | | GROUP_CONCAT(timg.imgPath) imgPaths, |
| | | t.location, |
| | | spu.real_name realName |
| | | spu.real_name realName, |
| | | t.status |
| | | FROM t_region_inspection_record t |
| | | LEFT JOIN t_region_inspection_record_img timg on t.id = timg.regionInspectionRecordId |
| | | LEFT JOIN t_region_hazard_inform rhi on rhi.id = t.regionHazardInformId |