|
@@ -7,45 +7,21 @@
|
|
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
|
|
<result column="type_id" jdbcType="VARCHAR" property="typeId"/>
|
|
|
<result column="level" jdbcType="SMALLINT" property="level"/>
|
|
|
- <result column="producer_id" jdbcType="VARCHAR" property="producerId"/>
|
|
|
- <result column="source_type" jdbcType="SMALLINT" property="sourceType"/>
|
|
|
- <result column="source_sb_id" jdbcType="VARCHAR" property="sourceSbId"/>
|
|
|
<result column="sb_id" jdbcType="VARCHAR" property="sbId"/>
|
|
|
- <result column="unit" jdbcType="SMALLINT" property="unit"/>
|
|
|
- <result column="guige_id" jdbcType="VARCHAR" property="guigeId"/>
|
|
|
- <result column="buy_date" jdbcType="DATE" property="buyDate"/>
|
|
|
- <result column="start_date" jdbcType="DATE" property="startDate"/>
|
|
|
- <result column="next_check_date" jdbcType="DATE" property="nextCheckDate"/>
|
|
|
- <result column="guarantee_date" jdbcType="DATE" property="guaranteeDate"/>
|
|
|
- <result column="work_year" jdbcType="DOUBLE" property="workYear"/>
|
|
|
- <result column="retirement_date" jdbcType="DATE" property="retirementDate"/>
|
|
|
- <result column="sb_image" jdbcType="VARCHAR" property="sbImage"/>
|
|
|
<result column="status" jdbcType="SMALLINT" property="status"/>
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
<result column="created_user_id" jdbcType="VARCHAR" property="createdUserId"/>
|
|
|
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId"/>
|
|
|
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
- <association column="created_user_id" javaType="string" property="createdUserName"
|
|
|
- select="com.platform.dao.mapper.upms.SysUserMapper.selectUserNameById"/>
|
|
|
- <association column="update_user_id" javaType="string" property="updateUserName"
|
|
|
- select="com.platform.dao.mapper.upms.SysUserMapper.selectUserNameById"/>
|
|
|
<association column="type_id" javaType="string" property="typeName"
|
|
|
select="com.platform.dao.mapper.part.PartTypeMapper.selectNameById"/>
|
|
|
- <association column="producer_id" javaType="string" property="producerName"
|
|
|
- select="com.platform.dao.mapper.firm.FirmProducerMapper.selectNameById"/>
|
|
|
<association column="sb_id" javaType="string" property="sbName"
|
|
|
select="com.platform.dao.mapper.sb.SbInfoMapper.selectNameById"/>
|
|
|
- <association column="guige_id" javaType="string" property="guigeName"
|
|
|
- select="com.platform.dao.mapper.sb.SbGuigeMapper.selectNameById"/>
|
|
|
- <association column="source_sb_id" javaType="string" property="sourceSbName"
|
|
|
- select="com.platform.dao.mapper.sb.SbInfoMapper.selectNameById"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, no, name, type_id, level, producer_id, source_type, source_sb_id, sb_id, unit,
|
|
|
- guige_id, buy_date, start_date, next_check_date, guarantee_date, work_year, retirement_date,
|
|
|
- sb_image, status, remark, created_user_id, update_user_id, created_time, update_time
|
|
|
+ id, no, name, type_id, level, sb_id, remark, created_time, update_time
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectPageList" parameterType="com.platform.dao.dto.part.PartInfoDTO" resultMap="BaseResultMap">
|
|
@@ -54,8 +30,10 @@
|
|
|
from t_part_info
|
|
|
<where>
|
|
|
<if test="keyword != null and keyword != ''">
|
|
|
- ( name like concat('%',#{keyword},'%') or
|
|
|
+ (
|
|
|
+ name like concat('%',#{keyword},'%') or
|
|
|
no like concat('%',#{keyword},'%')
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="sbId != null and sbId != ''">
|
|
|
and sb_id = #{sbId}
|