master
wangning 7 years ago
parent 3f9d65aa58
commit df2d13826f

@ -30,15 +30,15 @@ public class CustomerImpressionController {
} }
@RequestMapping(value = "/{client_id}/{customer_id}", method = RequestMethod.GET) @RequestMapping(value = "/{customer_id}", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public JSONObject find(@PathVariable int client_id,@PathVariable String customer_id) { public JSONObject find(@PathVariable String customer_id,@ModelAttribute(CommonConsts.APP_INFO) JSONObject app) {
return customerImpression.findOne(client_id,customer_id); return customerImpression.findOne(app.getIntValue("client_id"),customer_id);
} }
@RequestMapping(value = "/{client_id}/{customer_id}", method = RequestMethod.PUT) @RequestMapping(value = "/{customer_id}", method = RequestMethod.PUT)
@ResponseBody @ResponseBody
public void modifyNameRemark(@PathVariable int client_id, @PathVariable String customer_id, @RequestBody JSONObject customerInfo) { public void modifyNameRemark(@PathVariable String customer_id, @RequestBody JSONObject customerInfo,@ModelAttribute(CommonConsts.APP_INFO) JSONObject app) {
customerImpression.modifyNameRemark(client_id,customer_id,customerInfo.getString("name_remark")); customerImpression.modifyNameRemark(app.getIntValue("client_id"),customer_id,customerInfo.getString("name_remark"));
} }
} }

@ -3,7 +3,7 @@
<mapper namespace="au.com.royalpay.payment.manage.mappers.client.ClientCustomersMapper"> <mapper namespace="au.com.royalpay.payment.manage.mappers.client.ClientCustomersMapper">
<select id="listCustomerInfo" resultType="com.alibaba.fastjson.JSONObject"> <select id="listCustomerInfo" resultType="com.alibaba.fastjson.JSONObject">
SELECT SELECT
* client_id,customer_id,name_remak,headimg,nick_name,tag,payment_times,total_amount,update_time,channel
FROM sys_clients_customers FROM sys_clients_customers
where where
client_id = #{client_id} client_id = #{client_id}

Loading…
Cancel
Save