From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index ff403e7..3e855ce
--- a/java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml
@@ -28,10 +28,10 @@
partyB,t.contract_id,t.contract_id contractId,t.obj_id,t.obj_id objId,t.contract_name,t.contract_name
contractName,t.start_time,t.start_time startTime,t.end_time,t.end_time
endTime,t.state,t.contract_code,t.contract_code contractCode,t.obj_type,t.obj_type
- objType,t.operator_link,t.operator_link operatorLink,ct.type_name contractTypeName,td.`name`
+ objType,t.operator_link,t.operator_link operatorLink,ct.type_name contractTypeName,ct.audit,td.`name`
stateName,t.state_desc stateDesc,t.contract_parent_id contractParentId,tt.contract_code parentContractCode,
tt.contract_name parentContractName,t.obj_name objName, t.obj_person_name objPersonName, t.obj_person_id objPersonId,
- t.start_user_id startUserId
+ t.start_user_id startUserId,t.create_time createTime
from contract t
LEFT JOIN contract_type ct on t.contract_type = ct.contract_type_id and ct.status_cd = '0' and ct.store_id =
t.store_id
@@ -91,6 +91,9 @@
</if>
<if test="contractName !=null and contractName != ''">
and t.contract_name= #{contractName}
+ </if>
+ <if test="contractNameLike !=null and contractNameLike != ''">
+ and t.contract_name like concat('%',#{contractNameLike},'%')
</if>
<if test="startTime !=null">
and t.start_time= #{startTime}
@@ -262,6 +265,9 @@
<if test="contractName !=null and contractName != ''">
and t.contract_name= #{contractName}
</if>
+ <if test="contractNameLike !=null and contractNameLike != ''">
+ and t.contract_name like concat('%',#{contractNameLike},'%')
+ </if>
<if test="startTime !=null ">
and t.start_time= #{startTime}
</if>
--
Gitblit v1.8.0