|
@@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTShuju1ByID" parameterType="Long" resultMap="TShuju1Result">
|
|
|
<include refid="selectTShuju1Vo"/>
|
|
|
- where ID = #{ID} and del_flag = 0
|
|
|
+ where ID = #{ID}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertTShuju1" parameterType="TShuju1">
|
|
@@ -251,9 +251,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="jqrSwcZhenglin != null "> and JQR_SWC_ZHENGLIN = #{jqrSwcZhenglin}</if>
|
|
|
<if test="jqrSwcZhenglinTime != null and jqrSwcZhenglinTime != ''"> and JQR_SWC_ZHENGLIN_TIME = #{jqrSwcZhenglinTime}</if>
|
|
|
<!-- 下面是新增的SQL检索条件 SqlServer写法-->
|
|
|
- <if test="timeBegin != null and timeBegin != ''"> and SUBSTRING (CONVERT ( VARCHAR, create_time, 120 ), 1, 10 ) >= #{timeBegin}</if>
|
|
|
- <if test="timeEnd != null and timeEnd != ''"> and SUBSTRING (CONVERT ( VARCHAR, create_time, 120 ), 1, 10 ) <= #{timeEnd}</if>
|
|
|
+ <if test="timeBegin != null and timeBegin != ''"> and SUBSTRING (TIME, 1, 10 ) >= #{timeBegin}</if>
|
|
|
+ <if test="timeEnd != null and timeEnd != ''"> and SUBSTRING (TIME, 1, 10 ) <= #{timeEnd}</if>
|
|
|
</where>
|
|
|
- and del_flag = 0 order by id desc
|
|
|
+ order by id desc
|
|
|
</select>
|
|
|
</mapper>
|