|
|
|
@ -36,14 +36,14 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<IoOrderDetailBizEntity> findByOrderIdAndNameCode(String orderId, boolean chack) {
|
|
|
|
|
QueryWrapper<IoOrderDetailBizEntity> ew=new QueryWrapper<>();
|
|
|
|
|
if(StrUtil.isNotEmpty(orderId)){
|
|
|
|
|
ew.eq("orderIdFk",orderId);
|
|
|
|
|
QueryWrapper<IoOrderDetailBizEntity> ew = new QueryWrapper<>();
|
|
|
|
|
if (StrUtil.isNotEmpty(orderId)) {
|
|
|
|
|
ew.eq("orderIdFk", orderId);
|
|
|
|
|
}
|
|
|
|
|
// if(chack){
|
|
|
|
|
// ew.isNull("nameCode");
|
|
|
|
|
// }
|
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntityList=ioOrderDetailBizDao.selectList(ew);
|
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntityList = ioOrderDetailBizDao.selectList(ew);
|
|
|
|
|
return ioOrderDetailBizEntityList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -82,9 +82,17 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IoOrderDetailBizEntity findByUnique(String orderId, Long relId, String bacthNo) {
|
|
|
|
|
return ioOrderDetailBizDao.selectOne(new QueryWrapper<IoOrderDetailBizEntity>().eq("orderIdFk", orderId).eq("bindRlFk", relId).eq(StrUtil.isNotEmpty(bacthNo), "batchNo", bacthNo)
|
|
|
|
|
.isNull(StrUtil.isEmpty(bacthNo), "batchNo"));
|
|
|
|
|
public IoOrderDetailBizEntity findByUnique(String orderId, Long relId, String bacthNo, String productDate, String expireDate) {
|
|
|
|
|
return ioOrderDetailBizDao.selectOne(new QueryWrapper<IoOrderDetailBizEntity>()
|
|
|
|
|
.eq("orderIdFk", orderId).eq("bindRlFk", relId)
|
|
|
|
|
.eq(StrUtil.isNotEmpty(bacthNo), "batchNo", bacthNo)
|
|
|
|
|
.isNull(StrUtil.isEmpty(bacthNo), "batchNo")
|
|
|
|
|
.eq(StrUtil.isNotEmpty(productDate), "productDate", productDate)
|
|
|
|
|
.isNull(StrUtil.isEmpty(productDate), "productDate")
|
|
|
|
|
.eq(StrUtil.isNotEmpty(expireDate), "expireDate", expireDate)
|
|
|
|
|
.isNull(StrUtil.isEmpty(expireDate), "expireDate")
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -100,14 +108,14 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IoOrderDetailBizEntity selectByBatchNoAndBindRlFk(String batchNo, String bindRlFk) {
|
|
|
|
|
QueryWrapper<IoOrderDetailBizEntity> ew=new QueryWrapper<>();
|
|
|
|
|
QueryWrapper<IoOrderDetailBizEntity> ew = new QueryWrapper<>();
|
|
|
|
|
if (StrUtil.isNotEmpty(batchNo)) {
|
|
|
|
|
ew.eq("batchNo",batchNo);
|
|
|
|
|
ew.eq("batchNo", batchNo);
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(bindRlFk)) {
|
|
|
|
|
ew.eq("bindRlFk",bindRlFk);
|
|
|
|
|
ew.eq("bindRlFk", bindRlFk);
|
|
|
|
|
}
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity=ioOrderDetailBizDao.selectOne(ew);
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = ioOrderDetailBizDao.selectOne(ew);
|
|
|
|
|
return ioOrderDetailBizEntity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -133,7 +141,7 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean updateOrderDetailBiz(IoOrderDetailBizEntity ioOrderDetailBizEntity) {
|
|
|
|
|
return ioOrderDetailBizDao.updateById(ioOrderDetailBizEntity)>0;
|
|
|
|
|
return ioOrderDetailBizDao.updateById(ioOrderDetailBizEntity) > 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|