xucaiqin 1 month ago
parent
commit
2585889a78

+ 1 - 0
sckw-modules/sckw-contract/src/main/java/com/sckw/contract/model/vo/res/LogisticsEntDto.java

@@ -28,6 +28,7 @@ public class LogisticsEntDto {
     @NotBlank(message = "合同编号不能为空")
     @Schema(description = "合同编号")
     private String contractNo;
+    private String contractName;
 
     @NotNull(message = "承运单位不能为空")
     private Long entId;

+ 6 - 4
sckw-modules/sckw-contract/src/main/resources/mapper/KwcContractLogisticsMapper.xml

@@ -236,15 +236,17 @@
     </select>
 
     <select id="queryContract" resultType="com.sckw.contract.model.vo.res.LogisticsEntDto">
-        SELECT a.id contractId,
-               a.contract_no
+        SELECT a.id   contractId,
+               a.contract_no,
+               a.ent_id,
+               a.name contractName
         FROM kwc_contract_logistics a
                  LEFT JOIN kwc_contract_logistics_unit b ON a.id = b.contract_id and b.del_flag = 0 and b.unit_type = 3
         <where>
             a.del_flag = 0
               and a.status = 0
-            and a.transport_biz_type = 2
-            and b.ent_id = #{entId}
+              and a.transport_biz_type = 2
+              and b.ent_id = #{entId}
             <if test="keyword != null and keyword != ''">
                 and (a.contract_no like concat('%', #{keyword}, '%')
                     or a.name like concat('%', #{keyword}, '%'))