bug修复

pro
wj 2 years ago
parent e3fdd85986
commit 21b81c5e40

@ -146,6 +146,7 @@ public class ThrDeptServiceImpl extends ServiceImpl<ThrDeptDao, ThrDeptEntity> i
thrDeptEntity.setAdvanceType(false); //默认是仓库
thrDeptEntity.setStatus(1);//默认启用
thrDeptEntity.setUpdateTime(new Date());
thrDeptEntity.setId(IdUtil.getSnowflake(6, 1).nextId());
list.add(thrDeptEntity);
ThrInvWarehouseEntity thrInvWarehouseEntity = new ThrInvWarehouseEntity();

@ -175,12 +175,13 @@
</where>
</select>
<insert id="insertThrDeptList">
replace into thr_dept (pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`,
replace into thr_dept (id,pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`,
pcode,
thirdSysFk)
values
<foreach collection="thrDeptEntities" index="index" item="item" separator=",">
(#{item.pid},
(#{item.id},
#{item.pid},
#{item.code},
#{item.name},
#{item.advanceType},

Loading…
Cancel
Save