|
|
@@ -38,6 +38,8 @@ import com.ruoyi.wisdomarbitrate.utils.SignAward;
|
|
38
|
38
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
39
|
39
|
import org.springframework.stereotype.Service;
|
|
40
|
40
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
41
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
42
|
+
|
|
41
|
43
|
import java.io.File;
|
|
42
|
44
|
import java.io.IOException;
|
|
43
|
45
|
import java.math.BigDecimal;
|
|
|
@@ -786,9 +788,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
786
|
788
|
|
|
787
|
789
|
@Override
|
|
788
|
790
|
@Transactional
|
|
789
|
|
- public int submitCaseApplication(BatchCaseApplication caseApplication) {
|
|
|
791
|
+ public int submitCaseApplication( List<Long> ids) {
|
|
790
|
792
|
int rows=0;
|
|
791
|
|
- for (CaseApplication application : caseApplication.getList()) {
|
|
|
793
|
+ for (Long id : ids) {
|
|
|
794
|
+ CaseApplication application = new CaseApplication();
|
|
|
795
|
+ application.setId(id);
|
|
792
|
796
|
//提交立案申请
|
|
793
|
797
|
application.setCaseStatus(CaseApplicationConstants.CASE_CHECK);
|
|
794
|
798
|
rows += caseApplicationMapper.submitCaseApplication(application);
|
|
|
@@ -800,10 +804,10 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
800
|
804
|
|
|
801
|
805
|
@Override
|
|
802
|
806
|
@Transactional
|
|
803
|
|
- public int deletecaseApplicationByIds(BatchCaseApplication caseApplication) {
|
|
|
807
|
+ public int deletecaseApplicationByIds(List<Long> ids ) {
|
|
804
|
808
|
|
|
805
|
|
- caseAffiliateMapper.batchDeletecaseAffiliate(caseApplication);
|
|
806
|
|
- return caseApplicationMapper.batchDeletecaseApplication(caseApplication);
|
|
|
809
|
+ caseAffiliateMapper.batchDeletecaseAffiliate(ids);
|
|
|
810
|
+ return caseApplicationMapper.batchDeletecaseApplication(ids);
|
|
807
|
811
|
}
|
|
808
|
812
|
|
|
809
|
813
|
@Override
|
|
|
@@ -1414,15 +1418,17 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1414
|
1418
|
|
|
1415
|
1419
|
@Override
|
|
1416
|
1420
|
@Transactional
|
|
1417
|
|
- public int submitCaseApplicationCheck(BatchCaseApplication batchCaseApplication) {
|
|
|
1421
|
+ public int submitCaseApplicationCheck(List<Long> ids, Integer agreeOrNotCheck) {
|
|
1418
|
1422
|
//提交立案审查
|
|
1419
|
1423
|
int rows = 0;
|
|
1420
|
|
- for (CaseApplication caseApplication : batchCaseApplication.getList()) {
|
|
1421
|
|
- Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
|
|
1422
|
|
- if(agreeOrNotCheck.intValue()==1){//同意审核
|
|
|
1424
|
+ for (Long id : ids) {
|
|
|
1425
|
+ CaseApplication caseApplication = new CaseApplication();
|
|
|
1426
|
+ caseApplication.setId(id);
|
|
|
1427
|
+ caseApplication.setAgreeOrNotCheck(agreeOrNotCheck);
|
|
|
1428
|
+ if(agreeOrNotCheck ==1){//同意审核
|
|
1423
|
1429
|
caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT);
|
|
1424
|
1430
|
rows+= caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
1425
|
|
- }else if(agreeOrNotCheck.intValue()==2){//拒绝审核
|
|
|
1431
|
+ }else if(agreeOrNotCheck ==2){//拒绝审核
|
|
1426
|
1432
|
caseApplication.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
|
1427
|
1433
|
rows+= caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
1428
|
1434
|
}
|