diff --git a/src/main/java/com/bonus/nxdt/energy/newcheck/service/impl/New_SubCheckManageServiceImpl.java b/src/main/java/com/bonus/nxdt/energy/newcheck/service/impl/New_SubCheckManageServiceImpl.java index dc4bf5c..b24a819 100644 --- a/src/main/java/com/bonus/nxdt/energy/newcheck/service/impl/New_SubCheckManageServiceImpl.java +++ b/src/main/java/com/bonus/nxdt/energy/newcheck/service/impl/New_SubCheckManageServiceImpl.java @@ -208,7 +208,31 @@ public class New_SubCheckManageServiceImpl implements New_SubCheckManageService // listFilter = list; // } // return listFilter; - return list; + + List newList = new ArrayList<>(); + if(o!=null && "0".equals(o.getAuditStatus())){ + list.forEach(i -> { + String isCheck = i.getIsCheck(); + if("1".equals(isCheck)){ + newList.add(i); + } + + + }); + }else if(o!=null && "3".equals(o.getAuditStatus())){ + list.forEach(i -> { + String isCheck = i.getIsCheck(); + if(!"1".equals(isCheck)){ + newList.add(i); + } + + + }); + }else{ + newList.addAll(list); + } + + return newList; } private void isManager(String phone, SubCheckManageBean i) { diff --git a/src/main/resources/mappers/newcheck/NewSubCheckManageMapper.xml b/src/main/resources/mappers/newcheck/NewSubCheckManageMapper.xml index 4503983..891a053 100644 --- a/src/main/resources/mappers/newcheck/NewSubCheckManageMapper.xml +++ b/src/main/resources/mappers/newcheck/NewSubCheckManageMapper.xml @@ -16,7 +16,14 @@ and bmp.start_time between #{startDate} and #{endDate} - and apc.audit_status = #{auditStatus} + + + and apc.audit_status ='0' and apc.audit_status !='5' + + + and apc.audit_status = #{auditStatus} and apc.audit_status !='5' + + ORDER BY apc.id desc diff --git a/src/main/resources/static/js/newCheck/datumCheckList_new.js b/src/main/resources/static/js/newCheck/datumCheckList_new.js index ca58563..0896060 100644 --- a/src/main/resources/static/js/newCheck/datumCheckList_new.js +++ b/src/main/resources/static/js/newCheck/datumCheckList_new.js @@ -67,7 +67,7 @@ layui.use(['table', 'form', 'laydate'], function () { } , parseData: function (res) { //将原始数据解析成 table 组件所规定的数据,res为从url中get到的数据 let result; - console.log(JSON.stringify(res)); + console.log("111="+JSON.stringify(res)); if (res.count > 0) { if (this.page.curr) { result = res.data.slice(this.limit * (this.page.curr - 1), this.limit * this.page.curr); diff --git a/src/main/resources/static/js/newCheck/datumPublic_new.js b/src/main/resources/static/js/newCheck/datumPublic_new.js index e3ad1dc..4ee2f93 100644 --- a/src/main/resources/static/js/newCheck/datumPublic_new.js +++ b/src/main/resources/static/js/newCheck/datumPublic_new.js @@ -707,29 +707,33 @@ function jump(obj,id){ } function isDefaultProcess(processType) { - if(processType === "-1"){ - //自由审核流 - // jump('dynamic','process2'); - // document.getElementById("checkProcess1").onclick=null; - // document.getElementById("checkProcess2").onclick=null; - // $("#checkTip").html("审核流已被确定") - }else if(processType === null){ - //还未选择审核流 - //getFixProcess(""); - - - - }else{ - // 固定审核流 - getFixProcess(processType); + // if(processType === "-1"){ //还未选择审核流 + // // getFixProcess(""); + // }else if(processType === '0'){ + // //自由审核流 + // jump('dynamic','process2'); + // document.getElementById("checkProcess1").onclick=null; + // document.getElementById("checkProcess2").onclick=null; + // $("#checkTip").html("审核流已被确定") + // + // }else{ + // // 固定审核流 + // getFixProcess(processType); + // document.getElementById("checkProcess1").onclick=null; + // document.getElementById("checkProcess2").onclick=null; + // $("#checkTip").html("审核流已被确定") + // $("#fixProcessId").attr("disabled","disabled"); + // $("#addFlowButton").css("display","none"); + // } + if(processType == "-1"){ + getFixProcess(""); + //jump('dynamic','process2'); + }else if(processType == '0'){ + //自由审核流 + jump('dynamic','process2'); document.getElementById("checkProcess1").onclick=null; document.getElementById("checkProcess2").onclick=null; $("#checkTip").html("审核流已被确定") - $("#fixProcessId").attr("disabled","disabled"); - $("#addFlowButton").css("display","none"); - } - if(processType == "-1"){ - getFixProcess(""); }else{ document.getElementById("checkProcess1").onclick=null; document.getElementById("checkProcess2").onclick=null; diff --git a/src/main/resources/static/js/work/auditDatum/datumPublic.js b/src/main/resources/static/js/work/auditDatum/datumPublic.js index 176e413..8b58f3b 100644 --- a/src/main/resources/static/js/work/auditDatum/datumPublic.js +++ b/src/main/resources/static/js/work/auditDatum/datumPublic.js @@ -610,7 +610,8 @@ function setHistoryData() { $.ajax({ type: "POST", async: false, // 默认异步true,false表示同步 - url: ctxPath + "/subCheckManage/setHistoryData", + // url: ctxPath + "/subCheckManage/setHistoryData", + url: ctxPath + "/new_subCheckManage/setHistoryData", data: thisParam, //获取提交的表单字段 dataType: "json",// 服务器返回数据类型 success: function (data) { diff --git a/src/main/resources/static/pages/newCheck/datumCheckForm3_new.html b/src/main/resources/static/pages/newCheck/datumCheckForm3_new.html index 67deca1..b73ee51 100644 --- a/src/main/resources/static/pages/newCheck/datumCheckForm3_new.html +++ b/src/main/resources/static/pages/newCheck/datumCheckForm3_new.html @@ -291,7 +291,7 @@