|
@@ -5,21 +5,21 @@
|
|
<resultMap type="DcSpec" id="DcSpecResult">
|
|
<resultMap type="DcSpec" id="DcSpecResult">
|
|
<result property="ps_id" column="ps_id" />
|
|
<result property="ps_id" column="ps_id" />
|
|
<result property="ps_p_id" column="ps_p_id" />
|
|
<result property="ps_p_id" column="ps_p_id" />
|
|
- <result property="ps_no" column="pa_no" />
|
|
|
|
|
|
+ <result property="ps_no" column="ps_no" />
|
|
<result property="ps_name" column="ps_name" />
|
|
<result property="ps_name" column="ps_name" />
|
|
<result property="ps_status" column="ps_status" />
|
|
<result property="ps_status" column="ps_status" />
|
|
<result property="ps_dck_id" column="ps_dck_id" />
|
|
<result property="ps_dck_id" column="ps_dck_id" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDcSpecVo">
|
|
<sql id="selectDcSpecVo">
|
|
- select ps_id, ps_p_id, pa_no, ps_name, ps_dck_id from dc_spec
|
|
|
|
|
|
+ select ps_id, ps_p_id, ps_no, ps_name, ps_dck_id from dc_spec
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectDcSpecList" parameterType="DcSpec" resultMap="DcSpecResult">
|
|
<select id="selectDcSpecList" parameterType="DcSpec" resultMap="DcSpecResult">
|
|
<include refid="selectDcSpecVo"/>
|
|
<include refid="selectDcSpecVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="ps_p_id != null and ps_p_id != ''"> and ps_p_id = #{ps_p_id}</if>
|
|
<if test="ps_p_id != null and ps_p_id != ''"> and ps_p_id = #{ps_p_id}</if>
|
|
- <if test="pa_no != null and pa_no != ''"> and pa_no = #{pa_no}</if>
|
|
|
|
|
|
+ <if test="ps_no != null and ps_no != ''"> and ps_no = #{pa_no}</if>
|
|
<if test="ps_name != null and ps_name != ''"> and ps_name like concat('%', #{ps_name}, '%')</if>
|
|
<if test="ps_name != null and ps_name != ''"> and ps_name like concat('%', #{ps_name}, '%')</if>
|
|
<if test="ps_dck_id != null "> and ps_dck_id = #{ps_dck_id}</if>
|
|
<if test="ps_dck_id != null "> and ps_dck_id = #{ps_dck_id}</if>
|
|
</where>
|
|
</where>
|
|
@@ -32,13 +32,13 @@
|
|
insert into dc_spec
|
|
insert into dc_spec
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="ps_p_id != null and ps_p_id != ''">ps_p_id,</if>
|
|
<if test="ps_p_id != null and ps_p_id != ''">ps_p_id,</if>
|
|
- <if test="pa_no != null and pa_no != ''">pa_no,</if>
|
|
|
|
|
|
+ <if test="ps_no != null and ps_no != ''">ps_no,</if>
|
|
<if test="ps_name != null and ps_name != ''">ps_name,</if>
|
|
<if test="ps_name != null and ps_name != ''">ps_name,</if>
|
|
<if test="ps_dck_id != null">ps_dck_id,</if>
|
|
<if test="ps_dck_id != null">ps_dck_id,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="ps_p_id != null and ps_p_id != ''">#{ps_p_id},</if>
|
|
<if test="ps_p_id != null and ps_p_id != ''">#{ps_p_id},</if>
|
|
- <if test="pa_no != null and pa_no != ''">#{pa_no},</if>
|
|
|
|
|
|
+ <if test="ps_no != null and ps_no != ''">#{ps_no},</if>
|
|
<if test="ps_name != null and ps_name != ''">#{ps_name},</if>
|
|
<if test="ps_name != null and ps_name != ''">#{ps_name},</if>
|
|
<if test="ps_dck_id != null">#{ps_dck_id},</if>
|
|
<if test="ps_dck_id != null">#{ps_dck_id},</if>
|
|
</trim>
|
|
</trim>
|
|
@@ -48,7 +48,7 @@
|
|
update dc_spec
|
|
update dc_spec
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="ps_p_id != null">ps_p_id = #{ps_p_id},</if>
|
|
<if test="ps_p_id != null">ps_p_id = #{ps_p_id},</if>
|
|
- <if test="pa_no != null">pa_no = #{pa_no},</if>
|
|
|
|
|
|
+ <if test="ps_no != null">ps_no = #{ps_no},</if>
|
|
<if test="ps_name != null">ps_name = #{ps_name},</if>
|
|
<if test="ps_name != null">ps_name = #{ps_name},</if>
|
|
<if test="ps_dck_id != null">ps_dck_id = #{ps_dck_id},</if>
|
|
<if test="ps_dck_id != null">ps_dck_id = #{ps_dck_id},</if>
|
|
</trim>
|
|
</trim>
|