Browse Source

采购記錄

master
张立 2 years ago
parent
commit
7baebae199
  1. 2
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/purchasereceiptRecord/PurchasereceiptRecordDetailController.java
  2. 7
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/purchasereceiptRecord/PurchasereceiptRecordMainController.java
  3. 1
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/purchasereceiptRequest/PurchasereceiptRequestDetailController.java

2
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/purchasereceiptRecord/PurchasereceiptRecordDetailController.java

@ -64,7 +64,7 @@ public class PurchasereceiptRecordDetailController {
}
@GetMapping("/list")
@Operation(summary = "高级搜索获得采购收货记录子信息分页")
@Operation(summary = "高级搜索获得采购收货记录子信息")
@PreAuthorize("@ss.hasPermission('wms:purchasereceipt-record-detail:query')")
public CommonResult<List<PurchasereceiptRecordDetailRespVO>> getPurchasereceiptRecordDetailList(@RequestParam Long masterId) {
List<PurchasereceiptRecordDetailDO> list = purchasereceiptRecordDetailService.selectList(masterId);

7
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/purchasereceiptRecord/PurchasereceiptRecordMainController.java

@ -69,7 +69,12 @@ public class PurchasereceiptRecordMainController {
@PreAuthorize("@ss.hasPermission('wms:purchasereceipt-record-main:query')")
public CommonResult<PageResult<PurchasereceiptRecordMainRespVO>> getPurchasereceiptRecordMainPage(@Valid PurchasereceiptRecordMainPageReqVO pageVO) {
PageResult<PurchasereceiptRecordMainDO> pageResult = purchasereceiptRecordMainService.getPurchasereceiptRecordMainPage(pageVO);
return success(PurchasereceiptRecordMainConvert.INSTANCE.convertPage(pageResult));
PageResult<PurchasereceiptRecordMainRespVO> result = PurchasereceiptRecordMainConvert.INSTANCE.convertPage(pageResult);
for(PurchasereceiptRecordMainRespVO vo : result.getList()) {
AdminUserRespDTO user = userApi.getUser(Long.valueOf(vo.getCreator()));
vo.setCreator(user.getNickname());
}
return success(result);
}
@GetMapping("/export-excel")

1
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/purchasereceiptRequest/PurchasereceiptRequestDetailController.java

@ -78,7 +78,6 @@ public class PurchasereceiptRequestDetailController {
PageResult<PurchasereceiptRequestDetailRespVO> result = PurchasereceiptRequestDetailConvert.INSTANCE.convertPage(pageResult);
for (PurchasereceiptRequestDetailRespVO vo : result.getList()) {
AdminUserRespDTO user = userApi.getUser(Long.valueOf(vo.getCreator()));
//后端创建个字段作为前端展示的虚拟字段
vo.setCreator(user.getNickname());
AdminUserRespDTO userUpdater = userApi.getUser(Long.valueOf(vo.getUpdater()));
vo.setUpdater(userUpdater.getNickname());

Loading…
Cancel
Save