|
@@ -32,6 +32,7 @@ import com.ruoyi.system.service.loan.ILoanApplicationService;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.io.*;
|
|
|
import java.util.*;
|
|
@@ -245,6 +246,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public int insertLoanApplication(LoanApplication loanApplication) {
|
|
|
if (loanApplicationMapper.selectLoanApplicationList(loanApplication).size() > 0) {
|
|
|
return 0;
|
|
@@ -310,6 +312,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult updateLoanApplication(LoanApplication loanApplication) {
|
|
|
|
|
|
loanApplication.setUpdateTime(DateUtils.getNowDate());
|
|
@@ -400,6 +403,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult temporary(LoanApplication loanApplication) {
|
|
|
loanApplication.setLoanApplicationType(ONE);
|
|
|
Long loanApplicationId = loanApplication.getLoanApplicationId();
|
|
@@ -567,6 +571,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult sh(ReviewComments reviewComments) {
|
|
|
reviewComments.setAuditTime(DateUtils.getNowDate());
|
|
|
//List<SysUserConference> sysUserConferenceList = reviewComments.getSysUserConferenceList();
|
|
@@ -859,6 +864,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult ss(LoanApplication loanApplication) {
|
|
|
Long loanApplicationId = loanApplication.getLoanApplicationId();
|
|
|
//先判断当前人是否是A角色或者B角色
|
|
@@ -942,6 +948,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult review(LoanApplication loanApplication) {
|
|
|
String loanSchedule = loanApplication.getLoanSchedule();
|
|
|
String auditSchedule = loanApplication.getAuditSchedule();
|
|
@@ -978,6 +985,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult schedule(LoanApplication loanApplication) {
|
|
|
String loanSchedule = loanApplication.getLoanSchedule();
|
|
|
if (!SEV.equals(loanSchedule) && !EIG.equals(loanSchedule)) {
|
|
@@ -1047,6 +1055,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult cx(LoanApplication loanApplication) {
|
|
|
Long loanApplicationId = loanApplication.getLoanApplicationId();
|
|
|
//获取当前状态
|
|
@@ -1168,7 +1177,9 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- waitRemindMapper.batchWaitRemind(waitRemindList);
|
|
|
+ if(waitRemindList!=null && waitRemindList.size()>0){
|
|
|
+ waitRemindMapper.batchWaitRemind(waitRemindList);
|
|
|
+ }
|
|
|
|
|
|
//业务审核意见插入撤销
|
|
|
ReviewComments reviewComments = new ReviewComments();
|
|
@@ -1193,6 +1204,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public AjaxResult gd(LoanApplication loanApplication) {
|
|
|
//判断项目是否能归档
|
|
|
String loanSchedule = loanApplication.getLoanSchedule();
|