diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/ScrapApplyDetailsController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/ScrapApplyDetailsController.java index 64fbb315..2f3528f4 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/ScrapApplyDetailsController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/ScrapApplyDetailsController.java @@ -271,8 +271,8 @@ public class ScrapApplyDetailsController extends BaseController { * 查询预报废任务列表 */ @ApiOperation("查询预报废任务列表") - @PostMapping("/getScrapApplyList") - public TableDataInfo getScrapApplyList(@RequestBody ScrapApplyDetails scrapApplyDetails) { + @GetMapping("/getScrapApplyList") + public TableDataInfo getScrapApplyList( ScrapApplyDetails scrapApplyDetails) { Map params = scrapApplyDetails.getParams(); if (!params.isEmpty()) { String beginTime = (String) params.get("beginTime"); diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml index 868598d2..730cdc1a 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml @@ -199,7 +199,9 @@ su.nick_name AS modelName, pisi.CREATE_DATE AS createDate, pisi.REMARKS AS remark, - ROW_NUMBER() OVER (PARTITION BY pisi.`CODE` ORDER BY pisi.CREATE_DATE DESC) AS row_num +-- ROW_NUMBER() OVER (PARTITION BY pisi.`CODE` ORDER BY pisi.CREATE_DATE DESC) AS row_num + @row_num := IF(@prev_code = pisi.`CODE`, @row_num + 1, 1) AS row_num, + @prev_code := pisi.`CODE` FROM ma_type_put_in_storage_info pisi LEFT JOIN ma_type_put_in_storage_details pisd ON pisi.id = pisd.INFO diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml index fc5be7f1..97ae4eaf 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml @@ -650,12 +650,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" or locate(#{keyword}, mt.type_name) > 0 or locate(#{keyword}, mt1.type_name) > 0) - - AND mt.type_id = #{type} - - - AND mt1.type_id = #{typeName} + + AND mt1.type_id = #{type} + + + AND sad.status = #{status} @@ -826,7 +826,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT tk.CODE scrapNum, tk.task_status taskStatus, - dic.NAME taskStatusName, + case tk.task_status + when '120' then + '待审核' + when '121' then + '审核中' + when '122' or '123' then + '已完成' + end taskStatusName, bui.unit_id unitId, bui.unit_name unitName, bpl.lot_id projectId, diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml index f19f535c..54ecfee7 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml @@ -270,7 +270,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and saa.status = #{sltStatus} - GROUP BY saa.id + GROUP BY saa.create_time desc