|
@@ -72,7 +72,7 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
-<!-- <select id="selectZsyzShyjListByWt" resultMap="ZsyzShyjResult">
|
|
|
+ <select id="selectZsyzShyjListByWt" resultMap="ZsyzShyjResult">
|
|
|
SELECT
|
|
|
ANY_VALUE ( s.id ) as id,
|
|
|
ANY_VALUE ( s.xm_id ) as xm_id ,
|
|
@@ -89,20 +89,20 @@
|
|
|
<where>
|
|
|
s.shjg = '2'
|
|
|
<if test="xmmc != null and xmmc != ''">and s.xmmc like concat( #{xmmc}, '%') </if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!– 开始时间检索 –>
|
|
|
+ <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
AND date_format(s.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
</if>
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!– 结束时间检索 –>
|
|
|
+ <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
AND date_format(s.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
- <!– 数据范围过滤 –>
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
GROUP BY
|
|
|
s.xm_id
|
|
|
- </select>-->
|
|
|
+ </select>
|
|
|
|
|
|
- <select id="selectZsyzShyjListByWt" resultMap="ZsyzShyjResult">
|
|
|
+<!-- <select id="selectZsyzShyjListByWt" resultMap="ZsyzShyjResult">
|
|
|
SELECT
|
|
|
id,
|
|
|
xm_id ,
|
|
@@ -119,18 +119,18 @@
|
|
|
<where>
|
|
|
shjg = '2'
|
|
|
<if test="xmmc != null and xmmc != ''">and xmmc like concat( #{xmmc}, '%') </if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ <if test="params.beginTime != null and params.beginTime != ''"><!– 开始时间检索 –>
|
|
|
AND date_format(s.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
</if>
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ <if test="params.endTime != null and params.endTime != ''"><!– 结束时间检索 –>
|
|
|
AND date_format(s.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
- <!-- 数据范围过滤 -->
|
|
|
+ <!– 数据范围过滤 –>
|
|
|
${params.dataScope}
|
|
|
GROUP BY
|
|
|
xm_id
|
|
|
- </select>
|
|
|
+ </select>-->
|
|
|
|
|
|
<insert id="insertZsyzShyj" parameterType="ZsyzShyj" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into zsyz_shyj
|