Merge branch 'origin/Three' into 'develop_master'
Origin/three See merge request LiuChao/foton-slrs-system-rest!265
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.adc.da.slrs.wgdCensusLeo.dao.WgdZcbDao">
|
||||
<!-- 基础信息-->
|
||||
<sql id="BaseInfo">
|
||||
id,name,cost,use,annex
|
||||
id,name,cost,purposes,annexs
|
||||
</sql>
|
||||
<!-- 查询条件-->
|
||||
<sql id="Conditions">
|
||||
@@ -12,18 +12,17 @@
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%',#{name},'%')
|
||||
and name = #{name}
|
||||
</if>
|
||||
<if test="cost != null and cost != ''">
|
||||
and cost like concat('%',#{cost},'%')
|
||||
and cost = #{cost}
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
and use like concat('%',#{use},'%')
|
||||
<if test="purposes != null and purposes != ''">
|
||||
and purposes = #{purposes}
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
and annex = #{annex}
|
||||
<if test="annexs != null and annexs != ''">
|
||||
and annexs = #{annexs}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</sql>
|
||||
<select id="getTotal" resultType="java.lang.Integer">
|
||||
@@ -57,13 +56,13 @@
|
||||
<if test="cost != null and cost != ''">
|
||||
cost = #{cost},
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
use = #{use},
|
||||
<if test="purposes != null and purposes != ''">
|
||||
purposes = #{purposes},
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
annex = #{annex},
|
||||
<if test="annexs != null and annexs != ''">
|
||||
annexs = #{annexs},
|
||||
</if>
|
||||
|
||||
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@@ -80,13 +79,13 @@
|
||||
<if test="cost != null and cost != ''">
|
||||
cost,
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
use,
|
||||
<if test="purposes != null and purposes != ''">
|
||||
purposes,
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
annex,
|
||||
<if test="annexs != null and annexs != ''">
|
||||
annexs,
|
||||
</if>
|
||||
|
||||
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -99,11 +98,11 @@
|
||||
<if test="cost != null and cost != ''">
|
||||
#{cost},
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
#{use},
|
||||
<if test="purposes != null and purposes != ''">
|
||||
#{purposes},
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
#{annex},
|
||||
<if test="annexs != null and annexs != ''">
|
||||
#{annexs},
|
||||
</if>
|
||||
|
||||
</trim>
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
</if>
|
||||
<if test="scName != null and scName != ''">
|
||||
and (
|
||||
sc_name like concat('%',#{scName} ,'%')
|
||||
ssc_name like concat('%',#{scName} ,'%')
|
||||
sc_name like concat('%',#{scName} ,'%') or
|
||||
ssc_name like concat('%',#{scName} ,'%') or
|
||||
wg_name like concat('%',#{scName} ,'%')
|
||||
)
|
||||
</if>
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
</if>
|
||||
<if test="scName != null and scName != ''">
|
||||
and (
|
||||
sc_name like concat('%',#{scName} ,'%')
|
||||
ssc_name like concat('%',#{scName} ,'%')
|
||||
sc_name like concat('%',#{scName} ,'%') or
|
||||
ssc_name like concat('%',#{scName} ,'%') or
|
||||
wg_name like concat('%',#{scName} ,'%')
|
||||
)
|
||||
</if>
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
</if>
|
||||
<if test="scName != null and scName != ''">
|
||||
and (
|
||||
sc_name like concat('%',#{scName} ,'%')
|
||||
ssc_name like concat('%',#{scName} ,'%')
|
||||
wg_name like concat('%',#{scName} ,'%')
|
||||
)
|
||||
sc_name like concat('%',#{scName} ,'%') or
|
||||
ssc_name like concat('%',#{scName} ,'%') or
|
||||
wg_name like concat('%',#{scName} ,'%')
|
||||
)
|
||||
</if>
|
||||
<if test="role != null and role != ''">
|
||||
and role = #{role}
|
||||
|
||||
Reference in New Issue
Block a user