| | |
| | | IPage<SoldrecordVO> pages = soldrecordService.selectLists(Condition.getPage(query), soldrecord); |
| | | for (int i=0;i<pages.getRecords().size();i++){ |
| | | String specs = pages.getRecords().get(i).getSpecs1(); |
| | | Integer amount = pages.getRecords().get(i).getAmount1(); |
| | | Integer num=Integer.parseInt(specs); |
| | | String dic1 = pages.getRecords().get(i).getDic1(); |
| | | String dic2 = pages.getRecords().get(i).getDic2(); |
| | | String s = specs+dic1 +"/"+ dic2; |
| | | pages.getRecords().get(i).setSpn(s); |
| | | pages.getRecords().get(i).setCnum(num*amount); |
| | | |
| | | } |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 查看变更明细 |
| | | */ |
| | | @GetMapping("/pagebg") |
| | | public R<IPage<SoldrecordVO>> pagebg(SoldrecordVO soldrecord, Query query) { |
| | | IPage<SoldrecordVO> pages = soldrecordService.selectListbg(Condition.getPage(query), soldrecord); |
| | | for (int i=0;i<pages.getRecords().size();i++){ |
| | | String specs = pages.getRecords().get(i).getSpecs1(); |
| | | String dic1 = pages.getRecords().get(i).getDic1(); |
| | | String dic2 = pages.getRecords().get(i).getDic2(); |
| | | String s = specs+dic1 +"/"+ dic2; |
| | | pages.getRecords().get(i).setSpn(s); |
| | | } |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 新增 已出库存记录表 |
| | | */ |
| | | @PostMapping("/save") |