|
|
@ -4,9 +4,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.ruoyi.erp.mapper.ErpDevelopModifyorderMapper"> |
|
|
|
|
|
|
|
<resultMap type="ErpDevelopModifyorder" id="ErpDevelopModifyorderResult"> |
|
|
|
<resultMap type="ErpDevelopModifyorderVo" id="ErpDevelopModifyorderResult"> |
|
|
|
<result property="developOrderId" column="develop_order_id" /> |
|
|
|
<result property="developOderCode" column="develop_oder_code" /> |
|
|
|
<result property="makeNo" column="make_no"/> |
|
|
|
<result property="materialNo" column="material_no" /> |
|
|
|
<result property="purchaseStorageStatus" column="purchase_storage_status" /> |
|
|
|
<result property="qualityStatus" column="quality_status" /> |
|
|
@ -22,16 +23,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="materialDescribe" column="material_describe" /> |
|
|
|
<result property="materialProcessMode" column="material_process_mode" /> |
|
|
|
<result property="userId" column="user_id" /> |
|
|
|
<result property="userName" column="user_name" /> |
|
|
|
<result property="updateFinishTime" column="update_finish_time" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="userName" column="user_name" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
<result property="remark" column="remark" /> |
|
|
|
<result property="instanceId" column="instance_id" /> |
|
|
|
<result property="instanceType" column="instance_type" /> |
|
|
|
<result property="submitInstanceId" column="submit_instance_id" /> |
|
|
|
<result property="applyTitle" column="apply_title" /> |
|
|
|
<result property="applyTime" column="apply_time" /> |
|
|
|
<result property="applyUser" column="apply_user" /> |
|
|
|
<result property="cancelInstanceId" column="cancel_instance_id" /> |
|
|
|
<result property="restoreInstanceId" column="restore_instance_id" /> |
|
|
|
<result property="instanceTypeName" column="instance_type_name" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectErpDevelopModifyorderVo"> |
|
|
|
select develop_order_id, develop_oder_code, material_no, purchase_storage_status, quality_status, audit_status, complete_status, finsh_status, use_status, material_name, material_type, material_photo_url, material_unit, material_brand, material_describe, material_process_mode, user_id, create_by, create_time, user_name, update_by, update_time, remark from erp_develop_modifyorder |
|
|
|
select develop_order_id, develop_oder_code, make_no, material_no, purchase_storage_status, quality_status, audit_status, complete_status, finsh_status, use_status, material_name, material_type, material_photo_url, material_unit, material_brand, material_describe, material_process_mode, user_id, update_finish_time, create_by, create_time, user_name, update_by, update_time, remark, instance_id, instance_type, submit_instance_id, apply_title, apply_time, apply_user, cancel_instance_id, restore_instance_id from erp_develop_modifyorder |
|
|
|
|
|
|
|
</sql> |
|
|
|
|
|
|
@ -55,10 +66,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
where develop_order_id = #{developOrderId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="insertErpDevelopModifyorder" parameterType="ErpDevelopModifyorder" useGeneratedKeys="true" keyProperty="developOrderId"> |
|
|
|
<insert id="insertErpDevelopModifyorder" parameterType="ErpDevelopModifyorderVo" useGeneratedKeys="true" keyProperty="developOrderId"> |
|
|
|
insert into erp_develop_modifyorder |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="developOderCode != null">develop_oder_code,</if> |
|
|
|
<if test="makeNo != null">make_no,</if> |
|
|
|
<if test="materialNo != null">material_no,</if> |
|
|
|
<if test="purchaseStorageStatus != null">purchase_storage_status,</if> |
|
|
|
<if test="qualityStatus != null">quality_status,</if> |
|
|
@ -74,15 +86,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="materialDescribe != null">material_describe,</if> |
|
|
|
<if test="materialProcessMode != null">material_process_mode,</if> |
|
|
|
<if test="userId != null">user_id,</if> |
|
|
|
<if test="updateFinishTime != null">update_finish_time,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="userName != null">user_name,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
<if test="remark != null">remark,</if> |
|
|
|
<if test="instanceId != null">instance_id,</if> |
|
|
|
<if test="instanceType != null">instance_type,</if> |
|
|
|
<if test="submitInstanceId != null">submit_instance_id,</if> |
|
|
|
<if test="applyTitle != null">apply_title,</if> |
|
|
|
<if test="applyTime != null">apply_time,</if> |
|
|
|
<if test="applyUser != null">apply_user,</if> |
|
|
|
<if test="cancelInstanceId != null">cancel_instance_id,</if> |
|
|
|
<if test="restoreInstanceId != null">restore_instance_id,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="developOderCode != null">#{developOderCode},</if> |
|
|
|
<if test="makeNo != null">#{makeNo},</if> |
|
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
|
<if test="purchaseStorageStatus != null">#{purchaseStorageStatus},</if> |
|
|
|
<if test="qualityStatus != null">#{qualityStatus},</if> |
|
|
@ -98,19 +120,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="materialDescribe != null">#{materialDescribe},</if> |
|
|
|
<if test="materialProcessMode != null">#{materialProcessMode},</if> |
|
|
|
<if test="userId != null">#{userId},</if> |
|
|
|
<if test="updateFinishTime != null">#{updateFinishTime},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
<if test="userName != null">#{userName},</if> |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
|
<if test="instanceId != null">#{instanceId},</if> |
|
|
|
<if test="instanceType != null">#{instanceType},</if> |
|
|
|
<if test="submitInstanceId != null">#{submitInstanceId},</if> |
|
|
|
<if test="applyTitle != null">#{applyTitle},</if> |
|
|
|
<if test="applyTime != null">#{applyTime},</if> |
|
|
|
<if test="applyUser != null">#{applyUser},</if> |
|
|
|
<if test="cancelInstanceId != null">#{cancelInstanceId},</if> |
|
|
|
<if test="restoreInstanceId != null">#{restoreInstanceId},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="updateErpDevelopModifyorder" parameterType="ErpDevelopModifyorder"> |
|
|
|
<update id="updateErpDevelopModifyorder" parameterType="ErpDevelopModifyorderVo"> |
|
|
|
update erp_develop_modifyorder |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="developOderCode != null">develop_oder_code = #{developOderCode},</if> |
|
|
|
<if test="makeNo != null">make_no = #{makeNo},</if> |
|
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
|
<if test="purchaseStorageStatus != null">purchase_storage_status = #{purchaseStorageStatus},</if> |
|
|
|
<if test="qualityStatus != null">quality_status = #{qualityStatus},</if> |
|
|
@ -126,12 +158,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
|
|
|
<if test="materialProcessMode != null">material_process_mode = #{materialProcessMode},</if> |
|
|
|
<if test="userId != null">user_id = #{userId},</if> |
|
|
|
<if test="updateFinishTime != null">update_finish_time = #{updateFinishTime},</if> |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="userName != null">user_name = #{userName},</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="instanceId != null">instance_id = #{instanceId},</if> |
|
|
|
<if test="instanceType != null">instance_type = #{instanceType},</if> |
|
|
|
<if test="submitInstanceId != null">submit_instance_id = #{submitInstanceId},</if> |
|
|
|
<if test="applyTitle != null">apply_title = #{applyTitle},</if> |
|
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
|
<if test="applyUser != null">apply_user = #{applyUser},</if> |
|
|
|
<if test="cancelInstanceId != null">cancel_instance_id = #{cancelInstanceId},</if> |
|
|
|
<if test="restoreInstanceId != null">restore_instance_id = #{restoreInstanceId},</if> |
|
|
|
</trim> |
|
|
|
where develop_order_id = #{developOrderId} |
|
|
|
</update> |
|
|
|