|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.zhongzheng.common.core.domain.entity.TopSysRole;
|
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.type.EncryptHandler;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
@@ -28,17 +29,19 @@ import com.zhongzheng.modules.top.settle.domian.TopInstSettleRelaiton;
|
|
|
import com.zhongzheng.modules.top.settle.mapper.TopInstSettleMapper;
|
|
|
import com.zhongzheng.modules.top.settle.service.ITopInstSettleRelationService;
|
|
|
import com.zhongzheng.modules.top.settle.service.ITopInstSettleService;
|
|
|
-import com.zhongzheng.modules.top.settle.vo.SettleOrderImportVo;
|
|
|
-import com.zhongzheng.modules.top.settle.vo.SettleVo;
|
|
|
-import com.zhongzheng.modules.top.settle.vo.TopOrderInfoVo;
|
|
|
-import com.zhongzheng.modules.top.settle.vo.TopOrderStudyInfoVo;
|
|
|
+import com.zhongzheng.modules.top.settle.vo.*;
|
|
|
+import com.zhongzheng.modules.top.system.domain.TopInstCategory;
|
|
|
+import com.zhongzheng.modules.top.system.domain.TopInstitution;
|
|
|
+import com.zhongzheng.modules.top.system.service.ITopInstCategoryService;
|
|
|
+import com.zhongzheng.modules.top.system.service.ITopInstitutionService;
|
|
|
import com.zhongzheng.modules.top.user.domain.TopSysUserRole;
|
|
|
+import com.zhongzheng.modules.top.user.service.ITopSysRoleService;
|
|
|
import com.zhongzheng.modules.top.user.service.ITopSysUserRoleService;
|
|
|
-import com.zhongzheng.modules.top.user.service.ITopSysUserService;
|
|
|
import com.zhongzheng.modules.user.domain.User;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
@@ -84,6 +87,12 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
private ITopOldOrderCheckLogService topOldOrderCheckLogService;
|
|
|
@Autowired
|
|
|
private ITopSysUserRoleService topSysUserRoleService;
|
|
|
+ @Autowired
|
|
|
+ private ITopSysRoleService topSysRoleService;
|
|
|
+ @Autowired
|
|
|
+ private ITopInstitutionService topInstitutionService;
|
|
|
+ @Autowired
|
|
|
+ private ITopInstCategoryService topInstCategoryService;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -329,6 +338,7 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public boolean numSettleOrderSave(NumSettleBo bo) {
|
|
|
//结算信息
|
|
|
TopInstSettle entity = BeanUtil.toBean(bo, TopInstSettle.class);
|
|
@@ -385,7 +395,6 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
if (userRoles.stream().anyMatch(x -> x.getRoleId().equals(orderCheck.getCheckRole())) && orderCheck.getCheckType() == 7){
|
|
|
//创建人包含审核角色(跳过审核)
|
|
|
checkLog.setCheckStatus(1);
|
|
|
- checkLog.setCheckReason("系统自动审核");
|
|
|
checkLog.setCheckTime(DateUtils.getNowTime());
|
|
|
checkLog.setCheckUsername(loginName);
|
|
|
}else {
|
|
@@ -400,21 +409,23 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
checkLog.setCheckSign(1);
|
|
|
topOldOrderCheckLogService.updateById(checkLog);
|
|
|
//订单审核状态
|
|
|
- Integer checkStatus = 2;//待审核
|
|
|
+ Integer checkStatus = 1;//待审核
|
|
|
for (TopOldOrderCheckLog item : checkLogList) {
|
|
|
if (item.getId().equals(checkLog.getId()) && item.getType() == 7 && item.getCheckSort() > 1){
|
|
|
- checkStatus = 3;//审核中
|
|
|
+ checkStatus = 2;//审核中
|
|
|
}
|
|
|
if (item.getId().equals(checkLog.getId()) && item.getType() == 8 ){
|
|
|
- checkStatus = 5;//待支付
|
|
|
+ checkStatus = 4;//待支付
|
|
|
}
|
|
|
}
|
|
|
update(new LambdaUpdateWrapper<TopInstSettle>()
|
|
|
.set(TopInstSettle::getCheckStatus,checkStatus)
|
|
|
+ .set(TopInstSettle::getStatus,1)
|
|
|
.eq(TopInstSettle::getSettleSn,settleSn));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public boolean timeSettleOrderSave(TimeSettleBo bo) {
|
|
|
//结算信息
|
|
|
TopInstSettle entity = BeanUtil.toBean(bo, TopInstSettle.class);
|
|
@@ -422,6 +433,7 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
entity.setStatus(bo.getStatus());
|
|
|
entity.setCreateTime(DateUtils.getNowTime());
|
|
|
entity.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ entity.setCheckStatus(1);
|
|
|
save(entity);
|
|
|
if (bo.getStatus() == 1){
|
|
|
//提交审核
|
|
@@ -432,8 +444,283 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
|
|
|
@Override
|
|
|
public List<SettleVo> getSettleList(SettleQueryBo bo) {
|
|
|
+ if (ObjectUtil.isNotNull(bo.getCheckStatus())
|
|
|
+ && (bo.getCheckStatus() == 2 || bo.getCheckStatus() == 7) && !bo.getLoginName().equals("admin")){
|
|
|
+ List<TopSysUserRole> roleList = topSysUserRoleService.list(new LambdaQueryWrapper<TopSysUserRole>().eq(TopSysUserRole::getUserId, bo.getLoginId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(roleList)){
|
|
|
+ bo.setRoleIds(roleList.stream().map(TopSysUserRole::getRoleId).collect(Collectors.toList()));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ List<SettleVo> settleVos = baseMapper.getSettleList(bo);
|
|
|
+ if (CollectionUtils.isEmpty(settleVos)){
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ //审核角色和审核时间
|
|
|
+ settleVos.forEach(item -> {
|
|
|
+ TopOldOrderCheckLog checkLog = topOldOrderCheckLogService
|
|
|
+ .getOne(new LambdaQueryWrapper<TopOldOrderCheckLog>()
|
|
|
+ .eq(TopOldOrderCheckLog::getOrderSn, item.getSettleSn())
|
|
|
+ .eq(TopOldOrderCheckLog::getCheckSign, 1)
|
|
|
+ .eq(TopOldOrderCheckLog::getCheckFrom, 4)
|
|
|
+ .eq(TopOldOrderCheckLog::getStatus, 1));
|
|
|
+ if (ObjectUtils.isNotNull(checkLog)){
|
|
|
+ TopSysRole role = topSysRoleService.getById(checkLog.getRoleId());
|
|
|
+ item.setCheckRole(role.getRoleName());
|
|
|
+ if (ObjectUtils.isNotNull(checkLog.getCheckTime())){
|
|
|
+ item.setCheckTime(checkLog.getCheckTime());
|
|
|
+ }else if (checkLog.getCheckSort() > 1){
|
|
|
+ TopOldOrderCheckLog checkLogTwo = topOldOrderCheckLogService
|
|
|
+ .getOne(new LambdaQueryWrapper<TopOldOrderCheckLog>()
|
|
|
+ .eq(TopOldOrderCheckLog::getOrderSn, item.getSettleSn())
|
|
|
+ .eq(TopOldOrderCheckLog::getCheckSort, checkLog.getCheckSort() -1)
|
|
|
+ .eq(TopOldOrderCheckLog::getCheckFrom, 4)
|
|
|
+ .eq(TopOldOrderCheckLog::getStatus, 1));
|
|
|
+ if (ObjectUtil.isNotNull(checkLogTwo)){
|
|
|
+ item.setCheckTime(checkLogTwo.getCheckTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return settleVos;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public TimeSettleDetailVo getTimeSettleDetail(Long settleId) {
|
|
|
+ TopInstSettle instSettle = getById(settleId);
|
|
|
+ if (ObjectUtil.isNull(instSettle)){
|
|
|
+ throw new CustomException("数据不存在!");
|
|
|
+ }
|
|
|
+ TimeSettleDetailVo detailVo = BeanUtil.toBean(instSettle, TimeSettleDetailVo.class);
|
|
|
+ //供应商信息
|
|
|
+ TopInstitution institution = topInstitutionService.getById(detailVo.getInstId());
|
|
|
+ detailVo.setInstName(institution.getInstName());
|
|
|
+ detailVo.setBankAccount(institution.getBankAccount());
|
|
|
+ detailVo.setBankName(institution.getBankName());
|
|
|
+ detailVo.setBank(institution.getBank());
|
|
|
+
|
|
|
+ TopInstCategory category = topInstCategoryService.getById(detailVo.getCostCatId());
|
|
|
+ detailVo.setCostCatName(category.getCategoryName());
|
|
|
+
|
|
|
+ //业务层次
|
|
|
+ TopCourseEducationType educationType = topCourseEducationTypeService.getById(detailVo.getEducationTypeId());
|
|
|
+ TopCourseProjectType projectType = topCourseProjectTypeService.getById(detailVo.getProjectId());
|
|
|
+ TopCourseBusiness business = topCourseBusinessService.getById(detailVo.getBusinessId());
|
|
|
+ detailVo.setEducationName(educationType.getEducationName());
|
|
|
+ detailVo.setBusinessName(business.getBusinessName()+projectType.getProjectName());
|
|
|
+
|
|
|
+ //审核意见
|
|
|
+ TopOldOrderCheckLog checkLog = topOldOrderCheckLogService
|
|
|
+ .getOne(new LambdaQueryWrapper<TopOldOrderCheckLog>()
|
|
|
+ .eq(TopOldOrderCheckLog::getOrderSn, detailVo.getSettleSn())
|
|
|
+ .isNotNull(TopOldOrderCheckLog::getCheckReason)
|
|
|
+ .orderByDesc(TopOldOrderCheckLog::getCheckSort)
|
|
|
+ .last("limit 1"));
|
|
|
+ if (ObjectUtils.isNotNull(checkLog)){
|
|
|
+ detailVo.setCheckReason(checkLog.getCheckReason());
|
|
|
+ }
|
|
|
+ return detailVo;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public NumSettleDetailVo getNumSettleDetail(Long settleId) {
|
|
|
+ TopInstSettle instSettle = getById(settleId);
|
|
|
+ if (ObjectUtil.isNull(instSettle)){
|
|
|
+ throw new CustomException("数据不存在!");
|
|
|
+ }
|
|
|
+ NumSettleDetailVo detailVo = BeanUtil.toBean(instSettle, NumSettleDetailVo.class);
|
|
|
+ //供应商信息
|
|
|
+ TopInstitution institution = topInstitutionService.getById(detailVo.getInstId());
|
|
|
+ detailVo.setInstName(institution.getInstName());
|
|
|
+ detailVo.setBankAccount(institution.getBankAccount());
|
|
|
+ detailVo.setBankName(institution.getBankName());
|
|
|
+ detailVo.setBank(institution.getBank());
|
|
|
+
|
|
|
+ TopInstCategory category = topInstCategoryService.getById(detailVo.getCostCatId());
|
|
|
+ detailVo.setCostCatName(category.getCategoryName());
|
|
|
+
|
|
|
+ //业务层次
|
|
|
+ TopCourseEducationType educationType = topCourseEducationTypeService.getById(detailVo.getEducationTypeId());
|
|
|
+ TopCourseProjectType projectType = topCourseProjectTypeService.getById(detailVo.getProjectId());
|
|
|
+ TopCourseBusiness business = topCourseBusinessService.getById(detailVo.getBusinessId());
|
|
|
+ detailVo.setEducationName(educationType.getEducationName());
|
|
|
+ detailVo.setBusinessName(business.getBusinessName()+projectType.getProjectName());
|
|
|
|
|
|
- return null;
|
|
|
+ //审核意见
|
|
|
+ TopOldOrderCheckLog checkLog = topOldOrderCheckLogService
|
|
|
+ .getOne(new LambdaQueryWrapper<TopOldOrderCheckLog>()
|
|
|
+ .eq(TopOldOrderCheckLog::getOrderSn, detailVo.getSettleSn())
|
|
|
+ .isNotNull(TopOldOrderCheckLog::getCheckReason)
|
|
|
+ .orderByDesc(TopOldOrderCheckLog::getCheckSort)
|
|
|
+ .last("limit 1"));
|
|
|
+ if (ObjectUtils.isNotNull(checkLog)){
|
|
|
+ detailVo.setCheckReason(checkLog.getCheckReason());
|
|
|
+ }
|
|
|
+
|
|
|
+ //结算订单
|
|
|
+ List<TopInstSettleRelaiton> relaitonList = topInstSettleRelationService
|
|
|
+ .list(new LambdaQueryWrapper<TopInstSettleRelaiton>()
|
|
|
+ .eq(TopInstSettleRelaiton::getSettleId, instSettle.getSettleId())
|
|
|
+ .eq(TopInstSettleRelaiton::getStatus, 1));
|
|
|
+ if (CollectionUtils.isNotEmpty(relaitonList)){
|
|
|
+ List<NumSettleOrderVo> collect = relaitonList.stream().map(item -> {
|
|
|
+ NumSettleOrderVo orderVo = new NumSettleOrderVo();
|
|
|
+ orderVo.setSettleId(item.getSettleId());
|
|
|
+ orderVo.setOrderSn(item.getOrderSn());
|
|
|
+ orderVo.setSubmitDataTime(item.getSubmitDataTime());
|
|
|
+ orderVo.setSettleMoney(item.getSettleMoney());
|
|
|
+ if (item.getOrderFrom() == 1) {
|
|
|
+ Order order = orderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderSn, item.getOrderSn()));
|
|
|
+ User user = userService.getById(order.getUserId());
|
|
|
+ orderVo.setUserName(user.getRealname());
|
|
|
+ orderVo.setUserCard(EncryptHandler.decrypt(user.getIdCard()));
|
|
|
+ } else {
|
|
|
+ TopOldOrder oldOrder = topOldOrderService.getOne(new LambdaQueryWrapper<TopOldOrder>().eq(TopOldOrder::getOrderSn, item.getOrderSn()));
|
|
|
+ orderVo.setCreateNo(oldOrder.getCreateNo());
|
|
|
+ orderVo.setCreateUsername(oldOrder.getCreateUsername());
|
|
|
+ orderVo.setClientName(oldOrder.getPurchaseOrg());
|
|
|
+ TopOldOrderGoods orderGoods = topOldOrderGoodsService.getById(item.getOrderGoodsId());
|
|
|
+ orderVo.setUserName(orderGoods.getUserName());
|
|
|
+ orderVo.setUserCard(EncryptHandler.decrypt(orderGoods.getUserCard()));
|
|
|
+ }
|
|
|
+ return orderVo;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ detailVo.setSettleOrderVos(collect);
|
|
|
+ detailVo.setSettleOrderNum(collect.size());
|
|
|
+ }
|
|
|
+
|
|
|
+ return detailVo;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public boolean updateTimeSettle(TimeSettleBo bo) {
|
|
|
+ //修改校验
|
|
|
+ updateSettleCheck(bo.getSettleId(),bo.getLoginId(),bo.getLoginName());
|
|
|
+ TopInstSettle entity = BeanUtil.toBean(bo, TopInstSettle.class);
|
|
|
+ entity.setStatus(bo.getStatus());
|
|
|
+ entity.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ updateById(entity);
|
|
|
+ if (bo.getStatus() == 1){
|
|
|
+ //提交审核
|
|
|
+ createCheckLog(entity.getSettleSn(),bo.getLoginId(),bo.getLoginName());
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public boolean updateNumSettle(NumSettleBo bo) {
|
|
|
+ //修改校验
|
|
|
+ updateSettleCheck(bo.getSettleId(),bo.getLoginId(),bo.getLoginName());
|
|
|
+ TopInstSettle entity = BeanUtil.toBean(bo, TopInstSettle.class);
|
|
|
+ entity.setStatus(bo.getStatus());
|
|
|
+ entity.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ updateById(entity);
|
|
|
+ //删除重新添加结算订单信息
|
|
|
+ topInstSettleRelationService.remove(new LambdaQueryWrapper<TopInstSettleRelaiton>()
|
|
|
+ .eq(TopInstSettleRelaiton::getSettleId,entity.getSettleId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(bo.getSettleOrders())){
|
|
|
+ List<TopInstSettleRelaiton> relaitonList = bo.getSettleOrders().stream().map(item -> {
|
|
|
+ TopInstSettleRelaiton relaiton = BeanUtil.toBean(item, TopInstSettleRelaiton.class);
|
|
|
+ relaiton.setSettleId(entity.getSettleId());
|
|
|
+ relaiton.setCreateTime(DateUtils.getNowTime());
|
|
|
+ relaiton.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ relaiton.setStatus(1);
|
|
|
+ return relaiton;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ topInstSettleRelationService.saveBatch(relaitonList);
|
|
|
+ }
|
|
|
+ if (bo.getStatus() == 1){
|
|
|
+ //提交审核
|
|
|
+ createCheckLog(entity.getSettleSn(),bo.getLoginId(),bo.getLoginName());
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public boolean batchSubmitCheck(List<Long> settleIds, Long userId, String userName) {
|
|
|
+ for (Long settleId : settleIds) {
|
|
|
+ TopInstSettle settle = getById(settleId);
|
|
|
+ if (settle.getCheckStatus() != 1 ){
|
|
|
+ throw new CustomException(String.format("结算单【%s】已提交审核,无需重复提交!",settle.getTitle()));
|
|
|
+ }
|
|
|
+ //提交审核
|
|
|
+ createCheckLog(settle.getSettleSn(),userId,userName);
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public boolean batchDeleteSettle(List<Long> settleIds) {
|
|
|
+ for (Long settleId : settleIds) {
|
|
|
+ TopInstSettle settle = getById(settleId);
|
|
|
+ if (settle.getCheckStatus() != 1 ){
|
|
|
+ throw new CustomException(String.format("结算单【%s】已提交审核,请勿删除!",settle.getTitle()));
|
|
|
+ }
|
|
|
+ settle.setStatus(-1);
|
|
|
+ updateById(settle);
|
|
|
+ List<TopInstSettleRelaiton> relaitonList = topInstSettleRelationService
|
|
|
+ .list(new LambdaQueryWrapper<TopInstSettleRelaiton>()
|
|
|
+ .eq(TopInstSettleRelaiton::getSettleId, settle.getSettleId())
|
|
|
+ .eq(TopInstSettleRelaiton::getStatus, 1));
|
|
|
+ if (CollectionUtils.isNotEmpty(relaitonList)){
|
|
|
+ relaitonList.forEach(x -> x.setStatus(-1));
|
|
|
+ topInstSettleRelationService.updateBatchById(relaitonList);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean checkSettle(CheckSettleBo bo) {
|
|
|
+ //审核校验
|
|
|
+ TopInstSettle settle = getById(bo.getSettleId());
|
|
|
+ if (settle.getCheckStatus() != 2){
|
|
|
+ throw new CustomException("结算单不在审核流程中,请检查!");
|
|
|
+ }
|
|
|
+ //获取当前审核节点
|
|
|
+ TopOldOrderCheckLog checkLog = topOldOrderCheckLogService
|
|
|
+ .getOne(new LambdaQueryWrapper<TopOldOrderCheckLog>()
|
|
|
+ .eq(TopOldOrderCheckLog::getOrderSn, settle.getSettleSn())
|
|
|
+ .eq(TopOldOrderCheckLog::getCheckSign, 1)
|
|
|
+ .eq(TopOldOrderCheckLog::getStatus, 1)
|
|
|
+ .eq(TopOldOrderCheckLog::getCheckFrom, 4));
|
|
|
+ if (ObjectUtils.isEmpty(checkLog)){
|
|
|
+ throw new CustomException("结算单审核节点有误,请联系管理员!");
|
|
|
+ }
|
|
|
+ List<TopSysUserRole> roleList = topSysUserRoleService
|
|
|
+ .list(new LambdaQueryWrapper<TopSysUserRole>().eq(TopSysUserRole::getUserId, bo.getLoginId()));
|
|
|
+ if (CollectionUtils.isEmpty(roleList) && !"admin".equals(bo.getLoginName())){
|
|
|
+ throw new CustomException("当前账号没有审核权限!");
|
|
|
+ }
|
|
|
+ List<Long> roleIds = roleList.stream().map(TopSysUserRole::getRoleId).collect(Collectors.toList());
|
|
|
+ if (roleIds.stream().noneMatch(x -> x.equals(checkLog.getRoleId())) && !"admin".equals(bo.getLoginName())){
|
|
|
+ throw new CustomException("当前账号没有审核权限!");
|
|
|
+ }
|
|
|
+ switch (bo.getCheckResult()){
|
|
|
+ case 1://审核通过
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ private void updateSettleCheck(Long settleId, Long loginId,String loginName) {
|
|
|
+ TopInstSettle settle = getById(settleId);
|
|
|
+ if (ObjectUtils.isNull(settle)){
|
|
|
+ throw new CustomException("数据不存在!");
|
|
|
+ }
|
|
|
+ if (settle.getCheckStatus() != 1){
|
|
|
+ throw new CustomException("该结算单已进入审核流程,请勿修改!");
|
|
|
+ }
|
|
|
+ if (!"admin".equals(loginName) && !settle.getCreateUserId().equals(loginId)){
|
|
|
+ throw new CustomException("该结算单不是当前账号创建,请勿修改!");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//结算订单导入校验
|