修改调拨入库逻辑

master
杨万里 2 days ago
parent 593ce05aca
commit cab2395012

@ -151,6 +151,8 @@ public class BaseInventoryServiceImpl implements IBaseInventoryService
recordWarehousing.setCreateTime(DateUtils.getNowDate()); recordWarehousing.setCreateTime(DateUtils.getNowDate());
recordWarehousing.setCreateBy(baseInventory.getCreateBy()); recordWarehousing.setCreateBy(baseInventory.getCreateBy());
recordWarehousingMapper.insertRecordWarehousing(recordWarehousing); recordWarehousingMapper.insertRecordWarehousing(recordWarehousing);
//更新创建人
return AjaxResult.success("入库成功!"); return AjaxResult.success("入库成功!");
}else { }else {
//插入库存表以及基础信息表 //插入库存表以及基础信息表

@ -264,6 +264,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateBaseTyreByEpc" parameterType="BaseTyre"> <update id="updateBaseTyreByEpc" parameterType="BaseTyre">
update base_tyre update base_tyre
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="team != null and team != ''">team = #{team},</if>
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if> <if test="deptId != null and deptId != ''">dept_id = #{deptId},</if>
</trim> </trim>
where tyre_epc = #{tyreEpc} where tyre_epc = #{tyreEpc}

Loading…
Cancel
Save