22 lines
1.2 KiB
XML
22 lines
1.2 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||
|
|
<mapper namespace="com.bonus.gzgqj.business.bases.mapper.PartInputMapper" >
|
||
|
|
<!--分页查询-->
|
||
|
|
<select id="findByPage" resultType="com.bonus.gzgqj.business.bases.entity.PartInputVo">
|
||
|
|
select tpi.id,tpi.code,tpi.creator,tpi.input_day inputDay,
|
||
|
|
tpi.input_num inputNum,tpi.all_price allPrice,tpi.remark,tpi.is_flag isFlag
|
||
|
|
from t_part_input tpi
|
||
|
|
<where>
|
||
|
|
<if test="keyWord!=null and keyWord!=''">
|
||
|
|
and (tpi.code like concat('%',#{keyWord},'%') or
|
||
|
|
tpi.creator like concat('%',#{keyWord},'%') or
|
||
|
|
tpi.input_day like concat('%',#{keyWord},'%') or
|
||
|
|
tpi.remark like concat('%',#{keyWord},'%')
|
||
|
|
)
|
||
|
|
</if>
|
||
|
|
<if test="inputDay!=null and inputDay!='' and startDay!=null and endDay!=null ">
|
||
|
|
and STR_TO_DATE(tpi.input_day, '%Y-%m-%d') between STR_TO_DATE(#{startDay} ,'%Y-%m-%d') AND STR_TO_DATE(#{endDay},'%Y-%m-%d')
|
||
|
|
</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
</mapper>
|