|
|
@@ -45,7 +45,7 @@ public class BusinessContractPayController {
|
|
45
|
45
|
* 列表
|
|
46
|
46
|
* @param pageNum
|
|
47
|
47
|
* @param pageSize
|
|
48
|
|
- * @param customerBadrecord
|
|
|
48
|
+ * @param contractPayRecevice
|
|
49
|
49
|
* @return
|
|
50
|
50
|
*/
|
|
51
|
51
|
@RequestMapping(value="/getList",produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
|
|
|
@@ -54,8 +54,9 @@ public class BusinessContractPayController {
|
|
54
|
54
|
@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
|
|
55
|
55
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query")
|
|
56
|
56
|
})
|
|
57
|
|
- public PageInfo<BusinessContractPayRecevice> getList(Integer pageNum, Integer pageSize,BusinessContractPayRecevice contractPayRecevice) {
|
|
58
|
|
- List<BusinessContractPayRecevice> list = contractPayService.queryByExample(pageNum,pageSize,contractPayRecevice);
|
|
|
57
|
+ public PageInfo<BusinessContractPayRecevice> getList(HttpServletRequest request, Integer pageNum, Integer pageSize,BusinessContractPayRecevice contractPayRecevice) {
|
|
|
58
|
+ Integer orgId= (Integer) request.getSession().getAttribute("orgId");
|
|
|
59
|
+ List<BusinessContractPayRecevice> list = contractPayService.queryByExample(pageNum,pageSize,contractPayRecevice,orgId);
|
|
59
|
60
|
PageInfo<BusinessContractPayRecevice> pageInfo = new PageInfo<BusinessContractPayRecevice>(list);
|
|
60
|
61
|
return pageInfo;
|
|
61
|
62
|
}
|
|
|
@@ -64,7 +65,7 @@ public class BusinessContractPayController {
|
|
64
|
65
|
|
|
65
|
66
|
/**
|
|
66
|
67
|
* 保存
|
|
67
|
|
- * @param customerJson 业务数据json
|
|
|
68
|
+ * @param contractJson 业务数据json
|
|
68
|
69
|
* @return
|
|
69
|
70
|
* @throws JsonParseException
|
|
70
|
71
|
* @throws JsonMappingException
|
|
|
@@ -84,6 +85,8 @@ public class BusinessContractPayController {
|
|
84
|
85
|
ObjectMapper mapper = new ObjectMapper();
|
|
85
|
86
|
BusinessContractPayRecevice contract = (BusinessContractPayRecevice)mapper.readValue(contractJson, BusinessContractPayRecevice.class);
|
|
86
|
87
|
if (contract.getId() == null) {
|
|
|
88
|
+ Integer orgId= (Integer) request.getSession().getAttribute("orgId");
|
|
|
89
|
+ contract.setZid(orgId);
|
|
87
|
90
|
contractPayService.add(contract);
|
|
88
|
91
|
} else {
|
|
89
|
92
|
|