bug修复--改方法名

pro
wj 2 years ago
parent 1f3ba38e22
commit 1496bb4bda

@ -80,7 +80,7 @@ public class ThrDeptController {
} }
thrDeptEntity.setUpdateTime(new Date()); thrDeptEntity.setUpdateTime(new Date());
thrDeptEntity.setId(IdUtil.getSnowflakeNextId()); thrDeptEntity.setId(IdUtil.getSnowflakeNextId());
boolean b = thrDeptService.insertInvWarehouse(thrDeptEntity); boolean b = thrDeptService.insertThrDept(thrDeptEntity);
if (!b) { if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK); return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
} }

@ -16,9 +16,9 @@ public interface ThrDeptDao extends BaseMapperPlus<ThrDeptDao,ThrDeptEntity,ThrD
List<ThrDeptEntity> filterThrGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest); List<ThrDeptEntity> filterThrGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest);
boolean insertThrInvWarehouse(ThrDeptEntity thrDeptEntity); boolean insertThrDept(ThrDeptEntity thrDeptEntity);
boolean insertDeptList(@Param("thrDeptEntities") List<ThrDeptEntity> thrDeptEntities); boolean insertThrDeptList(@Param("thrDeptEntities") List<ThrDeptEntity> thrDeptEntities);
boolean updateThrInvWarehouse(ThrDeptEntity thrDeptEntity); boolean updateThrInvWarehouse(ThrDeptEntity thrDeptEntity);

@ -20,9 +20,9 @@ public interface ThrDeptService extends IService<ThrDeptEntity> {
List<ThrDeptEntity> filterGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest); List<ThrDeptEntity> filterGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest);
boolean insertInvWarehouse(ThrDeptEntity thrDeptEntity); boolean insertThrDept(ThrDeptEntity thrDeptEntity);
boolean insertInvWarehouses(List<ThrDeptEntity> thrDeptEntities); boolean insertThrDeptList(List<ThrDeptEntity> thrDeptEntities);
boolean updateInvWarehouse(ThrDeptEntity thrDeptEntity); boolean updateInvWarehouse(ThrDeptEntity thrDeptEntity);

@ -78,13 +78,13 @@ public class ThrDeptServiceImpl extends ServiceImpl<ThrDeptDao, ThrDeptEntity> i
} }
@Override @Override
public boolean insertInvWarehouse(ThrDeptEntity thrDeptEntity) { public boolean insertThrDept(ThrDeptEntity thrDeptEntity) {
return thrDeptDao.insertThrInvWarehouse(thrDeptEntity); return thrDeptDao.insertThrDept(thrDeptEntity);
} }
@Override @Override
public boolean insertInvWarehouses(List<ThrDeptEntity> thrDeptEntities) { public boolean insertThrDeptList(List<ThrDeptEntity> thrDeptEntities) {
return thrDeptDao.insertDeptList(thrDeptEntities); return thrDeptDao.insertThrDeptList(thrDeptEntities);
} }
@Override @Override
@ -161,7 +161,7 @@ public class ThrDeptServiceImpl extends ServiceImpl<ThrDeptDao, ThrDeptEntity> i
} }
//插入数据 //插入数据
thrDeptDao.insertDeptList(list); thrDeptDao.insertThrDeptList(list);
thrInvWarehouseDao.insertThrInvWarehouses(warehouseList); thrInvWarehouseDao.insertThrInvWarehouses(warehouseList);
if (list.size() >= limit) { if (list.size() >= limit) {
page++; page++;

@ -79,7 +79,7 @@
</where> </where>
</select> </select>
<insert id="insertThrInvWarehouse" keyProperty="id" <insert id="insertThrDept" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrDeptEntity"> parameterType="com.glxp.api.entity.thrsys.ThrDeptEntity">
replace replace
INTO thr_dept INTO thr_dept
@ -174,7 +174,7 @@
</if> </if>
</where> </where>
</select> </select>
<insert id="insertDeptList"> <insert id="insertThrDeptList">
replace into thr_dept (pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`, replace into thr_dept (pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`,
pcode, pcode,
thirdSysFk) thirdSysFk)

Loading…
Cancel
Save