bug修复

pro
wj 2 years ago
parent 8096c1933e
commit 1f3ba38e22

@ -18,7 +18,7 @@ public interface ThrDeptDao extends BaseMapperPlus<ThrDeptDao,ThrDeptEntity,ThrD
boolean insertThrInvWarehouse(ThrDeptEntity thrDeptEntity);
boolean insertInvWarehouses(@Param("thrInvWarehouseEntitys") List<ThrDeptEntity> thrDeptEntities);
boolean insertDeptList(@Param("thrDeptEntities") List<ThrDeptEntity> thrDeptEntities);
boolean updateThrInvWarehouse(ThrDeptEntity thrDeptEntity);

@ -1,6 +1,5 @@
package com.glxp.api.service.thrsys.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -85,7 +84,7 @@ public class ThrDeptServiceImpl extends ServiceImpl<ThrDeptDao, ThrDeptEntity> i
@Override
public boolean insertInvWarehouses(List<ThrDeptEntity> thrDeptEntities) {
return thrDeptDao.insertInvWarehouses(thrDeptEntities);
return thrDeptDao.insertDeptList(thrDeptEntities);
}
@Override
@ -162,7 +161,7 @@ public class ThrDeptServiceImpl extends ServiceImpl<ThrDeptDao, ThrDeptEntity> i
}
//插入数据
thrDeptDao.insertInvWarehouses(list);
thrDeptDao.insertDeptList(list);
thrInvWarehouseDao.insertThrInvWarehouses(warehouseList);
if (list.size() >= limit) {
page++;

@ -174,7 +174,7 @@
</if>
</where>
</select>
<insert id="insertInvWarehouses">
<insert id="insertDeptList">
replace into thr_dept (pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`,
pcode,
thirdSysFk)

Loading…
Cancel
Save