|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.appclient.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.ParamInvalidException;
|
|
|
|
|
import au.com.royalpay.payment.manage.activities.monsettledelay.core.ActMonDelaySettleService;
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.beans.AppClientBean;
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.beans.AppQueryBean;
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.core.RetailAppService;
|
|
|
|
@ -26,6 +27,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -48,6 +50,8 @@ public class RetailAppController {
|
|
|
|
|
private BillOrderService billOrderService;
|
|
|
|
|
@Resource
|
|
|
|
|
private BillService billService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ActMonDelaySettleService actMonDelaySettleService;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/token", method = RequestMethod.PUT)
|
|
|
|
|
public void updateDevToken(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device, @RequestBody JSONObject token) {
|
|
|
|
@ -322,4 +326,18 @@ public class RetailAppController {
|
|
|
|
|
result.put("analysis",billOrderService.analysis(bill_id,device.getIntValue("client_id"),queryBillOrderBean));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/act",method = RequestMethod.GET)
|
|
|
|
|
public JSONObject getIndexAct(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device){
|
|
|
|
|
return actMonDelaySettleService.getActNotice(device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/act/mondelay/desc", method = RequestMethod.GET)
|
|
|
|
|
public ModelAndView getActDetail(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("activity/mondelay/mondelay");
|
|
|
|
|
mav.addAllObjects(actMonDelaySettleService.getActDetail(device));
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|