|
@@ -61,28 +61,28 @@ public class YfWarehouseController {
|
|
|
ypOutDetl.setConfirmFlag("1");
|
|
|
int total = ypOutDetlService.countYpOutDetl(ypOutDetl);
|
|
|
List<YpOutDetl> list = ypOutDetlService.queryYpOutDetlPage(ypOutDetl);
|
|
|
- for (int i = 0; i < list.size(); i++) {
|
|
|
- YpOutDetl y = list.get(i);
|
|
|
- if (i > 0) {
|
|
|
- y.setDrawerName(list.get(i - 1).getDrawerName());
|
|
|
- y.setKeeperName(list.get(i - 1).getKeeperName());
|
|
|
- y.setGroupName(list.get(i - 1).getGroupName());
|
|
|
- y.setGroupNamePharmacy(list.get(i - 1).getGroupNamePharmacy());
|
|
|
- } else {
|
|
|
- if (StringUtils.isNotBlank(y.getDrawer())) {
|
|
|
- y.setDrawerName(employeeService.queryByUserCode(y.getDrawer()).getEmployeeName());
|
|
|
- }
|
|
|
- if (StringUtils.isNotBlank(y.getKeeper())) {
|
|
|
- y.setKeeperName(employeeService.queryByUserCode(y.getKeeper()).getEmployeeName());
|
|
|
- }
|
|
|
- if (StringUtils.isNotBlank(y.getGroupNo())) {
|
|
|
- y.setGroupName(ypZdGroupNameService.queryByGroupNo(y.getGroupNo()).getGroupName());
|
|
|
- }
|
|
|
- if (StringUtils.isNotBlank(y.getGroupNoOut())) {
|
|
|
- y.setGroupNamePharmacy(ypZdGroupNameService.queryByGroupNo(y.getGroupNoOut()).getGroupName());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// for (int i = 0; i < list.size(); i++) {
|
|
|
+// YpOutDetl y = list.get(i);
|
|
|
+// if (i > 0) {
|
|
|
+// y.setDrawerName(list.get(i - 1).getDrawerName());
|
|
|
+// y.setKeeperName(list.get(i - 1).getKeeperName());
|
|
|
+// y.setGroupName(list.get(i - 1).getGroupName());
|
|
|
+// y.setGroupNamePharmacy(list.get(i - 1).getGroupNamePharmacy());
|
|
|
+// } else {
|
|
|
+// if (StringUtils.isNotBlank(y.getDrawer())) {
|
|
|
+// y.setDrawerName(employeeService.queryByUserCode(y.getDrawer()).getEmployeeName());
|
|
|
+// }
|
|
|
+// if (StringUtils.isNotBlank(y.getKeeper())) {
|
|
|
+// y.setKeeperName(employeeService.queryByUserCode(y.getKeeper()).getEmployeeName());
|
|
|
+// }
|
|
|
+// if (StringUtils.isNotBlank(y.getGroupNo())) {
|
|
|
+// y.setGroupName(ypZdGroupNameService.queryByGroupNo(y.getGroupNo()).getGroupName());
|
|
|
+// }
|
|
|
+// if (StringUtils.isNotBlank(y.getGroupNoOut())) {
|
|
|
+// y.setGroupNamePharmacy(ypZdGroupNameService.queryByGroupNo(y.getGroupNoOut()).getGroupName());
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
resultMap.put("code", 0);
|
|
|
resultMap.put("message", "查询入库单记录成功");
|
|
|
resultMap.put("total", total);
|