|
|
@ -634,7 +634,7 @@ public class AnnualCompetitionProjectRegistrationController { |
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
|
|
|
public Result<String> edit(@RequestBody AnnualCompetitionProjectRegistrationPage annualCompetitionProjectRegistrationPage) { |
|
|
|
public Result<String> edit(@RequestBody AnnualCompetitionProjectRegistrationPage annualCompetitionProjectRegistrationPage) { |
|
|
|
//判断是否为新增,以为前端访问的也是这个页面
|
|
|
|
//判断是否为新增,以为前端访问的也是这个页面
|
|
|
|
if (annualCompetitionProjectRegistrationPage.getAnnualCompid().length() < 11) {//说明走的新增,判断有点儿问题
|
|
|
|
if (annualCompetitionProjectRegistrationPage.getEnrollCode() ==null) {//说明走的新增,判断有点儿问题
|
|
|
|
annualCompetitionProjectRegistrationPage.setAnnualCompid(annualCompetitionProjectRegistrationPage.getId()); |
|
|
|
annualCompetitionProjectRegistrationPage.setAnnualCompid(annualCompetitionProjectRegistrationPage.getId()); |
|
|
|
annualCompetitionProjectRegistrationPage.setId(null); |
|
|
|
annualCompetitionProjectRegistrationPage.setId(null); |
|
|
|
String entryFormat = annualCompetitionProjectRegistrationPage.getEntryFormat(); |
|
|
|
String entryFormat = annualCompetitionProjectRegistrationPage.getEntryFormat(); |
|
|
@ -793,7 +793,7 @@ public class AnnualCompetitionProjectRegistrationController { |
|
|
|
public Result<String> commitApplication(String id) { |
|
|
|
public Result<String> commitApplication(String id) { |
|
|
|
AnnualCompetitionProjectRegistration compRegistration = annualCompetitionProjectRegistrationService.query().eq("id", id).one(); |
|
|
|
AnnualCompetitionProjectRegistration compRegistration = annualCompetitionProjectRegistrationService.query().eq("id", id).one(); |
|
|
|
String enrollStatic = compRegistration.getEnrollStatic(); |
|
|
|
String enrollStatic = compRegistration.getEnrollStatic(); |
|
|
|
if (!enrollStatic.equals("0") && !enrollStatic.equals("3")) |
|
|
|
if (!enrollStatic.equals("1") && !enrollStatic.equals("3") && !enrollStatic.equals("4")) |
|
|
|
return Result.error("当前状态不需要提交"); |
|
|
|
return Result.error("当前状态不需要提交"); |
|
|
|
compRegistration.setEnrollStatic("1"); |
|
|
|
compRegistration.setEnrollStatic("1"); |
|
|
|
compRegistration.setBackinfo(""); |
|
|
|
compRegistration.setBackinfo(""); |
|
|
|