|
|
@ -37,6 +37,7 @@ import org.springframework.web.multipart.MultipartFile; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import javax.validation.Valid; |
|
|
|
import java.io.*; |
|
|
|
import java.io.*; |
|
|
|
import java.util.*; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
@ -99,7 +100,7 @@ public class DgApplyAmountInfoController implements DgApplyAmountInfoControllerA |
|
|
|
@Log(detail = "业务申请",level = 3,operationUnit = OperationUnit.APPLYAMOUNTINFO,operationType = OperationType.INSERT) |
|
|
|
@Log(detail = "业务申请",level = 3,operationUnit = OperationUnit.APPLYAMOUNTINFO,operationType = OperationType.INSERT) |
|
|
|
@PostMapping("/businessApplication") |
|
|
|
@PostMapping("/businessApplication") |
|
|
|
@ApiOperation(value = "业务申请") |
|
|
|
@ApiOperation(value = "业务申请") |
|
|
|
public ResponseResult businessApplication(@RequestBody BusinessApplicationRequest businessApplication){ |
|
|
|
public ResponseResult businessApplication(@RequestBody @Valid BusinessApplicationRequest businessApplication){ |
|
|
|
int result = applyAmountInfoService.businessApplication(businessApplication); |
|
|
|
int result = applyAmountInfoService.businessApplication(businessApplication); |
|
|
|
return result>0 ? ResponseResult.SUCCESS("上传成功"):ResponseResult.FAIL(40004,"上传失败"); |
|
|
|
return result>0 ? ResponseResult.SUCCESS("上传成功"):ResponseResult.FAIL(40004,"上传失败"); |
|
|
|
} |
|
|
|
} |
|
|
@ -275,7 +276,7 @@ public class DgApplyAmountInfoController implements DgApplyAmountInfoControllerA |
|
|
|
@Log(detail = "修改业务申请",level = 4,operationUnit = OperationUnit.APPLYAMOUNTINFO,operationType = OperationType.UPDATE) |
|
|
|
@Log(detail = "修改业务申请",level = 4,operationUnit = OperationUnit.APPLYAMOUNTINFO,operationType = OperationType.UPDATE) |
|
|
|
@PostMapping("/updateBusinessApplication") |
|
|
|
@PostMapping("/updateBusinessApplication") |
|
|
|
@ApiOperation(value = "根据业务id修改业务申请内容") |
|
|
|
@ApiOperation(value = "根据业务id修改业务申请内容") |
|
|
|
public ResponseResult updateBusinessApplication(@RequestBody BusinessApplicationRequest businessApplication){ |
|
|
|
public ResponseResult updateBusinessApplication(@RequestBody @Valid BusinessApplicationRequest businessApplication){ |
|
|
|
int result = applyAmountInfoService.updateBusinessApplication(businessApplication); |
|
|
|
int result = applyAmountInfoService.updateBusinessApplication(businessApplication); |
|
|
|
return result>0 ? ResponseResult.SUCCESS("修改成功!"):ResponseResult.FAIL(40005,"修改失败!"); |
|
|
|
return result>0 ? ResponseResult.SUCCESS("修改成功!"):ResponseResult.FAIL(40005,"修改失败!"); |
|
|
|
} |
|
|
|
} |
|
|
|