|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.glxp.api.service.inout.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
@ -34,7 +35,7 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
IoOrderDetailBizDao ioOrderDetailBizDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IoOrderDetailBizEntity selectById(Integer id) {
|
|
|
|
|
public IoOrderDetailBizEntity selectById(Long id) {
|
|
|
|
|
return ioOrderDetailBizDao.selectById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -59,7 +60,8 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int insert(IoOrderDetailBizEntity orderDetailBizEntity) {
|
|
|
|
|
orderDetailBizEntity.setId(null);
|
|
|
|
|
if (orderDetailBizEntity.getId() == null)
|
|
|
|
|
orderDetailBizEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
return ioOrderDetailBizDao.insert(orderDetailBizEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -69,7 +71,7 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int deleteById(Integer id) {
|
|
|
|
|
public int deleteById(Long id) {
|
|
|
|
|
return ioOrderDetailBizDao.deleteById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -87,7 +89,7 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean isExit(Long relId, String bacthNo, Integer ignoreId, String orderId) {
|
|
|
|
|
public boolean isExit(Long relId, String bacthNo, Long ignoreId, String orderId) {
|
|
|
|
|
return ioOrderDetailBizDao.exists(new QueryWrapper<IoOrderDetailBizEntity>().eq("bindRlFk", relId).eq(StrUtil.isNotEmpty(bacthNo), "batchNo", bacthNo)
|
|
|
|
|
.isNull(StrUtil.isEmpty(bacthNo), "batchNo").eq("orderIdFk", orderId).ne("id", ignoreId));
|
|
|
|
|
}
|
|
|
|
|