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

41 lines
2.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">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkProjectEntity">
<!--@mbg.generated-->
<!--@Table basic_sk_project-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="idCode" jdbcType="VARCHAR" property="idCode"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="category" jdbcType="VARCHAR" property="category"/>
<result column="ggxh" jdbcType="VARCHAR" property="ggxh"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="createUser" jdbcType="VARCHAR" property="createUser"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
<result column="type" jdbcType="INTEGER" property="type"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, idCode, code, `name`, category, ggxh, remark, createTime, `createUser`, updateTime,
updateUser
</sql>
<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="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>