|
|
@ -219,11 +219,6 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
public Result<List<ItemResultDTO>> listItemsByWork(ItemFormDTO formDto) { |
|
|
public Result<List<ItemResultDTO>> listItemsByWork(ItemFormDTO formDto) { |
|
|
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize(); |
|
|
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize(); |
|
|
formDto.setPageIndex(pageIndex); |
|
|
formDto.setPageIndex(pageIndex); |
|
|
System.out.println("userid"); |
|
|
|
|
|
System.out.println(SecurityUser.getUserId()); |
|
|
|
|
|
System.out.println("user"); |
|
|
|
|
|
System.out.println(SecurityUser.getUser()); |
|
|
|
|
|
System.out.println(SecurityUser.getUser().getDeptIdList()); |
|
|
|
|
|
List<ItemResultDTO> data = baseDao.selectListOfItemsByWork(formDto, SecurityUser.getUser().getDeptIdList()); |
|
|
List<ItemResultDTO> data = baseDao.selectListOfItemsByWork(formDto, SecurityUser.getUser().getDeptIdList()); |
|
|
return new Result<List<ItemResultDTO>>().ok(data); |
|
|
return new Result<List<ItemResultDTO>>().ok(data); |
|
|
} |
|
|
} |
|
|
@ -631,14 +626,14 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
// 吹哨处理
|
|
|
// 吹哨处理
|
|
|
}else if (ItemHandleCategoryEnum.HANDLE_CIRCULATION_ASSISTANCE.getValue() == dto.getHandleCategory()) { |
|
|
}else if (ItemHandleCategoryEnum.HANDLE_CIRCULATION_ASSISTANCE.getValue() == dto.getHandleCategory()) { |
|
|
List<ItemCirculationDeptResultDTO> deptList = dto.getDeptResultDTOS(); |
|
|
List<ItemCirculationDeptResultDTO> deptList = dto.getDeptResultDTOS(); |
|
|
// 拼接被吹哨部门Id
|
|
|
// 拼接被吹哨部门
|
|
|
String whistlDept = ""; |
|
|
String whistlDept = ""; |
|
|
for (int i =0; i < deptList.size(); i++) { |
|
|
for (int i =0; i < deptList.size(); i++) { |
|
|
ItemCirculationDeptResultDTO indexDto = (ItemCirculationDeptResultDTO)deptList.get(i); |
|
|
ItemCirculationDeptResultDTO indexDto = (ItemCirculationDeptResultDTO)deptList.get(i); |
|
|
if (i == 0) { |
|
|
if (i == 0) { |
|
|
whistlDept += indexDto.getDeptId(); |
|
|
whistlDept += indexDto.getDeptName(); |
|
|
} else { |
|
|
} else { |
|
|
whistlDept += (",".concat(indexDto.getDeptId().toString())); |
|
|
whistlDept += (",".concat(indexDto.getDeptName())); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
itemInfoDto.setWhistleDept(whistlDept); |
|
|
itemInfoDto.setWhistleDept(whistlDept); |
|
|
|