|
|
@ -5,20 +5,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<mapper namespace="com.ruoyi.system.mapper.SysProcessCategoryMapper"> |
|
|
|
|
|
|
|
<resultMap type="SysProcessCategory" id="SysProcessCategoryResult"> |
|
|
|
<result property="id" column="id" /> |
|
|
|
<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="delFlag" column="del_flag" /> |
|
|
|
<result property="processCategoryId" column="process_category_id" /> |
|
|
|
<result property="processCategoryCode" column="process_category_code" /> |
|
|
|
<result property="processCategoryName" column="process_category_name" /> |
|
|
|
<result property="processDescription" column="process_description" /> |
|
|
|
<result property="workHourOutput" column="work_hour_output" /> |
|
|
|
<result property="standardConversionCost" column="standard_conversion_cost" /> |
|
|
|
<result property="actualProcessingCost" column="actual_processing_cost" /> |
|
|
|
<result property="firstAddTime" column="first_add_time" /> |
|
|
|
<result property="updateInfoTime" column="update_info_time" /> |
|
|
|
<result property="standbyOne" column="standby_one" /> |
|
|
|
<result property="standbyTwo" column="standby_two" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSysProcessCategoryVo"> |
|
|
|
select process_category_id, process_category_code, process_description, work_hour_output, standard_conversion_cost, actual_processing_cost, first_add_time, update_info_time, standby_one, standby_two from sys_process_category |
|
|
|
select id,del_flag,create_by,create_time,update_by,update_time,remark,process_category_id, process_category_code, process_category_name, process_description, work_hour_output, standard_conversion_cost, actual_processing_cost from sys_process_category |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSysProcessCategoryList" parameterType="SysProcessCategory" resultMap="SysProcessCategoryResult"> |
|
|
@ -31,30 +35,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectSysProcessCategoryById" parameterType="Long" resultMap="SysProcessCategoryResult"> |
|
|
|
<include refid="selectSysProcessCategoryVo"/> |
|
|
|
where process_category_id = #{processCategoryId} |
|
|
|
where id = #{id} |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="insertSysProcessCategory" parameterType="SysProcessCategory" useGeneratedKeys="true" keyProperty="processCategoryId"> |
|
|
|
insert into sys_process_category |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="processCategoryId != null">process_category_id,</if> |
|
|
|
<if test="processCategoryCode != null">process_category_code,</if> |
|
|
|
<if test="processCategoryName != null">process_category_name,</if> |
|
|
|
<if test="processDescription != null">process_description,</if> |
|
|
|
<if test="workHourOutput != null">work_hour_output,</if> |
|
|
|
<if test="standardConversionCost != null">standard_conversion_cost,</if> |
|
|
|
<if test="actualProcessingCost != null">actual_processing_cost,</if> |
|
|
|
<if test="standbyOne != null">standby_one,</if> |
|
|
|
<if test="standbyTwo != null">standby_two,</if> |
|
|
|
first_add_time, |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
<if test="remark != null">remark,</if> |
|
|
|
<if test="delFlag != null">del_flag,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="processCategoryId != null">#{processCategoryId},</if> |
|
|
|
<if test="processCategoryCode != null">#{processCategoryCode},</if> |
|
|
|
<if test="processCategoryName != null">#{processCategoryName},</if> |
|
|
|
<if test="processDescription != null">#{processDescription},</if> |
|
|
|
<if test="workHourOutput != null">#{workHourOutput},</if> |
|
|
|
<if test="standardConversionCost != null">#{standardConversionCost},</if> |
|
|
|
<if test="actualProcessingCost != null">#{actualProcessingCost},</if> |
|
|
|
<if test="standbyOne != null">#{standbyOne},</if> |
|
|
|
<if test="standbyTwo != null">#{standbyTwo},</if> |
|
|
|
NOW(), |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -62,25 +76,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update sys_process_category |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="processCategoryCode != null">process_category_code = #{processCategoryCode},</if> |
|
|
|
<if test="processCategoryName != null">process_category_name = #{processCategoryName},</if> |
|
|
|
<if test="processDescription != null">process_description = #{processDescription},</if> |
|
|
|
<if test="workHourOutput != null">work_hour_output = #{workHourOutput},</if> |
|
|
|
<if test="standardConversionCost != null">standard_conversion_cost = #{standardConversionCost},</if> |
|
|
|
<if test="actualProcessingCost != null">actual_processing_cost = #{actualProcessingCost},</if> |
|
|
|
<if test="standbyOne != null">standby_one = #{standbyOne},</if> |
|
|
|
<if test="standbyTwo != null">standby_two = #{standbyTwo},</if> |
|
|
|
update_info_time = CONCAT_WS(',',NOW(),update_info_time), |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|
|
|
</trim> |
|
|
|
where process_category_id = #{processCategoryId} |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<delete id="deleteSysProcessCategoryById" parameterType="Long"> |
|
|
|
delete from sys_process_category where process_category_id = #{processCategoryId} |
|
|
|
delete from sys_process_category where id = #{id} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<delete id="deleteSysProcessCategoryByIds" parameterType="String"> |
|
|
|
delete from sys_process_category where process_category_id in |
|
|
|
<foreach item="processCategoryId" collection="array" open="(" separator="," close=")"> |
|
|
|
#{processCategoryId} |
|
|
|
delete from sys_process_category where id in |
|
|
|
<foreach item="item" collection="array" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</delete> |
|
|
|
|
|
|
|