| | |
| | | QueryWrapper<LocItem> wrapper = pageParam.buildWrapper(true); |
| | | if (useStatus != null && StringUtils.isNotBlank(useStatus.toString())) { |
| | | String status = useStatus.toString().replace("'", "''"); |
| | | wrapper.apply("EXISTS (SELECT 1 FROM man_loc ml WHERE ml.id = man_loc_item.loc_id AND ml.use_status = '" + status + "')"); |
| | | wrapper.apply("EXISTS (SELECT 1 FROM man_loc ml WHERE ml.id = man_loc_item.loc_id AND ml.use_status = '" + status + "' AND ml.deleted = 0)"); |
| | | } |
| | | FieldsUtils.setFieldsFilters(wrapper, pageParam, LocItem.class); |
| | | |
| | |
| | | "EXISTS (SELECT 1 FROM man_loc ml " + |
| | | "WHERE ml.use_status = '%s'" + |
| | | "AND ml.id = man_loc_item.loc_id " + |
| | | "AND ml.deleted = 0" + |
| | | ")", |
| | | LocStsType.LOC_STS_TYPE_F.type |
| | | ); |