| | |
| | | // System.out.println(wrapper.getExpression().getSqlSegment()); |
| | | return wrapper; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | UnPassPageDto unPassPageDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), UnPassPageDto.class); |
| | | return Result.success(insUnPassService.pageInsUnPass(page, unPassPageDto)); |
| | | } |
| | | } |
| | | } |
| | |
| | | @Data |
| | | public class UnPassPageDto extends InsUnPass implements Serializable { |
| | | |
| | | } |
| | | } |
| | |
| | | */ |
| | | public interface InsUnPassMapper extends BaseMapper<InsUnPass> { |
| | | IPage<UnPassPageDto> pageInsUnPass(IPage<UnPassPageDto> page, QueryWrapper<UnPassPageDto> ew); |
| | | } |
| | | } |
| | |
| | | * 检测项 |
| | | */ |
| | | @ValueTableShow(value = 4, name = "检测项") |
| | | private String inspectionItems; |
| | | private String inspectionItem; |
| | | /** |
| | | * 检测子项 |
| | | */ |
| | |
| | | */ |
| | | public interface InsUnPassService { |
| | | Map<String, Object> pageInsUnPass(Page page, UnPassPageDto unPassPageDto); |
| | | } |
| | | } |
| | |
| | | public Map<String, Object> pageInsUnPass(Page page, UnPassPageDto unPassPageDto) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("head", PrintChina.printChina(UnPassPageDto.class)); |
| | | // Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("pageInsUnPass"); |
| | | // if (map1.get("look") == 1) unPassPageDto.setCreateUser(map1.get("userId")); |
| | | map.put("body", insUnPassMapper.pageInsUnPass(page, QueryWrappers.queryWrappers(unPassPageDto))); |
| | | return map; |
| | | } |
| | | } |
| | | } |
| | |
| | | <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.InsUnPass"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="sample" column="sample" jdbcType="VARCHAR"/> |
| | | <result property="inspectionItems" column="inspection_items" jdbcType="VARCHAR"/> |
| | | <result property="inspectionItem" column="inspection_item" jdbcType="VARCHAR"/> |
| | | <result property="inspectionItemSubclass" column="inspection_item_subclass" jdbcType="VARCHAR"/> |
| | | <result property="lastValue" column="last_value" jdbcType="VARCHAR"/> |
| | | <result property="model" column="model" jdbcType="VARCHAR"/> |
| | |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | <select id="pageInsUnPass" resultType="com.yuanchu.mom.dto.UnPassPageDto"> |
| | | select * |
| | | from ins_un_pass iu |
| | | SELECT * FROM |
| | | ins_un_pass iu |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | | </mapper> |