|
|
@ -1,9 +1,9 @@
|
|
|
|
package au.com.royalpay.payment.manage.apps.web;
|
|
|
|
package au.com.royalpay.payment.manage.apps.web;
|
|
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.apps.AppController;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.apps.bean.CustomerImpressionQuery;
|
|
|
|
import au.com.royalpay.payment.manage.apps.bean.CustomerImpressionQuery;
|
|
|
|
import au.com.royalpay.payment.manage.apps.core.CustomerImpression;
|
|
|
|
import au.com.royalpay.payment.manage.apps.core.CustomerImpression;
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.tools.device.advise.AppClientController;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
@AppController
|
|
|
|
@AppClientController
|
|
|
|
@RequestMapping(value = "/customers/impression")
|
|
|
|
@RequestMapping(value = "/customers/impression")
|
|
|
|
public class CustomerImpressionController {
|
|
|
|
public class CustomerImpressionController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
@ -24,7 +24,7 @@ public class CustomerImpressionController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public JSONObject list(CustomerImpressionQuery customerImpressionQuery,@ModelAttribute(CommonConsts.APP_INFO) JSONObject app) {
|
|
|
|
public JSONObject list(CustomerImpressionQuery customerImpressionQuery,@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject app) {
|
|
|
|
customerImpressionQuery.setClient_id(app.getInteger("client_id"));
|
|
|
|
customerImpressionQuery.setClient_id(app.getInteger("client_id"));
|
|
|
|
return customerImpression.listPageble(customerImpressionQuery);
|
|
|
|
return customerImpression.listPageble(customerImpressionQuery);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -32,13 +32,13 @@ public class CustomerImpressionController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/{customer_id}", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/{customer_id}", method = RequestMethod.GET)
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public JSONObject find(@PathVariable String customer_id,@ModelAttribute(CommonConsts.APP_INFO) JSONObject app) {
|
|
|
|
public JSONObject find(@PathVariable String customer_id,@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject app) {
|
|
|
|
return customerImpression.findOne(app.getIntValue("client_id"),customer_id);
|
|
|
|
return customerImpression.findOne(app.getIntValue("client_id"),customer_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/{customer_id}", method = RequestMethod.PUT)
|
|
|
|
@RequestMapping(value = "/{customer_id}", method = RequestMethod.PUT)
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public void modifyNameRemark(@PathVariable String customer_id, @RequestBody JSONObject customerInfo,@ModelAttribute(CommonConsts.APP_INFO) JSONObject app) {
|
|
|
|
public void modifyNameRemark(@PathVariable String customer_id, @RequestBody JSONObject customerInfo,@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject app) {
|
|
|
|
customerImpression.modifyNameRemark(app.getIntValue("client_id"),customer_id,customerInfo.getString("name_remark"));
|
|
|
|
customerImpression.modifyNameRemark(app.getIntValue("client_id"),customer_id,customerInfo.getString("name_remark"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|