|  | @ -1,9 +1,9 @@
 | 
												
													
														
															|  | package com.yihu.jw.controller.wlyy.agreement;
 |  | package com.yihu.jw.controller.wlyy.agreement;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | import com.yihu.jw.commnon.wlyy.AgreementContants;
 | 
												
													
														
															|  | import com.yihu.jw.fegin.wlyy.agreement.WlyySignFamilyFegin;
 |  | import com.yihu.jw.fegin.wlyy.agreement.WlyySignFamilyFegin;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.common.Envelop;
 |  | import com.yihu.jw.restmodel.common.Envelop;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.common.EnvelopRestController;
 |  | import com.yihu.jw.restmodel.common.EnvelopRestController;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.wlyy.WlyyContants;
 |  | 
 | 
												
													
														
															|  | import io.swagger.annotations.Api;
 |  | import io.swagger.annotations.Api;
 | 
												
													
														
															|  | import io.swagger.annotations.ApiOperation;
 |  | import io.swagger.annotations.ApiOperation;
 | 
												
													
														
															|  | import io.swagger.annotations.ApiParam;
 |  | import io.swagger.annotations.ApiParam;
 | 
												
											
												
													
														
															|  | @ -14,11 +14,8 @@ import org.springframework.cloud.sleuth.Tracer;
 | 
												
													
														
															|  | import org.springframework.http.MediaType;
 |  | import org.springframework.http.MediaType;
 | 
												
													
														
															|  | import org.springframework.web.bind.annotation.*;
 |  | import org.springframework.web.bind.annotation.*;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | import javax.servlet.http.HttpServletRequest;
 |  | 
 | 
												
													
														
															|  | import javax.servlet.http.HttpServletResponse;
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | @RestController
 |  | @RestController
 | 
												
													
														
															|  | @RequestMapping(WlyyContants.WlyySignFamily.api_common)
 |  | 
 | 
												
													
														
															|  | 
 |  | @RequestMapping(AgreementContants.SignFamily.api_common)
 | 
												
													
														
															|  | @Api(value = "签约相关操作", description = "签约相关操作")
 |  | @Api(value = "签约相关操作", description = "签约相关操作")
 | 
												
													
														
															|  | public class WlyySignFamilyController extends EnvelopRestController {
 |  | public class WlyySignFamilyController extends EnvelopRestController {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
											
												
													
														
															|  | @ -30,7 +27,7 @@ public class WlyySignFamilyController extends EnvelopRestController {
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private Tracer tracer;
 |  |     private Tracer tracer;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @PostMapping(value = WlyyContants.WlyySignFamily.api_create, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
 |  | 
 | 
												
													
														
															|  | 
 |  |     @PostMapping(value = AgreementContants.SignFamily.api_create, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
 | 
												
													
														
															|  |     @ApiOperation(value = "创建签约", notes = "创建签约")
 |  |     @ApiOperation(value = "创建签约", notes = "创建签约")
 | 
												
													
														
															|  |     public Envelop create(
 |  |     public Envelop create(
 | 
												
													
														
															|  |             @ApiParam(name = "json_data", value = "", defaultValue = "")
 |  |             @ApiParam(name = "json_data", value = "", defaultValue = "")
 | 
												
											
												
													
														
															|  | @ -38,7 +35,7 @@ public class WlyySignFamilyController extends EnvelopRestController {
 | 
												
													
														
															|  |        return wlyySignFamilyFegin.create(jsonData);
 |  |        return wlyySignFamilyFegin.create(jsonData);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @PutMapping(value = WlyyContants.WlyySignFamily.api_update, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
 |  | 
 | 
												
													
														
															|  | 
 |  |     @PutMapping(value = AgreementContants.SignFamily.api_update, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
 | 
												
													
														
															|  |     @ApiOperation(value = "修改签约", notes = "修改签约")
 |  |     @ApiOperation(value = "修改签约", notes = "修改签约")
 | 
												
													
														
															|  |     public Envelop update(
 |  |     public Envelop update(
 | 
												
													
														
															|  |             @ApiParam(name = "json_data", value = "", defaultValue = "")
 |  |             @ApiParam(name = "json_data", value = "", defaultValue = "")
 | 
												
											
												
													
														
															|  | @ -46,7 +43,7 @@ public class WlyySignFamilyController extends EnvelopRestController {
 | 
												
													
														
															|  |         return wlyySignFamilyFegin.update(jsonData);
 |  |         return wlyySignFamilyFegin.update(jsonData);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value =WlyyContants.WlyySignFamily.api_getByCode)
 |  | 
 | 
												
													
														
															|  | 
 |  |     @GetMapping(value =AgreementContants.SignFamily.api_getByCode)
 | 
												
													
														
															|  |     @ApiOperation(value = "根据code查找协议", notes = "根据code查找协议")
 |  |     @ApiOperation(value = "根据code查找协议", notes = "根据code查找协议")
 | 
												
													
														
															|  |     public Envelop findByCode(
 |  |     public Envelop findByCode(
 | 
												
													
														
															|  |             @ApiParam(name = "code", value = "code")
 |  |             @ApiParam(name = "code", value = "code")
 | 
												
											
												
													
														
															|  | @ -55,33 +52,33 @@ public class WlyySignFamilyController extends EnvelopRestController {
 | 
												
													
														
															|  |        return wlyySignFamilyFegin.findByCode(code);
 |  |        return wlyySignFamilyFegin.findByCode(code);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @RequestMapping(value =WlyyContants.WlyySignFamily.api_queryPage, method = RequestMethod.GET)
 |  | 
 | 
												
													
														
															|  |     @ApiOperation(value = "分页获取协议")
 |  | 
 | 
												
													
														
															|  |     public Envelop queryPage(
 |  | 
 | 
												
													
														
															|  |             @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段", defaultValue = "id,code,parentCode,saasId,name,price,posterPic,remark,type,status")
 |  | 
 | 
												
													
														
															|  |             @RequestParam(value = "fields", required = false) String fields,
 |  | 
 | 
												
													
														
															|  |             @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
 |  | 
 | 
												
													
														
															|  |             @RequestParam(value = "filters", required = false) String filters,
 |  | 
 | 
												
													
														
															|  |             @ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+name,+createTime")
 |  | 
 | 
												
													
														
															|  |             @RequestParam(value = "sorts", required = false) String sorts,
 |  | 
 | 
												
													
														
															|  |             @ApiParam(name = "size", value = "分页大小", defaultValue = "15")
 |  | 
 | 
												
													
														
															|  |             @RequestParam(value = "size", required = false) int size,
 |  | 
 | 
												
													
														
															|  |             @ApiParam(name = "page", value = "页码", defaultValue = "1")
 |  | 
 | 
												
													
														
															|  |             @RequestParam(value = "page", required = false) int page,
 |  | 
 | 
												
													
														
															|  |             HttpServletRequest request,
 |  | 
 | 
												
													
														
															|  |             HttpServletResponse response) throws Exception {
 |  | 
 | 
												
													
														
															|  |        return wlyySignFamilyFegin.queryPage(fields, filters, sorts, size, page, request, response);
 |  | 
 | 
												
													
														
															|  |     }
 |  | 
 | 
												
													
														
															|  | 
 |  |     //@RequestMapping(value =AgreementContants.SignFamily.api_queryPage, method = RequestMethod.GET)
 | 
												
													
														
															|  | 
 |  |     //@ApiOperation(value = "分页获取协议")
 | 
												
													
														
															|  | 
 |  |     //public Envelop queryPage(
 | 
												
													
														
															|  | 
 |  |     //        @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
 | 
												
													
														
															|  | 
 |  |     //        @RequestParam(value = "fields", required = false) String fields,
 | 
												
													
														
															|  | 
 |  |     //        @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
 | 
												
													
														
															|  | 
 |  |     //        @RequestParam(value = "filters", required = false) String filters,
 | 
												
													
														
															|  | 
 |  |     //        @ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+name")
 | 
												
													
														
															|  | 
 |  |     //        @RequestParam(value = "sorts", required = false) String sorts,
 | 
												
													
														
															|  | 
 |  |     //        @ApiParam(name = "size", value = "分页大小", defaultValue = "15")
 | 
												
													
														
															|  | 
 |  |     //        @RequestParam(value = "size", required = false) int size,
 | 
												
													
														
															|  | 
 |  |     //        @ApiParam(name = "page", value = "页码", defaultValue = "1")
 | 
												
													
														
															|  | 
 |  |     //        @RequestParam(value = "page", required = false) int page,
 | 
												
													
														
															|  | 
 |  |     //        HttpServletRequest request,
 | 
												
													
														
															|  | 
 |  |     //        HttpServletResponse response) throws Exception {
 | 
												
													
														
															|  | 
 |  |     //   return wlyySignFamilyFegin.queryPage(fields, filters, sorts, size, page, request, response);
 | 
												
													
														
															|  | 
 |  |     //}
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value =WlyyContants.WlyySignFamily.api_getList)
 |  | 
 | 
												
													
														
															|  | 
 |  |     @GetMapping(value =AgreementContants.SignFamily.api_getList)
 | 
												
													
														
															|  |     @ApiOperation(value = "获取协议列表(不分页)")
 |  |     @ApiOperation(value = "获取协议列表(不分页)")
 | 
												
													
														
															|  |     public Envelop getList(
 |  |     public Envelop getList(
 | 
												
													
														
															|  |             @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段", defaultValue = "id,code,parentCode,saasId,name,price,posterPic,remark,type,status")
 |  | 
 | 
												
													
														
															|  | 
 |  |             @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
 | 
												
													
														
															|  |             @RequestParam(value = "fields", required = false) String fields,
 |  |             @RequestParam(value = "fields", required = false) String fields,
 | 
												
													
														
															|  |             @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
 |  |             @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
 | 
												
													
														
															|  |             @RequestParam(value = "filters", required = false) String filters,
 |  |             @RequestParam(value = "filters", required = false) String filters,
 | 
												
													
														
															|  |             @ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+name,+createTime")
 |  | 
 | 
												
													
														
															|  | 
 |  |             @ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+name")
 | 
												
													
														
															|  |             @RequestParam(value = "sorts", required = false) String sorts) throws Exception {
 |  |             @RequestParam(value = "sorts", required = false) String sorts) throws Exception {
 | 
												
													
														
															|  |         return wlyySignFamilyFegin.getList(fields,filters,sorts);
 |  |         return wlyySignFamilyFegin.getList(fields,filters,sorts);
 | 
												
													
														
															|  |     }
 |  |     }
 |