master
kira 6 years ago
parent 921d9b9803
commit 63acb207d7

@ -319,9 +319,7 @@ public class RetailAppController {
@RequestMapping(value = "/modify/retail_surcharge", method = RequestMethod.PUT)
public JSONObject setCustomerPayForSurcharge(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device, @RequestBody JSONObject config) {
JSONObject result =retailAppService.updateRetailConfig(device, config.getBooleanValue("retail_surcharge"));
logger.info(result.toJSONString());
return result;
return retailAppService.updateRetailConfig(device, config.getBooleanValue("retail_surcharge"));
}
@RequestMapping(value = "/modify/require_remark", method = RequestMethod.PUT)
@ -551,4 +549,9 @@ public class RetailAppController {
return retailAppService.openimCheck(device);
}
@RequestMapping(value = "/openim/chat",method = RequestMethod.POST)
public void openimChat(@ModelAttribute(RETAIL_DEVICE) JSONObject device,@RequestBody JSONObject param) {
retailAppService.addUnreadMsg(device,param);
}
}

@ -35,7 +35,6 @@ public abstract class ClientConfigModify {
protected abstract JSONObject getModifyResult();
@Transactional
public int doModify(MerchantInfoProvider merchantInfoProvider, ClientConfigMapper clientConfigMapper, ClientMapper clientMapper, MongoTemplate mongoTemplate) {
JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker);
JSONObject modifyResult = getModifyResult();

Loading…
Cancel
Save