diff --git a/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml b/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml index 5a97787..75eb5a3 100644 --- a/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml +++ b/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml @@ -1,47 +1,59 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + - - - - - - - - - - + + + + + + + + + + - select ID, PLAN_ID, PLAN_DETAILS_ID, SOURCE, KNIFE_ID, CONSUME_LIFE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME from WMS_IN_PLAN_DETAIL_ENTITY + select ID, + PLAN_ID, + PLAN_DETAILS_ID, + SOURCE, + KNIFE_ID, + CONSUME_LIFE, + CREATE_BY, + CREATE_TIME, + UPDATE_BY, + UPDATE_TIME + from WMS_IN_PLAN_DETAIL_ENTITY - - - and PLAN_ID = #{planId} - and PLAN_DETAILS_ID = #{planDetailsId} - and SOURCE = #{source} - and KNIFE_ID = #{knifeId} - and CONSUME_LIFE = #{consumeLife} - and CREATE_BY = #{createBy} - and CREATE_TIME = #{createTime} - and UPDATE_BY = #{updateBy} - and UPDATE_TIME = #{updateTime} + + and PLAN_ID = #{planId} + and PLAN_DETAILS_ID = #{planDetailsId} + and SOURCE = #{source} + and KNIFE_ID = #{knifeId} + and CONSUME_LIFE = #{consumeLife} + and CREATE_BY = #{createBy} + and CREATE_TIME = #{createTime} + and UPDATE_BY = #{updateBy} + and UPDATE_TIME = #{updateTime} - + - - + + insert into WMS_IN_PLAN_DETAIL_ENTITY PLAN_ID, @@ -53,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" CREATE_TIME, UPDATE_BY, UPDATE_TIME, - + #{planId}, #{planDetailsId}, @@ -64,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{createTime}, #{updateBy}, #{updateTime}, - + @@ -84,13 +96,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from WMS_IN_PLAN_DETAIL_ENTITY where ID = #{id} + delete + from WMS_IN_PLAN_DETAIL_ENTITY + where ID = #{id} - delete from WMS_IN_PLAN_DETAIL_ENTITY where ID in + delete from WMS_IN_PLAN_DETAIL_ENTITY where ID in #{id} + + + + insert into WMS_IN_PLAN_DETAIL_ENTITY( + ID,PLAN_ID,PLAN_DETAILS_ID,SOURCE,KNIFE_ID,CONSUME_LIFE,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME) values + + ( #{item.id}, #{item.planId}, #{item.planDetailsId}, #{item.source}, #{item.knifeId}, + #{item.consumeLife},#{item.createBy}, #{item.createTime}, #{item.updateBy}, + #{item.updateTime}) + + \ No newline at end of file