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