ソースを参照

获得单位信息及其下的库区信息

guobing 1 週間 前
コミット
bd2043118c

+ 8 - 0
delivery-module-core/delivery-module-core-biz/src/main/java/com/unis/module/coding/controller/admin/dwxx/DwxxController.java

@@ -99,4 +99,12 @@ public class DwxxController {
99 99
                         BeanUtils.toBean(list, DwxxRespVO.class));
100 100
     }
101 101
 
102
+    @GetMapping("/getDwAndKq")
103
+    @Operation(summary = "获得单位信息及其下的库区信息")
104
+    @Parameter(name = "tyxydm", description = "统一信用代码", required = true, example = "1024")
105
+    @PreAuthorize("@ss.hasPermission('coding:dwxx:getDwAndKq')")
106
+    public CommonResult<DwAndKqRespVO> getDwAndKq(@RequestParam("tyxydm") String tyxydm) {
107
+        return success(dwxxService.getDwAndKq(tyxydm));
108
+    }
109
+
102 110
 }

+ 117 - 0
delivery-module-core/delivery-module-core-biz/src/main/java/com/unis/module/coding/controller/admin/dwxx/vo/DwAndKqRespVO.java

@@ -0,0 +1,117 @@
1
+package com.unis.module.coding.controller.admin.dwxx.vo;
2
+
3
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
4
+import com.alibaba.excel.annotation.ExcelProperty;
5
+import io.swagger.v3.oas.annotations.media.Schema;
6
+import lombok.Data;
7
+
8
+import java.math.BigDecimal;
9
+import java.time.LocalDateTime;
10
+import java.util.List;
11
+
12
+@Schema(description = "管理后台 - 单位信息 Response VO")
13
+@Data
14
+@ExcelIgnoreUnannotated
15
+public class DwAndKqRespVO {
16
+
17
+    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30392")
18
+    private Long id;
19
+
20
+    @Schema(description = "单位名称")
21
+    private String dwmc;
22
+
23
+    @Schema(description = "统一信用代码")
24
+    private String tyxydm;
25
+
26
+    @Schema(description = "法定代表人")
27
+    private String fddbr;
28
+
29
+    @Schema(description = "身份证号")
30
+    private String sfzh;
31
+
32
+    @Schema(description = "联系方式")
33
+    private String lxfs;
34
+
35
+    @Schema(description = "注册日期")
36
+    private LocalDateTime zcrq;
37
+
38
+    @Schema(description = "邮政编码")
39
+    private String yzbm;
40
+
41
+    @Schema(description = "注册地址")
42
+    private String zcdz;
43
+
44
+    @Schema(description = "企业性质")
45
+    private String qyxz;
46
+
47
+    @Schema(description = "上传营业执照")
48
+    private String license;
49
+
50
+    @Schema(description = "单位下库区信息列表")
51
+    private List<Kq> kqList;
52
+
53
+    // 内部子类,包含单位下库区信息
54
+    @Data
55
+    @Schema(description = "单位下库区信息")
56
+    public static class Kq {
57
+        @Schema(description = "库区ID")
58
+        private Long kqId;
59
+
60
+        @Schema(description = "库区名称")
61
+        private String kqmc;
62
+
63
+        @Schema(description = "库区编码")
64
+        private String kqdm;
65
+
66
+        @Schema(description = "邮政编码")
67
+        private String yzbm;
68
+
69
+        @Schema(description = "省")
70
+        private String sheng;
71
+
72
+        @Schema(description = "市")
73
+        private String shi;
74
+
75
+        @Schema(description = "县")
76
+        private String xian;
77
+
78
+        @Schema(description = "省名称")
79
+        private String shengName;
80
+
81
+        @Schema(description = "市名称")
82
+        private String shiName;
83
+
84
+        @Schema(description = "县名称")
85
+        private String xianName;
86
+
87
+        @Schema(description = "具体地址")
88
+        private String jtdz;
89
+
90
+        @Schema(description = "库区负责人")
91
+        private String kqfzr;
92
+
93
+        @Schema(description = "联系电话")
94
+        private String lxdh;
95
+
96
+        @Schema(description = "占地面积")
97
+        private BigDecimal zdmj;
98
+
99
+        @Schema(description = "库区状态")
100
+        private String kqzt;
101
+
102
+        @Schema(description = "租仓参考价(元)")
103
+        private Integer zcckj;
104
+
105
+        @Schema(description = "委托保管参考价(元/吨)")
106
+        private Integer wtbgckj;
107
+
108
+        @Schema(description = "经度")
109
+        private BigDecimal jd;
110
+
111
+        @Schema(description = "纬度")
112
+        private BigDecimal wd;
113
+
114
+        @Schema(description = "上传库区图id")
115
+        private String resid;
116
+    }
117
+}

+ 2 - 0
delivery-module-core/delivery-module-core-biz/src/main/java/com/unis/module/coding/dal/mysql/dwxx/DwxxMapper.java

@@ -38,4 +38,6 @@ public interface DwxxMapper extends BaseMapperX<DwxxDO> {
38 38
 
39 39
     List<StoreRespVO> getStoreListForNation(@Param("pageReqVO") StorePageReqVO pageReqVO);
40 40
     int deleteByDwId(@Param("id")Long id);
41
+
42
+    DwAndKqRespVO getDwAndKq(String tyxydm);
41 43
 }

+ 2 - 0
delivery-module-core/delivery-module-core-biz/src/main/java/com/unis/module/coding/service/dwxx/DwxxService.java

@@ -70,4 +70,6 @@ public interface DwxxService {
70 70
     DwxxDO getDwxxByKqBm();
71 71
 
72 72
     void deleteceshi(Long id);
73
+
74
+    DwAndKqRespVO getDwAndKq(String tyxydm);
73 75
 }

+ 5 - 0
delivery-module-core/delivery-module-core-biz/src/main/java/com/unis/module/coding/service/dwxx/DwxxServiceImpl.java

@@ -14,6 +14,7 @@ import com.unis.framework.security.core.LoginUser;
14 14
 import com.unis.framework.security.core.util.AreaUtils;
15 15
 import com.unis.framework.security.core.util.SecurityFrameworkUtils;
16 16
 import com.unis.module.coding.controller.admin.delivery.vo.*;
17
+import com.unis.module.coding.controller.admin.dwxx.vo.DwAndKqRespVO;
17 18
 import com.unis.module.coding.controller.admin.dwxx.vo.DwxxPageReqVO;
18 19
 import com.unis.module.coding.controller.admin.dwxx.vo.DwxxSaveReqVO;
19 20
 import com.unis.module.coding.dal.dataobject.bank.BankDO;
@@ -935,4 +936,8 @@ public class DwxxServiceImpl implements DwxxService {
935 936
                 .orElse(null);
936 937
     }
937 938
 
939
+    @Override
940
+    public DwAndKqRespVO getDwAndKq(String tyxydm) {
941
+        return dwxxMapper.getDwAndKq(tyxydm);
942
+    }
938 943
 }

+ 271 - 91
delivery-module-core/delivery-module-core-biz/src/main/resources/mapper/dwxx/DwxxMapper.xml

@@ -3,97 +3,205 @@
3 3
 <mapper namespace="com.unis.module.coding.dal.mysql.dwxx.DwxxMapper">
4 4
 
5 5
      <select id="selectWrapperPage" parameterType="com.unis.module.coding.controller.admin.delivery.vo.DeliveryPageReqVO" resultType="com.unis.module.coding.controller.admin.delivery.vo.DeliveryRespVO">
6
-        select
7
-            ck.id kqId,
8
-            cd.id deptId,
9
-            SUBSTRING_INDEX(ck.SHENG, ',', 1) SHENG,
10
-            SUBSTRING_INDEX(SUBSTRING_INDEX(ck.SHENG, ',', 2), ',', -1) SHI,
11
-            SUBSTRING_INDEX(ck.SHENG, ',', -1) XIAN,
12
-            cd.TYXYDM,
13
-            cd.DWMC,
14
-            ck.KQMC,
15
-            TRUNC(ifnull(t1.sjcrNum, 0)) sjcrNum,
16
-            ifnull(t1.cfnum, 0) cfnum,
17
-            ifnull(t2.yxcfnum, 0) yxcfnum,
18
-            ck.xzqhdm
19
-        from  CODING_DWXX cd
20
-        left join coding_kqxx ck on ck.DWID=cd.id
21
-        left join
22
-        (
23
-                select
24
-                        cf.BASE_KQXX_ID,
25
-                        sum(cc.SJCR) sjcrNum,
26
-                        count(cf.BASE_CAXX_ID) cfnum,
27
-                        ck.xzqhdm
28
-                from
29
-                        CODING_CAXX cc
30
-                join CODING_FMXX cf on cc.id=cf.BASE_CAXX_ID
31
-                join CODING_KQXX ck on cc.KQID=ck.id
32
-                <where>
33
-                        cf.deleted=0
34
-                    and cf.lsxz='000'
35
-                    AND NOT EXISTS (SELECT 1  from  DELIVERY_CAXX dc   where dc.DELETED=0 AND  cc.id=dc.id)
36
-                    <if test="pageReqVO.cflx!=null and pageReqVO.cflx!=''">
37
-                        and cc.CFLX=#{pageReqVO.cflx}
38
-                    </if>
39
-                    <if test="pageReqVO.cfzt!=null and pageReqVO.cfzt!=''">
40
-                        and cc.CAZT=#{pageReqVO.cfzt}
41
-                    </if>
42
-                    <if test="pageReqVO.cfStart!=null and pageReqVO.cfStart!='' and pageReqVO.cfEnd!=null and pageReqVO.cfEnd!=''">
43
-                        and cc.SJCR between #{pageReqVO.cfStart} and #{pageReqVO.cfEnd}
44
-                    </if>
45
-                    <if test="(pageReqVO.cfStart == null or pageReqVO.cfStart == '') and pageReqVO.cfEnd != null and pageReqVO.cfEnd != ''">
46
-                        and cc.SJCR <![CDATA[<=]]>  #{pageReqVO.cfEnd}
47
-                    </if>
48
-                    <if test=" pageReqVO.cfStart!=null and pageReqVO.cfStart!='' and (pageReqVO.cfEnd == null or pageReqVO.cfEnd == '') ">
49
-                        and cc.SJCR <![CDATA[>=]]>  #{pageReqVO.cfStart}
50
-                    </if>
51
-                </where>
52
-                group by cf.BASE_KQXX_ID
53
-        ) t1 on t1.BASE_KQXX_ID=ck.id
54
-        left join
55
-        (
56
-        select
57
-                cc.KQID,
58
-                count(cc.id) yxcfnum,
59
-                ck.xzqhdm
60
-        from  DELIVERY_KQXX ck
61
-        join  DELIVERY_CAXX cc on cc.KQID=ck.id
62
-        where cc.yxcf=1 and ck.deleted=0 and  cc.deleted=0
63
-        group by ck.id
64
-        ) t2 on t2.KQID=ck.id
65
-        <where>
66
-            cd.bz is null
67
-            and cd.qyxz!='10'
68
-            and cd.DELETED=0
69
-            <choose>
70
-                <when test=" (pageReqVO.cflx!=null and pageReqVO.cflx!='')
71
-                         or (pageReqVO.cfzt!=null and pageReqVO.cfzt!='')
72
-                         or (pageReqVO.cfStart!=null and pageReqVO.cfStart !='')
73
-                         or (pageReqVO.cfEnd!=null and pageReqVO.cfEnd !='') ">
74
-                    and t1.cfnum !=0
75
-                </when>
76
-                <otherwise>
77
-                   and  (t1.cfnum !=0  or t2.yxcfnum !=0)
78
-                </otherwise>
79
-            </choose>
80
-            <if test="pageReqVO.areaCode!=null and pageReqVO.areaCode!=''">
81
-                and ck.sheng like #{pageReqVO.areaCode}
82
-            </if>
83
-            <if test="pageReqVO.kqStart!=null and pageReqVO.kqEnd!=null ">
84
-                and IFNULL(t1.sjcrNum, 0)between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
85
-            </if>
86
-            <if test="pageReqVO.kqStart!=null  and pageReqVO.kqEnd==null ">
87
-                and t1.sjcrNum <![CDATA[>=]]>  #{pageReqVO.kqStart}
88
-            </if>
89
-            <if test="pageReqVO.kqStart==null  and pageReqVO.kqEnd!=null ">
90
-                and t1.sjcrNum <![CDATA[<=]]>  #{pageReqVO.kqEnd}
91
-            </if>           
92
-            <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">
93
-                and cd.DWMC like #{pageReqVO.dwmc}
94
-            </if>
95
-        </where>
96
-        order by cd.id desc
6
+         SELECT
7
+         cfxx.kqId,
8
+         cfxx.deptId,
9
+         cfxx.sheng sheng,
10
+         cfxx.shi shi,
11
+         cfxx.xian xian,
12
+         cfxx.TYXYDM,
13
+         cfxx.DWMC,
14
+         cfxx.KQMC,
15
+         SUM(cfxx.sjcrNum) sjcrNum,
16
+         SUM(cfxx.cfnum) cfnum,
17
+         SUM(cfxx.yxcfnum) yxcfnum,
18
+         cfxx.xzqhdm
19
+         FROM
20
+         (
21
+         select
22
+         ck.id kqId,
23
+         cd.id deptId,
24
+         SUBSTRING_INDEX(ck.SHENG, ',', 1) SHENG,
25
+         SUBSTRING_INDEX(SUBSTRING_INDEX(ck.SHENG, ',', 2), ',', -1) SHI,
26
+         SUBSTRING_INDEX(ck.SHENG, ',', -1) XIAN,
27
+         cd.TYXYDM,
28
+         cd.DWMC,
29
+         ck.KQMC,
30
+         TRUNC(ifnull(t1.sjcrNum, 0)) sjcrNum,
31
+         ifnull(t1.cfnum, 0) cfnum,
32
+         ifnull(t2.yxcfnum, 0) yxcfnum,
33
+         ck.xzqhdm
34
+         from  CODING_DWXX cd
35
+         left join coding_kqxx ck on ck.DWID=cd.id
36
+         left join
37
+         (
38
+         select
39
+         cf.BASE_KQXX_ID,
40
+         sum(cc.SJCR) sjcrNum,
41
+         count(cf.BASE_CAXX_ID) cfnum,
42
+         ck.xzqhdm
43
+         from
44
+         CODING_CAXX cc
45
+         join CODING_FMXX cf on cc.id=cf.BASE_CAXX_ID
46
+         join CODING_KQXX ck on cc.KQID=ck.id
47
+         <where>
48
+             cf.deleted=0
49
+             and cf.lsxz='000'
50
+             AND NOT EXISTS (SELECT 1  from  DELIVERY_CAXX dc   where dc.DELETED=0 AND  cc.id=dc.id)
51
+             <if test="pageReqVO.cflx!=null and pageReqVO.cflx!=''">
52
+                 and cc.CFLX=#{pageReqVO.cflx}
53
+             </if>
54
+             <if test="pageReqVO.cfzt!=null and pageReqVO.cfzt!=''">
55
+                 and cc.CAZT=#{pageReqVO.cfzt}
56
+             </if>
57
+             <if test="pageReqVO.cfStart!=null and pageReqVO.cfStart!='' and pageReqVO.cfEnd!=null and pageReqVO.cfEnd!=''">
58
+                 and cc.SJCR between #{pageReqVO.cfStart} and #{pageReqVO.cfEnd}
59
+             </if>
60
+             <if test="(pageReqVO.cfStart == null or pageReqVO.cfStart == '') and pageReqVO.cfEnd != null and pageReqVO.cfEnd != ''">
61
+                 and cc.SJCR <![CDATA[<=]]>  #{pageReqVO.cfEnd}
62
+             </if>
63
+             <if test=" pageReqVO.cfStart!=null and pageReqVO.cfStart!='' and (pageReqVO.cfEnd == null or pageReqVO.cfEnd == '') ">
64
+                 and cc.SJCR <![CDATA[>=]]>  #{pageReqVO.cfStart}
65
+             </if>
66
+         </where>
67
+         group by cf.BASE_KQXX_ID
68
+         ) t1 on t1.BASE_KQXX_ID=ck.id
69
+         left join
70
+         (
71
+         select
72
+         cc.KQID,
73
+         count(cc.id) yxcfnum,
74
+         ck.xzqhdm
75
+         from  DELIVERY_KQXX ck
76
+         join  DELIVERY_CAXX cc on cc.KQID=ck.id
77
+         where cc.yxcf=1 and ck.deleted=0 and  cc.deleted=0
78
+         group by ck.id
79
+         ) t2 on t2.KQID=ck.id
80
+         <where>
81
+             cd.bz is null
82
+             and cd.qyxz!='10'
83
+             and cd.DELETED=0
84
+             <choose>
85
+                 <when test=" (pageReqVO.cflx!=null and pageReqVO.cflx!='')
86
+                     or (pageReqVO.cfzt!=null and pageReqVO.cfzt!='')
87
+                     or (pageReqVO.cfStart!=null and pageReqVO.cfStart !='')
88
+                     or (pageReqVO.cfEnd!=null and pageReqVO.cfEnd !='') ">
89
+                     and t1.cfnum !=0
90
+                 </when>
91
+                 <otherwise>
92
+                     and  (t1.cfnum !=0  or t2.yxcfnum !=0)
93
+                 </otherwise>
94
+             </choose>
95
+             <if test="pageReqVO.areaCode!=null and pageReqVO.areaCode!=''">
96
+                 and ck.sheng like #{pageReqVO.areaCode}
97
+             </if>
98
+             <if test="pageReqVO.kqStart!=null and pageReqVO.kqEnd!=null ">
99
+                 and IFNULL(t1.sjcrNum, 0)between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
100
+             </if>
101
+             <if test="pageReqVO.kqStart!=null  and pageReqVO.kqEnd==null ">
102
+                 and t1.sjcrNum <![CDATA[>=]]>  #{pageReqVO.kqStart}
103
+             </if>
104
+             <if test="pageReqVO.kqStart==null  and pageReqVO.kqEnd!=null ">
105
+                 and t1.sjcrNum <![CDATA[<=]]>  #{pageReqVO.kqEnd}
106
+             </if>
107
+             <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">
108
+                 and cd.DWMC like #{pageReqVO.dwmc}
109
+             </if>
110
+         </where>
111
+         UNION ALL
112
+         SELECT
113
+         kq.id kqId,
114
+         dw.ID deptId,
115
+         kq.sheng_name sheng,
116
+         kq.shi_name shi,
117
+         kq.xian_name xian,
118
+         dw.TYXYDM,
119
+         dw.DWMC,
120
+         kq.KQMC,
121
+         TRUNC(IFNULL(t1.sjcrNum, 0)) sjcrNum,
122
+         IFNULL(t1.cfnum, 0) cfnum,
123
+         IFNULL(t2.yxcfnum, 0) yxcfnum,
124
+         IFNULL(kq.XIAN,IFNULL(kq.SHI,kq.SHENG)) xzqhdm
125
+         FROM
126
+         DELIVERY_KQXX kq
127
+         LEFT JOIN DELIVERY_DWXX dw ON kq.DWID = dw.ID
128
+         LEFT JOIN
129
+         (
130
+         select
131
+         cf.KQID,
132
+         sum(cf.SJCR) sjcrNum,
133
+         count(cf.id) cfnum
134
+         from
135
+         DELIVERY_CAXX cf
136
+         <where>
137
+             cf.deleted=0 AND cf.yxcf = 0  AND cf.SJLY = 0
138
+             <if test="pageReqVO.cflx!=null and pageReqVO.cflx!=''">
139
+                 and cf.CFLX=#{pageReqVO.cflx}
140
+             </if>
141
+             <if test="pageReqVO.cfzt!=null and pageReqVO.cfzt!=''">
142
+                 and cf.CAZT=#{pageReqVO.cfzt}
143
+             </if>
144
+             <if test="pageReqVO.cfStart!=null and pageReqVO.cfStart!='' and pageReqVO.cfEnd!=null and pageReqVO.cfEnd!=''">
145
+                 and cf.SJCR between #{pageReqVO.cfStart} and #{pageReqVO.cfEnd}
146
+             </if>
147
+             <if test="(pageReqVO.cfStart == null or pageReqVO.cfStart == '') and pageReqVO.cfEnd != null and pageReqVO.cfEnd != ''">
148
+                 and cf.SJCR <![CDATA[<=]]>  #{pageReqVO.cfEnd}
149
+             </if>
150
+             <if test=" pageReqVO.cfStart!=null and pageReqVO.cfStart!='' and (pageReqVO.cfEnd == null or pageReqVO.cfEnd == '') ">
151
+                 and cf.SJCR <![CDATA[>=]]>  #{pageReqVO.cfStart}
152
+             </if>
153
+         </where>
154
+         group by cf.KQID
155
+         ) t1 on t1.KQID=kq.id
156
+         LEFT JOIN
157
+         (
158
+         select
159
+         cf.KQID,
160
+         count(cf.id) yxcfnum
161
+         from  DELIVERY_CAXX cf
162
+         where cf.yxcf=1 AND cf.deleted=0 AND cf.SJLY = 0
163
+         group by cf.KQID
164
+         ) t2 on t2.KQID=kq.id
165
+         <where>
166
+             kq.SJLY = 0
167
+             and dw.qyxz!='10'
168
+             and dw.DELETED=0
169
+             <choose>
170
+                 <when test=" (pageReqVO.cflx!=null and pageReqVO.cflx!='')
171
+	                 or (pageReqVO.cfzt!=null and pageReqVO.cfzt!='')
172
+	                 or (pageReqVO.cfStart!=null and pageReqVO.cfStart !='')
173
+	                 or (pageReqVO.cfEnd!=null and pageReqVO.cfEnd !='') ">
174
+                     and t1.cfnum !=0
175
+                 </when>
176
+                 <otherwise>
177
+                     and  (t1.cfnum !=0  or t2.yxcfnum !=0)
178
+                 </otherwise>
179
+             </choose>
180
+             <if test="pageReqVO.areaShi!=null and pageReqVO.areaShi!=''">
181
+                 and kq.SHI = #{pageReqVO.areaShi}
182
+             </if>
183
+             <if test="pageReqVO.areaSheng!=null and pageReqVO.areaSheng!=''">
184
+                 and kq.SHENG = #{pageReqVO.areaSheng}
185
+             </if>
186
+             <if test="pageReqVO.areaXian!=null and pageReqVO.areaXian!=''">
187
+                 and kq.XIAN = #{pageReqVO.areaXian}
188
+             </if>
189
+             <if test="pageReqVO.kqStart!=null and pageReqVO.kqEnd!=null ">
190
+                 and IFNULL(t1.sjcrNum, 0)between #{pageReqVO.kqStart} and #{pageReqVO.kqEnd}
191
+             </if>
192
+             <if test="pageReqVO.kqStart!=null  and pageReqVO.kqEnd==null ">
193
+                 and t1.sjcrNum <![CDATA[>=]]>  #{pageReqVO.kqStart}
194
+             </if>
195
+             <if test="pageReqVO.kqStart==null  and pageReqVO.kqEnd!=null ">
196
+                 and t1.sjcrNum <![CDATA[<=]]>  #{pageReqVO.kqEnd}
197
+             </if>
198
+             <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">
199
+                 and dw.DWMC like #{pageReqVO.dwmc}
200
+             </if>
201
+         </where>
202
+         ) cfxx
203
+         group by cfxx.kqId
204
+         order by cfxx.deptId desc
97 205
     </select>
98 206
 
99 207
      <select id="selectWrapperPageForSheng" parameterType="com.unis.module.coding.controller.admin.delivery.vo.DeliveryPageReqVO" resultType="com.unis.module.coding.controller.admin.delivery.vo.DeliveryRespVO">
@@ -342,6 +450,78 @@
342 450
     DELETE FROM DELIVERY_DWXX  where id = #{id}
343 451
 </delete>
344 452
 
453
+    <select id="getDwAndKq" resultMap="DwAndKqResultMap">
454
+        SELECT
455
+            dw.id,
456
+            dw.dwmc,
457
+            dw.tyxydm,
458
+            dw.fddbr,
459
+            dw.sfzh,
460
+            dw.lxfs,
461
+            dw.zcrq,
462
+            dw.yzbm,
463
+            dw.zcdz,
464
+            dw.qyxz,
465
+            dw.resid license,
466
+            kq.id kqId,
467
+            kq.KQMC,
468
+            kq.KQDM,
469
+            kq.YZBM,
470
+            kq.SHENG,
471
+            kq.SHI,
472
+            kq.XIAN,
473
+            kq.SHENG_NAME,
474
+            kq.SHI_NAME,
475
+            kq.XIAN_NAME,
476
+            kq.JTDZ,
477
+            kq.KQFZR,
478
+            kq.LXDH,
479
+            kq.ZDMJ,
480
+            kq.zcckj,
481
+            kq.wtbgckj,
482
+            kq.JD,
483
+            kq.WD,
484
+            kq.RESID
485
+        from
486
+            DELIVERY_DWXX dw
487
+                LEFT JOIN DELIVERY_KQXX kq on kq.DWID = dw.ID
488
+        WHERE dw.tyxydm = #{tyxydm}
489
+    </select>
345 490
 
491
+    <resultMap id="DwAndKqResultMap" type="com.unis.module.coding.controller.admin.dwxx.vo.DwAndKqRespVO">
492
+        <id property="id" column="id"/>
493
+        <result property="dwmc" column="dwmc"/>
494
+        <result property="tyxydm" column="tyxydm"/>
495
+        <result property="fddbr" column="fddbr"/>
496
+        <result property="sfzh" column="sfzh"/>
497
+        <result property="lxfs" column="lxfs"/>
498
+        <result property="zcrq" column="zcrq"/>
499
+        <result property="yzbm" column="yzbm"/>
500
+        <result property="zcdz" column="zcdz"/>
501
+        <result property="qyxz" column="qyxz"/>
502
+        <result property="license" column="license"/>
503
+        <collection property="kqList" ofType="com.unis.module.coding.controller.admin.dwxx.vo.DwAndKqRespVO$Kq">
504
+            <id property="kqId" column="kqId"/>
505
+            <result property="kqmc" column="kqmc"/>
506
+            <result property="kqdm" column="kqdm"/>
507
+            <result property="yzbm" column="yzbm"/>
508
+            <result property="sheng" column="sheng"/>
509
+            <result property="shi" column="shi"/>
510
+            <result property="xian" column="xian"/>
511
+            <result property="shengName" column="sheng_name"/>
512
+            <result property="shiName" column="shi_name"/>
513
+            <result property="xianName" column="xian_name"/>
514
+            <result property="jtdz" column="jtdz"/>
515
+            <result property="kqfzr" column="kqfzr"/>
516
+            <result property="lxdh" column="lxdh"/>
517
+            <result property="zdmj" column="zdmj"/>
518
+            <result property="kqzt" column="kqzt"/>
519
+            <result property="zcckj" column="zcckj"/>
520
+            <result property="wtbgckj" column="wtbgckj"/>
521
+            <result property="jd" column="jd"/>
522
+            <result property="wd" column="wd"/>
523
+            <result property="resid" column="resid"/>
524
+        </collection>
525
+    </resultMap>
346 526
 
347 527
 </mapper>