提交 228ac98d 作者: chaining

fix: 修复墙盒修改类型判断问题

父级 ae4cfa7d
......@@ -50,7 +50,7 @@ public class WallboxApplyService {
@Autowired
private SupplierStaffDao supplierStaffDao;
private final Integer CHECK_STATUS_REJECT = 3;
private final Long CHECK_STATUS_REJECT = 3L;
/**
* 查询墙盒申请
......@@ -64,7 +64,6 @@ public class WallboxApplyService {
}
/**
* 墙盒详情(墙盒状态)
*
......@@ -120,7 +119,7 @@ public class WallboxApplyService {
WallboxApply condition = new WallboxApply();
condition.setOrderId(req.getOrderId());
List<WallboxApply> retList2 = wallboxApplyMapper.selectWallboxApplyList(condition);
if (CollectionUtils.isNotEmpty(retList2)){
if (CollectionUtils.isNotEmpty(retList2)) {
throw new ServiceException("该订单已申请,无法重复申请");
}
//补全相关信息
......@@ -160,11 +159,12 @@ public class WallboxApplyService {
}
/**
* 审核
* 审核
*
* @param req
* @return
*/
public int checkWallboxApply(WallboxApplyCheckVO req){
public int checkWallboxApply(WallboxApplyCheckVO req) {
WallboxApply cond = new WallboxApply();
cond.setOrderId(req.getOrderId());
List<WallboxApply> list = wallboxApplyMapper.selectWallboxApplyList(cond);
......@@ -208,7 +208,7 @@ public class WallboxApplyService {
allowedUpdate = false;
}
if (allowedUpdate){
if (allowedUpdate) {
WallboxApply update = new WallboxApply();
update.setId(wallboxApply.getId());
update.setCheckStatus(req.getCheckStatus());
......@@ -218,7 +218,7 @@ public class WallboxApplyService {
}
}
if (allowedUpdate){
if (allowedUpdate) {
// 批量更新操作
toUpdateList.forEach(l -> wallboxApplyMapper.updateWallboxApply(l));
}
......@@ -227,7 +227,6 @@ public class WallboxApplyService {
}
void validateApplyExists(String id) {
OrderInstall orderInstall = orderInstallDao.selectByOrderId(id);
if (ObjectUtil.isNull(orderInstall)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论