~
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.adc.da.slrs.wgdCensusLeo.dao.WgdFyfyDao">
|
||||
<!-- 基础信息-->
|
||||
<sql id="BaseInfo">
|
||||
id,type,number,name,pages,cost,time
|
||||
id,type,number,name,translation,pages,cost,time
|
||||
</sql>
|
||||
<!-- 查询条件-->
|
||||
<sql id="Conditions">
|
||||
@@ -20,6 +20,9 @@
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%',#{name},'%')
|
||||
</if>
|
||||
<if test="translation != null and translation != ''">
|
||||
and translation like concat('%',#{translation},'%')
|
||||
</if>
|
||||
<if test="pages != null and pages != ''">
|
||||
and pages = #{pages}
|
||||
</if>
|
||||
@@ -31,6 +34,13 @@
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<select id="getTotal" resultType="java.lang.Integer">
|
||||
select count(*) from wgd_fyfy
|
||||
</select>
|
||||
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy" resultType="java.lang.Integer">
|
||||
select count(*) from wgd_fyfy
|
||||
<include refid="Conditions"></include>
|
||||
</select>
|
||||
<!-- 查询所有-->
|
||||
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
|
||||
select <include refid="BaseInfo"></include> from wgd_fyfy
|
||||
@@ -58,6 +68,9 @@
|
||||
<if test="name != null and name != ''">
|
||||
name = #{name},
|
||||
</if>
|
||||
<if test="translation != null and translation != ''">
|
||||
translation = #{translation},
|
||||
</if>
|
||||
<if test="pages != null and pages != ''">
|
||||
pages = #{pages},
|
||||
</if>
|
||||
@@ -86,6 +99,9 @@
|
||||
<if test="name != null and name != ''">
|
||||
name,
|
||||
</if>
|
||||
<if test="translation != null and translation != ''">
|
||||
translation,
|
||||
</if>
|
||||
<if test="pages != null and pages != ''">
|
||||
pages,
|
||||
</if>
|
||||
@@ -110,6 +126,9 @@
|
||||
<if test="name != null and name != ''">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="translation != null and translation != ''">
|
||||
#{translation},
|
||||
</if>
|
||||
<if test="pages != null and pages != ''">
|
||||
#{pages},
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user