|
|
|
@ -529,66 +529,66 @@
|
|
|
|
|
VFREE9 = values(VFREE9),
|
|
|
|
|
VPRODUCEBATCH = values(VPRODUCEBATCH)</insert>
|
|
|
|
|
<!--通过主键修改方法-->
|
|
|
|
|
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.IaPeriodaccountEntity" >
|
|
|
|
|
update IA_PERIODACCOUNT set
|
|
|
|
|
<trim suffix="" suffixOverrides=",">
|
|
|
|
|
<if test="caccountmonth != null and caccountmonth != ''"> CACCOUNTMONTH = #{caccountmonth},</if>
|
|
|
|
|
<if test="caccountyear != null and caccountyear != ''"> CACCOUNTYEAR = #{caccountyear},</if>
|
|
|
|
|
<if test="cagentid != null and cagentid != ''"> CAGENTID = #{cagentid},</if>
|
|
|
|
|
<if test="castunitid != null and castunitid != ''"> CASTUNITID = #{castunitid},</if>
|
|
|
|
|
<if test="ccustomvendorid != null and ccustomvendorid != ''"> CCUSTOMVENDORID = #{ccustomvendorid},</if>
|
|
|
|
|
<if test="cdeptid != null and cdeptid != ''"> CDEPTID = #{cdeptid},</if>
|
|
|
|
|
<if test="cemployeeid != null and cemployeeid != ''"> CEMPLOYEEID = #{cemployeeid},</if>
|
|
|
|
|
<if test="cinventoryid != null and cinventoryid != ''"> CINVENTORYID = #{cinventoryid},</if>
|
|
|
|
|
<if test="coperatorid != null and coperatorid != ''"> COPERATORID = #{coperatorid},</if>
|
|
|
|
|
<if test="cprojectid != null and cprojectid != ''"> CPROJECTID = #{cprojectid},</if>
|
|
|
|
|
<if test="cprojectphase != null and cprojectphase != ''"> CPROJECTPHASE = #{cprojectphase},</if>
|
|
|
|
|
<if test="crdcenterid != null and crdcenterid != ''"> CRDCENTERID = #{crdcenterid},</if>
|
|
|
|
|
<if test="cstockrdcenterid != null and cstockrdcenterid != ''"> CSTOCKRDCENTERID = #{cstockrdcenterid},</if>
|
|
|
|
|
<if test="cvendorid != null and cvendorid != ''"> CVENDORID = #{cvendorid},</if>
|
|
|
|
|
<if test="cwarehouseid != null and cwarehouseid != ''"> CWAREHOUSEID = #{cwarehouseid},</if>
|
|
|
|
|
<if test="cwarehousemanagerid != null and cwarehousemanagerid != ''"> CWAREHOUSEMANAGERID = #{cwarehousemanagerid},</if>
|
|
|
|
|
<if test="cwp != null and cwp != ''"> CWP = #{cwp},</if>
|
|
|
|
|
<if test="dr != null and dr != ''"> DR = #{dr},</if>
|
|
|
|
|
<if test="fpricemodeflag != null and fpricemodeflag != ''"> FPRICEMODEFLAG = #{fpricemodeflag},</if>
|
|
|
|
|
<if test="nabassistnum != null and nabassistnum != ''"> NABASSISTNUM = #{nabassistnum},</if>
|
|
|
|
|
<if test="nabmny != null and nabmny != ''"> NABMNY = #{nabmny},</if>
|
|
|
|
|
<if test="nabnum != null and nabnum != ''"> NABNUM = #{nabnum},</if>
|
|
|
|
|
<if test="nabplanedmny != null and nabplanedmny != ''"> NABPLANEDMNY = #{nabplanedmny},</if>
|
|
|
|
|
<if test="nabvarymny != null and nabvarymny != ''"> NABVARYMNY = #{nabvarymny},</if>
|
|
|
|
|
<if test="ndrawsummny != null and ndrawsummny != ''"> NDRAWSUMMNY = #{ndrawsummny},</if>
|
|
|
|
|
<if test="ninassistnum != null and ninassistnum != ''"> NINASSISTNUM = #{ninassistnum},</if>
|
|
|
|
|
<if test="ninmny != null and ninmny != ''"> NINMNY = #{ninmny},</if>
|
|
|
|
|
<if test="ninnum != null and ninnum != ''"> NINNUM = #{ninnum},</if>
|
|
|
|
|
<if test="ninplanedmny != null and ninplanedmny != ''"> NINPLANEDMNY = #{ninplanedmny},</if>
|
|
|
|
|
<if test="ninvarymny != null and ninvarymny != ''"> NINVARYMNY = #{ninvarymny},</if>
|
|
|
|
|
<if test="noutassistnum != null and noutassistnum != ''"> NOUTASSISTNUM = #{noutassistnum},</if>
|
|
|
|
|
<if test="noutmny != null and noutmny != ''"> NOUTMNY = #{noutmny},</if>
|
|
|
|
|
<if test="noutnum != null and noutnum != ''"> NOUTNUM = #{noutnum},</if>
|
|
|
|
|
<if test="noutplanedmny != null and noutplanedmny != ''"> NOUTPLANEDMNY = #{noutplanedmny},</if>
|
|
|
|
|
<if test="noutvarymny != null and noutvarymny != ''"> NOUTVARYMNY = #{noutvarymny},</if>
|
|
|
|
|
<if test="pkCorp != null and pkCorp != ''"> PK_CORP = #{pkCorp},</if>
|
|
|
|
|
<if test="ts != null and ts != ''"> TS = #{ts},</if>
|
|
|
|
|
<if test="vbatch != null and vbatch != ''"> VBATCH = #{vbatch},</if>
|
|
|
|
|
<if test="vfree1 != null and vfree1 != ''"> VFREE1 = #{vfree1},</if>
|
|
|
|
|
<if test="vfree10 != null and vfree10 != ''"> VFREE10 = #{vfree10},</if>
|
|
|
|
|
<if test="vfree2 != null and vfree2 != ''"> VFREE2 = #{vfree2},</if>
|
|
|
|
|
<if test="vfree3 != null and vfree3 != ''"> VFREE3 = #{vfree3},</if>
|
|
|
|
|
<if test="vfree4 != null and vfree4 != ''"> VFREE4 = #{vfree4},</if>
|
|
|
|
|
<if test="vfree5 != null and vfree5 != ''"> VFREE5 = #{vfree5},</if>
|
|
|
|
|
<if test="vfree6 != null and vfree6 != ''"> VFREE6 = #{vfree6},</if>
|
|
|
|
|
<if test="vfree7 != null and vfree7 != ''"> VFREE7 = #{vfree7},</if>
|
|
|
|
|
<if test="vfree8 != null and vfree8 != ''"> VFREE8 = #{vfree8},</if>
|
|
|
|
|
<if test="vfree9 != null and vfree9 != ''"> VFREE9 = #{vfree9},</if>
|
|
|
|
|
<if test="vproducebatch != null and vproducebatch != ''"> VPRODUCEBATCH = #{vproducebatch},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where = #{}
|
|
|
|
|
</update>
|
|
|
|
|
<!--<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.IaPeriodaccountEntity" >-->
|
|
|
|
|
<!--update IA_PERIODACCOUNT set-->
|
|
|
|
|
<!--<trim suffix="" suffixOverrides=",">-->
|
|
|
|
|
<!-- <if test="caccountmonth != null and caccountmonth != ''"> CACCOUNTMONTH = #{caccountmonth},</if>-->
|
|
|
|
|
<!-- <if test="caccountyear != null and caccountyear != ''"> CACCOUNTYEAR = #{caccountyear},</if>-->
|
|
|
|
|
<!-- <if test="cagentid != null and cagentid != ''"> CAGENTID = #{cagentid},</if>-->
|
|
|
|
|
<!-- <if test="castunitid != null and castunitid != ''"> CASTUNITID = #{castunitid},</if>-->
|
|
|
|
|
<!-- <if test="ccustomvendorid != null and ccustomvendorid != ''"> CCUSTOMVENDORID = #{ccustomvendorid},</if>-->
|
|
|
|
|
<!-- <if test="cdeptid != null and cdeptid != ''"> CDEPTID = #{cdeptid},</if>-->
|
|
|
|
|
<!-- <if test="cemployeeid != null and cemployeeid != ''"> CEMPLOYEEID = #{cemployeeid},</if>-->
|
|
|
|
|
<!-- <if test="cinventoryid != null and cinventoryid != ''"> CINVENTORYID = #{cinventoryid},</if>-->
|
|
|
|
|
<!-- <if test="coperatorid != null and coperatorid != ''"> COPERATORID = #{coperatorid},</if>-->
|
|
|
|
|
<!-- <if test="cprojectid != null and cprojectid != ''"> CPROJECTID = #{cprojectid},</if>-->
|
|
|
|
|
<!-- <if test="cprojectphase != null and cprojectphase != ''"> CPROJECTPHASE = #{cprojectphase},</if>-->
|
|
|
|
|
<!-- <if test="crdcenterid != null and crdcenterid != ''"> CRDCENTERID = #{crdcenterid},</if>-->
|
|
|
|
|
<!-- <if test="cstockrdcenterid != null and cstockrdcenterid != ''"> CSTOCKRDCENTERID = #{cstockrdcenterid},</if>-->
|
|
|
|
|
<!-- <if test="cvendorid != null and cvendorid != ''"> CVENDORID = #{cvendorid},</if>-->
|
|
|
|
|
<!-- <if test="cwarehouseid != null and cwarehouseid != ''"> CWAREHOUSEID = #{cwarehouseid},</if>-->
|
|
|
|
|
<!-- <if test="cwarehousemanagerid != null and cwarehousemanagerid != ''"> CWAREHOUSEMANAGERID = #{cwarehousemanagerid},</if>-->
|
|
|
|
|
<!-- <if test="cwp != null and cwp != ''"> CWP = #{cwp},</if>-->
|
|
|
|
|
<!-- <if test="dr != null and dr != ''"> DR = #{dr},</if>-->
|
|
|
|
|
<!-- <if test="fpricemodeflag != null and fpricemodeflag != ''"> FPRICEMODEFLAG = #{fpricemodeflag},</if>-->
|
|
|
|
|
<!-- <if test="nabassistnum != null and nabassistnum != ''"> NABASSISTNUM = #{nabassistnum},</if>-->
|
|
|
|
|
<!-- <if test="nabmny != null and nabmny != ''"> NABMNY = #{nabmny},</if>-->
|
|
|
|
|
<!-- <if test="nabnum != null and nabnum != ''"> NABNUM = #{nabnum},</if>-->
|
|
|
|
|
<!-- <if test="nabplanedmny != null and nabplanedmny != ''"> NABPLANEDMNY = #{nabplanedmny},</if>-->
|
|
|
|
|
<!-- <if test="nabvarymny != null and nabvarymny != ''"> NABVARYMNY = #{nabvarymny},</if>-->
|
|
|
|
|
<!-- <if test="ndrawsummny != null and ndrawsummny != ''"> NDRAWSUMMNY = #{ndrawsummny},</if>-->
|
|
|
|
|
<!-- <if test="ninassistnum != null and ninassistnum != ''"> NINASSISTNUM = #{ninassistnum},</if>-->
|
|
|
|
|
<!-- <if test="ninmny != null and ninmny != ''"> NINMNY = #{ninmny},</if>-->
|
|
|
|
|
<!-- <if test="ninnum != null and ninnum != ''"> NINNUM = #{ninnum},</if>-->
|
|
|
|
|
<!-- <if test="ninplanedmny != null and ninplanedmny != ''"> NINPLANEDMNY = #{ninplanedmny},</if>-->
|
|
|
|
|
<!-- <if test="ninvarymny != null and ninvarymny != ''"> NINVARYMNY = #{ninvarymny},</if>-->
|
|
|
|
|
<!-- <if test="noutassistnum != null and noutassistnum != ''"> NOUTASSISTNUM = #{noutassistnum},</if>-->
|
|
|
|
|
<!-- <if test="noutmny != null and noutmny != ''"> NOUTMNY = #{noutmny},</if>-->
|
|
|
|
|
<!-- <if test="noutnum != null and noutnum != ''"> NOUTNUM = #{noutnum},</if>-->
|
|
|
|
|
<!-- <if test="noutplanedmny != null and noutplanedmny != ''"> NOUTPLANEDMNY = #{noutplanedmny},</if>-->
|
|
|
|
|
<!-- <if test="noutvarymny != null and noutvarymny != ''"> NOUTVARYMNY = #{noutvarymny},</if>-->
|
|
|
|
|
<!-- <if test="pkCorp != null and pkCorp != ''"> PK_CORP = #{pkCorp},</if>-->
|
|
|
|
|
<!-- <if test="ts != null and ts != ''"> TS = #{ts},</if>-->
|
|
|
|
|
<!-- <if test="vbatch != null and vbatch != ''"> VBATCH = #{vbatch},</if>-->
|
|
|
|
|
<!-- <if test="vfree1 != null and vfree1 != ''"> VFREE1 = #{vfree1},</if>-->
|
|
|
|
|
<!-- <if test="vfree10 != null and vfree10 != ''"> VFREE10 = #{vfree10},</if>-->
|
|
|
|
|
<!-- <if test="vfree2 != null and vfree2 != ''"> VFREE2 = #{vfree2},</if>-->
|
|
|
|
|
<!-- <if test="vfree3 != null and vfree3 != ''"> VFREE3 = #{vfree3},</if>-->
|
|
|
|
|
<!-- <if test="vfree4 != null and vfree4 != ''"> VFREE4 = #{vfree4},</if>-->
|
|
|
|
|
<!-- <if test="vfree5 != null and vfree5 != ''"> VFREE5 = #{vfree5},</if>-->
|
|
|
|
|
<!-- <if test="vfree6 != null and vfree6 != ''"> VFREE6 = #{vfree6},</if>-->
|
|
|
|
|
<!-- <if test="vfree7 != null and vfree7 != ''"> VFREE7 = #{vfree7},</if>-->
|
|
|
|
|
<!-- <if test="vfree8 != null and vfree8 != ''"> VFREE8 = #{vfree8},</if>-->
|
|
|
|
|
<!-- <if test="vfree9 != null and vfree9 != ''"> VFREE9 = #{vfree9},</if>-->
|
|
|
|
|
<!-- <if test="vproducebatch != null and vproducebatch != ''"> VPRODUCEBATCH = #{vproducebatch},</if>-->
|
|
|
|
|
<!--</trim>-->
|
|
|
|
|
<!--where = #{}-->
|
|
|
|
|
<!--</update>-->
|
|
|
|
|
<!-- 逻辑删除 -->
|
|
|
|
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.IaPeriodaccountEntity" >
|
|
|
|
|
update IA_PERIODACCOUNT set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
|
|
|
where = #{}
|
|
|
|
|
</update>
|
|
|
|
|
<!--<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.IaPeriodaccountEntity" >-->
|
|
|
|
|
<!--update IA_PERIODACCOUNT set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}-->
|
|
|
|
|
<!--where = #{}-->
|
|
|
|
|
<!--</update>-->
|
|
|
|
|
<!-- 多条件逻辑删除 -->
|
|
|
|
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.IaPeriodaccountEntity" >
|
|
|
|
|
update IA_PERIODACCOUNT set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
|
|
@ -646,9 +646,9 @@ update IA_PERIODACCOUNT set sts= 'N' ,modify_time = #{modify_time},modify_user_
|
|
|
|
|
</trim>
|
|
|
|
|
</update>
|
|
|
|
|
<!--通过主键删除-->
|
|
|
|
|
<delete id="entity_delete">
|
|
|
|
|
delete from IA_PERIODACCOUNT where = #{}
|
|
|
|
|
</delete>
|
|
|
|
|
<!--<delete id="entity_delete">-->
|
|
|
|
|
<!-- delete from IA_PERIODACCOUNT where = #{}-->
|
|
|
|
|
<!--</delete>-->
|
|
|
|
|
|
|
|
|
|
<!--查询指定存货的结存价(成本价)-->
|
|
|
|
|
<select id="queryBalancePrice" parameterType="com.hzya.frame.plugin.lets.entity.IaPeriodaccountEntity" resultMap="get-IaPeriodaccountEntity-result">
|
|
|
|
|