This commit is contained in:
liao
2021-11-19 11:19:42 +08:00
parent 71a686b92b
commit 5abbc7edd9
26 changed files with 109 additions and 28 deletions
@@ -32,6 +32,9 @@
and cost = #{cost}
</if>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_cgfy
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy" resultType="java.lang.Integer">
select count(*) from wgd_cgfy
<include refid="Conditions"></include>
@@ -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>
@@ -29,6 +29,13 @@
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_srb
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb" resultType="java.lang.Integer">
select count(*) from wgd_srb
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
@@ -52,6 +52,13 @@
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_wbtj
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj" resultType="java.lang.Integer">
select count(*) from wgd_wbtj
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
@@ -76,6 +76,13 @@
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_wbxd
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd" resultType="java.lang.Integer">
select count(*) from wgd_wbxd
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
@@ -26,6 +26,13 @@
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_zcb
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb" resultType="java.lang.Integer">
select count(*) from wgd_zcb
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb