|
|
@@ -373,8 +373,14 @@ public class HlgPaymentServiceImpl extends ServiceImpl<HlgPaymentMapper, HlgPaym
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Result<HlgPayment> deleteByLogic(HlgPayment hlgPayment) {
|
|
|
Result<HlgPayment> result = new Result<HlgPayment>();
|
|
|
- baseMapper.deleteByLogic(hlgPayment);
|
|
|
- result.success("删除成功");
|
|
|
+ if (hlgPayment.getStatus() == 0 || hlgPayment.getStatus() == 2) {
|
|
|
+ baseMapper.deleteByLogic(hlgPayment);
|
|
|
+ //同步逻辑删除付款明细
|
|
|
+ hlgPaymentDetailService.deleteByLogic(hlgPayment);
|
|
|
+ result.success("删除成功");
|
|
|
+ } else {
|
|
|
+ result.error500("删除失败");
|
|
|
+ }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -683,7 +689,7 @@ public class HlgPaymentServiceImpl extends ServiceImpl<HlgPaymentMapper, HlgPaym
|
|
|
HlgUser hlgUser = hlgUserMapper.getUserByIdcardNumber(idcardNumber);
|
|
|
if (hlgUser == null) {
|
|
|
//获取当前平台id
|
|
|
- HlgCompany hlgCompany=hlgCompanyService.getById(hlgPayment.getCompanyId());
|
|
|
+ HlgCompany hlgCompany = hlgCompanyService.getById(hlgPayment.getCompanyId());
|
|
|
HlgPlatform hlgPlatform = hlgPlatformMapper.selectById(hlgCompany.getPlatformId());
|
|
|
HlgUser hlgUser1 = new HlgUser();
|
|
|
hlgUser1.setPlatformId(hlgPlatform.getId());
|
|
|
@@ -743,7 +749,7 @@ public class HlgPaymentServiceImpl extends ServiceImpl<HlgPaymentMapper, HlgPaym
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if(resultlist.size()>0){
|
|
|
+ if (resultlist.size() > 0) {
|
|
|
return resultlist;
|
|
|
}
|
|
|
//定义导入付款总金额
|