| | |
| | | import com.taoke.autopay.entity.SystemConfigKeyEnum; |
| | | import com.taoke.autopay.service.SystemConfigService; |
| | | import com.taoke.autopay.service.UserSettingService; |
| | | import com.taoke.autopay.vo.admin.IgnoreAgentOrderSettingVO; |
| | | import com.taoke.autopay.vo.admin.PayMoneySettingsVO; |
| | | import net.sf.json.JSONArray; |
| | | import net.sf.json.JSONObject; |
| | |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping("getForbiddenSubmitCitys") |
| | | public String getForbiddenSubmitCitys() { |
| | | String value = systemConfigService.getValue(SystemConfigKeyEnum.FORBIDDEN_SUBMIT_CITYS); |
| | | JSONObject data = new JSONObject(); |
| | | data.put("citys", value); |
| | | return JsonUtil.loadTrueResult(data); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping("setForbiddenSubmitCitys") |
| | | public String setForbiddenSubmitCitys(String citys) { |
| | | systemConfigService.setValue(SystemConfigKeyEnum.FORBIDDEN_SUBMIT_CITYS, citys); |
| | | return JsonUtil.loadTrueResult(""); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping("getIgnoreAgentOrderSetting") |
| | | public String getIgnoreAgentOrderSetting() { |
| | | String value = systemConfigService.getValue(SystemConfigKeyEnum.IGNORE_AGENT_ORDER_SETTING); |
| | | IgnoreAgentOrderSettingVO vo = new IgnoreAgentOrderSettingVO(); |
| | | if (!StringUtil.isNullOrEmpty(value)) { |
| | | vo = new Gson().fromJson(value, IgnoreAgentOrderSettingVO.class); |
| | | } |
| | | return JsonUtil.loadTrueResult(vo); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping("setIgnoreAgentOrderSetting") |
| | | public String setIgnoreAgentOrderSetting(IgnoreAgentOrderSettingVO vo) { |
| | | systemConfigService.setValue(SystemConfigKeyEnum.IGNORE_AGENT_ORDER_SETTING, new Gson().toJson(vo)); |
| | | return JsonUtil.loadTrueResult(""); |
| | | } |
| | | |
| | | |
| | | } |