配件管理
This commit is contained in:
parent
99f7998a2d
commit
106bcfb26e
|
|
@ -3,6 +3,24 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.sgzb.base.mapper.MaPartTypeMapper">
|
||||
<resultMap type="com.bonus.sgzb.base.domain.MaPartType" id="MaPartTypeResult">
|
||||
<result property="paId" column="pa_id" />
|
||||
<result property="paName" column="pa_name" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="num" column="num" />
|
||||
<result property="unitId" column="unit_id" />
|
||||
<result property="buyPrice" column="buy_price" />
|
||||
<result property="level" column="level" />
|
||||
<result property="warnNum" column="warn_num" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="companyId" column="company_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMaPartTypeVo">
|
||||
select pa_id, pa_name, parent_id, status, num, unit_id, buy_price, level, warn_num, del_flag, create_by, create_time, remark, company_id
|
||||
|
|
@ -46,18 +64,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
update ma_part_type set del_flag = '2' where pa_id = #{paId}
|
||||
</delete>
|
||||
|
||||
<select id="checkPartNameUnique" resultType="com.bonus.sgzb.base.domain.MaPartType">
|
||||
<select id="checkPartNameUnique" resultMap="MaPartTypeResult">
|
||||
<include refid="selectMaPartTypeVo"/>
|
||||
where pa_name = #{paName} limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectMaPartType" resultType="com.bonus.sgzb.base.domain.MaPartType">
|
||||
<select id="selectMaPartType" parameterType="com.bonus.sgzb.base.domain.MaPartType" resultMap="MaPartTypeResult">
|
||||
<include refid="selectMaPartTypeVo"/>
|
||||
<where>
|
||||
<if test="paName != null and paName != ''">
|
||||
AND pa_name like concat('%', #{paName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
where del_flag = '0'
|
||||
<if test="paName != null and paName != ''">
|
||||
AND pa_name like concat('%', #{paName}, '%')
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="hasChildByPaId" resultType="java.lang.Integer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue