|
|
@@ -123,6 +123,25 @@
|
|
123
|
123
|
|
|
124
|
124
|
</select>
|
|
125
|
125
|
|
|
|
126
|
+ <select id="findById1" resultType="Map" resultMap="BaseResultMap">
|
|
|
127
|
+ SELECT
|
|
|
128
|
+ bgqa.id, A.dwmc,A.id unitInfoId, A.dwdm,A.fddbr,A.dwlx,A.zcdz,A.cfs,A.ygs,A.DICT_LABEL,bgqa.apply_status,bgqa.apply_type,
|
|
|
129
|
+ bse.certified_storekeeper_count ,bse.certified_inspector_count ,bse.warehouse_facility_situation ,
|
|
|
130
|
+ bse.full_time_staff_count ,bgqa.storage_expire_time ,bgqa.attachment attachment,bgqa.sqr_enterprise_id
|
|
|
131
|
+ FROM
|
|
|
132
|
+ province_all.biz_sqr_enterprise_apply bgqa
|
|
|
133
|
+ left join province_all.biz_sqr_enterprise bse on bgqa.sqr_enterprise_id =bse.id
|
|
|
134
|
+ left join(select bui.id,bui.dwmc,bui.dwdm,bui.fddbr,bui.dwlx,bui.zcdz,bui.cfs,bui.ygs,dict.DICT_LABEL from province_all.biz_unit_info bui left join province_all.dev_dict dict on bui.dwlx = dict.id
|
|
|
135
|
+ <if test="unitInfoId != null and unitInfoId != ''">
|
|
|
136
|
+ where bui.id =#{unitInfoId,jdbcType=VARCHAR}
|
|
|
137
|
+ </if>
|
|
|
138
|
+
|
|
|
139
|
+ )A on bgqa.unit_info_id = A.id
|
|
|
140
|
+ where bgqa.id=#{id,jdbcType=INTEGER} and bgqa.apply_type=#{applyType,jdbcType=INTEGER}
|
|
|
141
|
+
|
|
|
142
|
+ </select>
|
|
|
143
|
+
|
|
|
144
|
+
|
|
126
|
145
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true" parameterType="com.chinaitop.depot.sqr.model.BizSqrEnterpriseApply">
|
|
127
|
146
|
insert into province_all.biz_sqr_enterprise_apply (id,unit_info_id,apply_type,
|
|
128
|
147
|
apply_status,storage_expire_time,sqr_enterprise_id,
|