|
@@ -128,11 +128,19 @@ public class CwjsPolicyInfoController {
|
|
* @param approvalContent 审核内容
|
|
* @param approvalContent 审核内容
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @GetMapping(value = "/policyApproval")
|
|
|
|
- public Result policyApproval(@RequestParam(name="id") Integer id,
|
|
|
|
- @RequestParam(name="type") Integer type,
|
|
|
|
- @RequestParam(name="userId") String userId,
|
|
|
|
- @RequestParam(name="approvalContent",required=false) String approvalContent) {
|
|
|
|
|
|
+ @PostMapping(value = "/policyApproval")
|
|
|
|
+ public Result policyApproval(@RequestBody JSONObject object
|
|
|
|
+ //@RequestParam(name="id") Integer id,
|
|
|
|
+ //@RequestParam(name="type") Integer type,
|
|
|
|
+ //@RequestParam(name="userId") String userId,
|
|
|
|
+ //@RequestParam(name="approvalContent",required=false) String approvalContent
|
|
|
|
+ ) {
|
|
|
|
+
|
|
|
|
+ Integer id = object.getInteger("id");
|
|
|
|
+ Integer type = object.getInteger("type");
|
|
|
|
+ String userId = object.getString("userId");
|
|
|
|
+ String approvalContent = object.getString("approvalContent");
|
|
|
|
+
|
|
|
|
|
|
CwjsPolicyInfo cwjsPolicyInfo = cwjsPolicyInfoService.getById(id);
|
|
CwjsPolicyInfo cwjsPolicyInfo = cwjsPolicyInfoService.getById(id);
|
|
if (cwjsPolicyInfo == null) {
|
|
if (cwjsPolicyInfo == null) {
|