|
|
@@ -1,6 +1,39 @@
|
|
1
|
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
2
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
3
|
3
|
<mapper namespace="com.chinaitop.depot.sqr.mapper.BizSqrEnterpriseMapper">
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.chinaitop.depot.sqr.model.vo.BizSqrEnterpriseVO" >
|
|
|
5
|
+ <id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
6
|
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
7
|
+ <result column="create_user" property="createUser" jdbcType="VARCHAR" />
|
|
|
8
|
+ <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
9
|
+ <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
|
|
|
10
|
+
|
|
|
11
|
+ <result column="attachment" property="attachment" jdbcType="VARCHAR" />
|
|
|
12
|
+ <result column="unitInfoId" property="unitInfoId" jdbcType="VARCHAR" />
|
|
|
13
|
+
|
|
|
14
|
+ <result column="storage_expire_time" property="storageExpireTime" jdbcType="TIMESTAMP" />
|
|
|
15
|
+ <result column="full_time_staff_count" property="fullTimeStaffCount" jdbcType="INTEGER" />
|
|
|
16
|
+ <result column="certified_storekeeper_count" property="certifiedStorekeeperCount" jdbcType="INTEGER" />
|
|
|
17
|
+ <result column="certified_inspector_count" property="certifiedInspectorCount" jdbcType="INTEGER" />
|
|
|
18
|
+ <result column="warehouse_facility_situation" property="warehouseFacilitySituation" jdbcType="VARCHAR" />
|
|
|
19
|
+
|
|
|
20
|
+ <result column="status" property="status" jdbcType="INTEGER" />
|
|
|
21
|
+
|
|
|
22
|
+ <result column="dwmc" property="dwmc" jdbcType="VARCHAR" />
|
|
|
23
|
+ <result column="dwdm" property="dwdm" jdbcType="VARCHAR" />
|
|
|
24
|
+ <result column="fddbr" property="fddbr" jdbcType="VARCHAR" />
|
|
|
25
|
+ <result column="dwlx" property="dwlx" jdbcType="VARCHAR" />
|
|
|
26
|
+ <result column="zcdz" property="zcdz" jdbcType="VARCHAR" />
|
|
|
27
|
+ <result column="cfs" property="cfs" jdbcType="VARCHAR" />
|
|
|
28
|
+ <result column="ygs" property="ygs" jdbcType="INTEGER" />
|
|
|
29
|
+ <result column="DICT_LABEL" property="dictLabel" jdbcType="VARCHAR" />
|
|
|
30
|
+ </resultMap>
|
|
|
31
|
+
|
|
|
32
|
+
|
|
|
33
|
+
|
|
|
34
|
+
|
|
|
35
|
+
|
|
|
36
|
+
|
|
4
|
37
|
|
|
5
|
38
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true" parameterType="com.chinaitop.depot.sqr.model.BizSqrEnterprise">
|
|
6
|
39
|
insert into province_all.biz_sqr_enterprise(id,unit_info_id,full_time_staff_count,
|
|
|
@@ -30,17 +63,35 @@
|
|
30
|
63
|
DELETE FROM province_all.biz_sqr_enterprise WHERE id = #{id,jdbcType=VARCHAR}
|
|
31
|
64
|
</delete>
|
|
32
|
65
|
|
|
33
|
|
- <select id="TreeList" >
|
|
34
|
|
- SELECT
|
|
35
|
|
- bgqa.id,bui.id unitInfoId, bui.dwmc,bui.dwdm,bui.fddbr,bui.dwlx,bgqa.apply_status,bgqa.apply_type,bgq.audit_status
|
|
36
|
|
- FROM
|
|
37
|
|
- province_all.biz_sqr_enterprise_apply bgqa
|
|
38
|
|
- LEFT JOIN province_all.biz_unit_info bui ON bgqa.unit_info_id = bui.id
|
|
39
|
|
- LEFT JOIN province_all.biz_audit_request bgq ON bgqa.id = bgq.request_id
|
|
40
|
|
- where bgqa.apply_type=#{applyType,jdbcType=INTEGER}
|
|
41
|
|
- <if test="dwmc != null and dwmc != ''">
|
|
42
|
|
- and bui.dwmc LIKE concat('%', #{dwmc}, '%')
|
|
43
|
|
- </if>
|
|
|
66
|
+ <select id="TreeList" resultMap="BaseResultMap">
|
|
|
67
|
+ SELECT A.dwmc,
|
|
|
68
|
+ A.id unitInfoId,
|
|
|
69
|
+ A.dwdm,
|
|
|
70
|
+ A.fddbr,
|
|
|
71
|
+ A.dwlx,
|
|
|
72
|
+ A.zcdz,
|
|
|
73
|
+ A.cfs,
|
|
|
74
|
+ A.ygs,
|
|
|
75
|
+ A.DICT_LABEL,
|
|
|
76
|
+ bse.certified_storekeeper_count,
|
|
|
77
|
+ bse.certified_inspector_count,
|
|
|
78
|
+ bse.warehouse_facility_situation,
|
|
|
79
|
+ bse.full_time_staff_count,
|
|
|
80
|
+ bse.storage_expire_time,
|
|
|
81
|
+ bse.attachment attachment
|
|
|
82
|
+ FROM province_all.biz_sqr_enterprise bse
|
|
|
83
|
+ LEFT JOIN (select bui.id,
|
|
|
84
|
+ bui.dwmc,
|
|
|
85
|
+ bui.dwdm,
|
|
|
86
|
+ bui.fddbr,
|
|
|
87
|
+ bui.dwlx,
|
|
|
88
|
+ bui.zcdz,
|
|
|
89
|
+ bui.cfs,
|
|
|
90
|
+ bui.ygs,
|
|
|
91
|
+ dict.DICT_LABEL
|
|
|
92
|
+ from province_all.biz_unit_info bui
|
|
|
93
|
+ left join province_all.dev_dict dict on bui.dwlx = dict.id
|
|
|
94
|
+ ) A ON bse.unit_info_id = A.id
|
|
44
|
95
|
|
|
45
|
96
|
</select>
|
|
46
|
97
|
|