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/basic/BasicSkProjectMapper.xml

25 lines
1.0 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.basic.BasicSkProjectMapper">
<select id="filterList" parameterType="com.glxp.api.req.basic.BasicSkProjectRequest"
resultType="com.glxp.api.res.basic.BasicSkProjectResponse">
SELECT *, cb.userName as createByName
FROM basic_sk_project
LEFT JOIN auth_user cb ON basic_sk_project.createUser = cb.id
<where>
<if test="type != '' and type != null">
AND type = #{type}
</if>
<if test="status != '' and status != null">
AND status = #{status}
</if>
<if test="name != '' and name != null">
AND name LIKE concat('%', #{name}, '%')
</if>
<if test="code != '' and code != null">
AND code LIKE concat('%', #{code}, '%')
</if>
</where>
</select>
</mapper>