From b497ff41e47f4ebe69b86f13f6972f34f33f4884 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 01 六月 2021 09:35:46 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
java110-db/src/main/resources/mapper/store/ContractTypeServiceDaoImplMapper.xml | 151 ++++++++++++++++++++++++-------------------------
1 files changed, 74 insertions(+), 77 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ContractTypeServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ContractTypeServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index a512ab9..8cf2db1
--- a/java110-db/src/main/resources/mapper/store/ContractTypeServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ContractTypeServiceDaoImplMapper.xml
@@ -5,102 +5,99 @@
<mapper namespace="contractTypeServiceDaoImpl">
-
-
-
<!-- 淇濆瓨鍚堝悓绫诲瀷淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveContractTypeInfo" parameterType="Map">
insert into contract_type(
-audit,type_name,remark,store_id,contract_type_id
-) values (
-#{audit},#{typeName},#{remark},#{storeId},#{contractTypeId}
-)
+ audit,type_name,remark,store_id,contract_type_id
+ ) values (
+ #{audit},#{typeName},#{remark},#{storeId},#{contractTypeId}
+ )
</insert>
-
<!-- 鏌ヨ鍚堝悓绫诲瀷淇℃伅 add by wuxw 2018-07-03 -->
<select id="getContractTypeInfo" parameterType="Map" resultType="Map">
- select t.audit,t.type_name,t.type_name typeName,t.remark,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.contract_type_id,t.contract_type_id contractTypeId
-from contract_type t
-where 1 =1
-<if test="audit !=null and audit != ''">
- and t.audit= #{audit}
-</if>
-<if test="typeName !=null and typeName != ''">
- and t.type_name= #{typeName}
-</if>
-<if test="remark !=null and remark != ''">
- and t.remark= #{remark}
-</if>
-<if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
-</if>
-<if test="storeId !=null and storeId != ''">
- and t.store_id= #{storeId}
-</if>
-<if test="contractTypeId !=null and contractTypeId != ''">
- and t.contract_type_id= #{contractTypeId}
-</if>
-order by t.create_time desc
-<if test="page != -1 and page != null ">
- limit #{page}, #{row}
-</if>
+ select t.audit,t.type_name,t.type_name typeName,t.remark,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id
+ storeId,t.contract_type_id,t.contract_type_id contractTypeId,td.`name` auditName,t.create_time createTime
+ from contract_type t
+ LEFT JOIN t_dict td on td.table_name = 'contract_type' and td.table_columns = 'audit' and t.audit = td.status_cd
+ where 1 =1
+ <if test="audit !=null and audit != ''">
+ and t.audit= #{audit}
+ </if>
+ <if test="typeName !=null and typeName != ''">
+ and t.type_name= #{typeName}
+ </if>
+ <if test="remark !=null and remark != ''">
+ and t.remark= #{remark}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="contractTypeId !=null and contractTypeId != ''">
+ and t.contract_type_id= #{contractTypeId}
+ </if>
+ order by t.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
</select>
-
-
<!-- 淇敼鍚堝悓绫诲瀷淇℃伅 add by wuxw 2018-07-03 -->
<update id="updateContractTypeInfo" parameterType="Map">
- update contract_type t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if>
-<if test="audit !=null and audit != ''">
-, t.audit= #{audit}
-</if>
-<if test="typeName !=null and typeName != ''">
-, t.type_name= #{typeName}
-</if>
-<if test="remark !=null and remark != ''">
-, t.remark= #{remark}
-</if>
-<if test="storeId !=null and storeId != ''">
-, t.store_id= #{storeId}
-</if>
- where 1=1 <if test="contractTypeId !=null and contractTypeId != ''">
-and t.contract_type_id= #{contractTypeId}
-</if>
+ update contract_type t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+ <if test="audit !=null and audit != ''">
+ , t.audit= #{audit}
+ </if>
+ <if test="typeName !=null and typeName != ''">
+ , t.type_name= #{typeName}
+ </if>
+ <if test="remark !=null and remark != ''">
+ , t.remark= #{remark}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ , t.store_id= #{storeId}
+ </if>
+ where 1=1
+ <if test="contractTypeId !=null and contractTypeId != ''">
+ and t.contract_type_id= #{contractTypeId}
+ </if>
</update>
<!-- 鏌ヨ鍚堝悓绫诲瀷鏁伴噺 add by wuxw 2018-07-03 -->
- <select id="queryContractTypesCount" parameterType="Map" resultType="Map">
- select count(1) count
-from contract_type t
-where 1 =1
-<if test="audit !=null and audit != ''">
- and t.audit= #{audit}
-</if>
-<if test="typeName !=null and typeName != ''">
- and t.type_name= #{typeName}
-</if>
-<if test="remark !=null and remark != ''">
- and t.remark= #{remark}
-</if>
-<if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
-</if>
-<if test="storeId !=null and storeId != ''">
- and t.store_id= #{storeId}
-</if>
-<if test="contractTypeId !=null and contractTypeId != ''">
- and t.contract_type_id= #{contractTypeId}
-</if>
+ <select id="queryContractTypesCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from contract_type t
+ where 1 =1
+ <if test="audit !=null and audit != ''">
+ and t.audit= #{audit}
+ </if>
+ <if test="typeName !=null and typeName != ''">
+ and t.type_name= #{typeName}
+ </if>
+ <if test="remark !=null and remark != ''">
+ and t.remark= #{remark}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="contractTypeId !=null and contractTypeId != ''">
+ and t.contract_type_id= #{contractTypeId}
+ </if>
- </select>
+ </select>
</mapper>
--
Gitblit v1.8.0