b95f383b 康伟

kangwei:赋能中心-药剂统购分销

1 个父辈 6d2440d2
...@@ -87,7 +87,7 @@ public class DistributContractController { ...@@ -87,7 +87,7 @@ public class DistributContractController {
87 queryWrapper.le("start_time", DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm:ss")); 87 queryWrapper.le("start_time", DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm:ss"));
88 88
89 //启用状态:=0 89 //启用状态:=0
90 if(StringUtils.isEmpty(distributContract.getUseFlag())){ 90 if(StringUtils.isNotEmpty(distributContract.getUseFlag())){
91 use_flag = distributContract.getUseFlag(); 91 use_flag = distributContract.getUseFlag();
92 } 92 }
93 queryWrapper.eq("use_flag",use_flag); 93 queryWrapper.eq("use_flag",use_flag);
......
...@@ -3,7 +3,6 @@ package com.skua.modules.erp.mapper; ...@@ -3,7 +3,6 @@ package com.skua.modules.erp.mapper;
3 import java.util.List; 3 import java.util.List;
4 4
5 import com.skua.modules.erp.entity.ErpSettlementItem; 5 import com.skua.modules.erp.entity.ErpSettlementItem;
6 import com.skua.modules.erp.vo.ErpSettlementFormVO;
7 import com.skua.modules.erp.vo.ErpSettlementItemVO; 6 import com.skua.modules.erp.vo.ErpSettlementItemVO;
8 import com.skua.modules.erp.vo.ErpSettlementVO; 7 import com.skua.modules.erp.vo.ErpSettlementVO;
9 import org.apache.ibatis.annotations.Param; 8 import org.apache.ibatis.annotations.Param;
...@@ -24,10 +23,8 @@ public interface ErpSettlementMapper extends BaseMapper<ErpSettlement> { ...@@ -24,10 +23,8 @@ public interface ErpSettlementMapper extends BaseMapper<ErpSettlement> {
24 23
25 // 根据入库单ids,获取【水厂】结算单详情 24 // 根据入库单ids,获取【水厂】结算单详情
26 List<ErpSettlementItem> queryWaterDepartSettlementByMaterialIds(@Param("ids") String materialIds); 25 List<ErpSettlementItem> queryWaterDepartSettlementByMaterialIds(@Param("ids") String materialIds);
27 //送货单以及物资验收单
28 List<ErpSettlementItemVO> querySettlementFormById(@Param("id")String id);
29 //(供应商)送货单以及物资验收单 26 //(供应商)送货单以及物资验收单
30 List<ErpSettlementItemVO> querySupplierSettlementFormById(@Param("id")String id); 27 List<ErpSettlementItemVO> querySupplierSettlementFormById(@Param("id")String id);
31 //(水厂) 送货单以及物资验收单 28 //(水厂) 送货单以及物资验收单
32 List<ErpSettlementItemVO> queryWaterDepartSettlementFormById((@Param("id")String id); 29 List<ErpSettlementItemVO> queryWaterDepartSettlementFormById(@Param("id")String id);
33 } 30 }
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 order by mi.arrive_time asc 49 order by mi.arrive_time asc
50 </select> 50 </select>
51 51
52 <select id="querySupplierSettlementFormById" resultType="com.skua.modules.erp.voErpSettlementItemVO"> 52 <select id="querySupplierSettlementFormById" resultType="com.skua.modules.erp.vo.ErpSettlementItemVO">
53 select d.depart_name,pc.project_name ,pc.contract_code,sm.supp_name as supplier_name,mi.arrive_time, maf.appearance_info ,maf.matched_info ,maf.handle_msg ,maf.sender_sign ,maf.receiver_sign ,aaa.* 53 select d.depart_name,pc.project_name ,pc.contract_code,sm.supp_name as supplier_name,mi.arrive_time, maf.appearance_info ,maf.matched_info ,maf.handle_msg ,maf.sender_sign ,maf.receiver_sign ,aaa.*
54 from ( 54 from (
55 select si.sparepart_name,si.material_num,si.specification,si.measuring_unit,s.purchase_contract_id,s.supplier_id,si.material_in_id 55 select si.sparepart_name,si.material_num,si.specification,si.measuring_unit,s.purchase_contract_id,s.supplier_id,si.material_in_id
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
62 left join sys_depart d on d.id = mi.depart_id 62 left join sys_depart d on d.id = mi.depart_id
63 </select> 63 </select>
64 64
65 <select id="queryWaterDepartSettlementFormById" resultType="com.skua.modules.erp.voErpSettlementItemVO"> 65 <select id="queryWaterDepartSettlementFormById" resultType="com.skua.modules.erp.vo.ErpSettlementItemVO">
66 select d.depart_name,dc.contract_code,dc.contract_name as project_name ,mi.arrive_time, maf.appearance_info ,maf.matched_info ,maf.handle_msg ,maf.sender_sign ,maf.receiver_sign ,aaa.* 66 select d.depart_name,dc.contract_code,dc.contract_name as project_name ,mi.arrive_time, maf.appearance_info ,maf.matched_info ,maf.handle_msg ,maf.sender_sign ,maf.receiver_sign ,aaa.*
67 from ( 67 from (
68 select si.sparepart_name,si.material_num,si.specification,si.measuring_unit, 68 select si.sparepart_name,si.material_num,si.specification,si.measuring_unit,
......
...@@ -12,10 +12,6 @@ import lombok.Data; ...@@ -12,10 +12,6 @@ import lombok.Data;
12 public class ErpSettlementItemVO extends ErpSettlementItem { 12 public class ErpSettlementItemVO extends ErpSettlementItem {
13 @ApiModelProperty(value = "合同编号") 13 @ApiModelProperty(value = "合同编号")
14 private String contractCode; 14 private String contractCode;
15 @ApiModelProperty(value = "物料名称")
16 private String sparepartName;
17 @ApiModelProperty(value = "规格型号")
18 private String specification;
19 @ApiModelProperty(value = "项目名称") 15 @ApiModelProperty(value = "项目名称")
20 private String projectName; 16 private String projectName;
21 17
......
1 package com.skua.modules.report.vo.largeScreen; 1 package com.skua.modules.report.vo.largeScreen;
2 2
3 import com.skua.core.util.ConvertUtils;
3 import com.skua.tool.util.DigitalUtils; 4 import com.skua.tool.util.DigitalUtils;
4 import com.skua.tool.util.JSUtils; 5 import com.skua.tool.util.JSUtils;
5 import io.swagger.annotations.ApiModel; 6 import io.swagger.annotations.ApiModel;
...@@ -102,8 +103,8 @@ public class ResultNumberVO { ...@@ -102,8 +103,8 @@ public class ResultNumberVO {
102 public ResultNumberVO(String name, String unit, String value, String valueTb, String valueHb) { 103 public ResultNumberVO(String name, String unit, String value, String valueTb, String valueHb) {
103 this.name = name; 104 this.name = name;
104 this.unit = unit; 105 this.unit = unit;
105 this.value = value; 106 this.value = ConvertUtils.getString(value,"0") ;
106 this.valueTb = valueTb; 107 this.valueTb = ConvertUtils.getString(valueTb,"0");
107 this.valueHb = valueHb; 108 this.valueHb = ConvertUtils.getString(valueHb,"0");
108 } 109 }
109 } 110 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!