You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udi-wms-java/src/main/resources/mybatis/mapper/system/SysMsgTodoMapper.xml

31 lines
1.1 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.glxp.api.dao.system.SysMsgTodoMapper">
<select id="pageOfVo" resultType="com.glxp.api.vo.system.SysMsgTodoVo">
select *,aw.name invName,ad.name deptName
from sys_msg_todo smt
left join auth_warehouse aw on aw.code = smt.invCode
left join auth_dept ad on ad.code = smt.deptCode
<where>
<if test="msgType!=null">
and smt.msgType = #{msgType}
</if>
<if test="pushStatus!=null">
and smt.pushStatus = #{pushStatus}
</if>
<if test="dealStatus!=null">
and smt.dealStatus = #{dealStatus}
</if>
<if test="invCode!=null and invCode!=''">
and smt.invCode = #{invCode}
</if>
<if test="deptCode!=null and deptCode!=''">
and smt.deptCode = #{deptCode}
</if>
</where>
order by smt.createTime desc
</select>
</mapper>