|
@@ -70,7 +70,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 ,
|
|
@@ -87,20 +87,20 @@
|
|
|
<where>
|
|
|
s.shjg = '3'
|
|
|
<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
|
|
|
s.id,
|
|
|
s.xm_id ,
|
|
@@ -117,18 +117,18 @@
|
|
|
<where>
|
|
|
s.shjg = '3'
|
|
|
<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>-->
|
|
|
|
|
|
<insert id="insertZsyzShyj" parameterType="ZsyzShyj" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into zsyz_shyj
|