|
@@ -6,14 +6,12 @@
|
|
|
<id property="wkId" column="wk_id" />
|
|
|
<result property="wkNo" column="wk_no" />
|
|
|
<result property="wkName" column="wk_name" />
|
|
|
- <result property="wkSysId" column="wk_sys_id" />
|
|
|
<result property="wkRemark" column="wk_remark" />
|
|
|
<result property="wkStaus" column="wk_staus" />
|
|
|
- <result property="wkProductCount" column="wk_product_count"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectWorkVo">
|
|
|
- select wk_id, wk_no, wk_name, wk_sys_id, wk_remark, wk_staus, wk_product_count
|
|
|
+ select wk_id, wk_no, wk_name, wk_remark, wk_staus
|
|
|
from work
|
|
|
</sql>
|
|
|
|
|
@@ -26,9 +24,6 @@
|
|
|
<if test="wkName != null and wkName != ''">
|
|
|
AND wk_name like concat('%', #{wkName}, '%')
|
|
|
</if>
|
|
|
- <if test="wkSysId != null">
|
|
|
- AND wk_sys_id = #{wkSysId}
|
|
|
- </if>
|
|
|
<if test="wkStaus != null">
|
|
|
AND wk_staus = #{wkStaus}
|
|
|
</if>
|
|
@@ -42,9 +37,9 @@
|
|
|
|
|
|
<insert id="insertWork" parameterType="Work" useGeneratedKeys="true" keyProperty="wkId">
|
|
|
insert into work (
|
|
|
- wk_no, wk_name, wk_sys_id, wk_remark, wk_staus, wk_product_count
|
|
|
+ wk_no, wk_name, wk_remark, wk_staus
|
|
|
) values (
|
|
|
- #{wkNo}, #{wkName}, #{wkSysId}, #{wkRemark}, #{wkStaus}, #{wkProductCount}
|
|
|
+ #{wkNo}, #{wkName}, #{wkSysId}, #{wkRemark}, #{wkStaus}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -53,7 +48,6 @@
|
|
|
<set>
|
|
|
<if test="wkNo != null">wk_no = #{wkNo},</if>
|
|
|
<if test="wkName != null">wk_name = #{wkName},</if>
|
|
|
- <if test="wkSysId != null">wk_sys_id = #{wkSysId},</if>
|
|
|
<if test="wkRemark != null">wk_remark = #{wkRemark},</if>
|
|
|
<if test="wkStaus != null">wk_staus = #{wkStaus},</if>
|
|
|
</set>
|