之前修改提交

main
杜函宇 1 year ago
parent 2638737b3f
commit 5d7bd5a6c3

@ -27,6 +27,10 @@ public class TcYqzs extends BaseEntity
@ApiModelProperty(value = "id")
private Long id;
/** 是否正序 */
@ApiModelProperty(value = "是否正序 ,1或者null2否")
private Long isOrthodox;
/** 区域id */
//,readConverterExp = "1=太仓市,2=城厢镇,3=沙溪镇,4=浏河镇,5=浮桥镇,6=璜泾镇,7=双凤镇,8=娄东街道,9=陆渡街道,10=科教新城",combo = "太仓市,城厢镇,沙溪镇,浏河镇,浮桥镇,璜泾镇,双凤镇,娄东街道,陆渡街道,科教新城"
@Excel(name = "区域id")

@ -18,7 +18,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectTcYqzsVo">
select id, area_id, date_time, create_by, create_time, update_by, update_time, remark, count1, count2 from tc_yqzs
select id, area_id, date_time, create_by, create_time, update_by, update_time, remark, count1, count2 from
tc_yqzs
</sql>
<select id="selectTcYqzsList" parameterType="TcYqzs" resultMap="TcYqzsResult">
@ -37,7 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''">
and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}
</if>
<if test="beginDateTime != null and endDateTime != null "> and date_time between #{beginDateTime} and #{endDateTime}</if>
<if test="beginDateTime != null and endDateTime != null ">and date_time between #{beginDateTime} and
#{endDateTime}
</if>
<if test="beginDateTime != null">and date_time &gt;= #{beginDateTime}</if>
<if test="endDateTime != null">and date_time &lt;= #{endDateTime}</if>
<if test="remark != null and remark != ''">and remark = #{remark}</if>
@ -45,7 +48,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="count2 != null ">and count2 = #{count2}</if>
<if test="dateTime != null ">and date_time like concat('%', #{dateTime}, '%')</if>
</where>
<if test="isOrthodox == 2 and isOrthodox != null">
order by date_time desc
</if>
<if test="isOrthodox == null">
order by date_time asc
</if>
<if test="isOrthodox == 1 and isOrthodox != null">
order by date_time asc
</if>
</select>
<select id="selectTcYqzsById" parameterType="Long" resultMap="TcYqzsResult">

Loading…
Cancel
Save