Pārlūkot izejas kodu

入库价格核定-v1.0

hanqingsong 4 mēneši atpakaļ
vecāks
revīzija
16a080ef80

+ 8 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/priceApproval/entity/PriceApproval.java

@@ -101,6 +101,14 @@ public class PriceApproval {
101 101
     @TableField(exist = false)
102 102
     private BigDecimal settleDate;
103 103
 
104
+    @ApiModelProperty(value = "附件-合同带出", position = 17)
105
+    @TableField(exist = false)
106
+    private String attachment;
107
+
108
+    @ApiModelProperty(value = "附件-竞拍日期", position = 18)
109
+    @TableField(exist = false)
110
+    private String signingTime;
111
+
104 112
     @ApiModelProperty(value = "合同信息")
105 113
     @TableField(exist = false)
106 114
     private List<BusinessContractParam> contractList;

+ 2 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/priceApproval/mapper/PriceApprovalMapper.java

@@ -46,4 +46,6 @@ public interface PriceApprovalMapper extends BaseMapper<PriceApproval> {
46 46
     List<PriceApprovalSettle> getApprovalSettleList(@Param("id") Integer id);
47 47
 
48 48
     List<DataCPZ> getApprovalThreeRKMX(@Param("orgId") Integer orgId);
49
+
50
+    PriceApproval queryEntityById(@Param("id") Integer id);
49 51
 }

+ 13 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/priceApproval/mapper/mapping/PriceApprovalMapper.xml

@@ -125,4 +125,17 @@
125 125
         LEFT JOIN basic_warehouse bw ON bw.warehouse_id = cpz.sjhwID
126 126
         WHERE cpz.DeptID = #{orgId}
127 127
     </select>
128
+    <select id="queryEntityById" parameterType="integer" resultType="com.unis.financialSupervision.modular.priceApproval.entity.PriceApproval">
129
+        SELECT
130
+            pa.*, oi.org_name orgName,
131
+            bc.contract_number contractNumber,
132
+            bc.attachment,
133
+            bc.signing_time signingTime
134
+        FROM
135
+            business_fs_storage_price_approval pa
136
+        LEFT JOIN org_info oi ON pa.org_id = oi.org_id
137
+        LEFT JOIN business_contract bc ON pa.contract_id = bc.id
138
+        WHERE
139
+            pa.id = #{id}
140
+    </select>
128 141
 </mapper>

+ 2 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/priceApproval/service/impl/PriceApprovalServiceImpl.java

@@ -124,7 +124,8 @@ public class PriceApprovalServiceImpl extends ServiceImpl<PriceApprovalMapper, P
124 124
     public PriceApproval detail(PriceApprovalIdParam priceApprovalIdParam) {
125 125
         Integer id = priceApprovalIdParam.getId();
126 126
         // 查询主表关联数据
127
-        PriceApproval priceApproval = this.queryEntity(id);
127
+//        PriceApproval priceApproval = this.queryEntity(id);
128
+        PriceApproval priceApproval = priceApprovalMapper.queryEntityById(id);
128 129
         // 合同信息
129 130
         List<BusinessContractParam> contractInfo = priceApprovalMapper.getContractInfo(priceApproval.getOrgId());
130 131
         if (CollectionUtils.isNotEmpty(contractInfo)) {