| | |
| | | * @param provinceCode |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryCity(@Param("provinceCode") String provinceCode, @Param("cityCode") String cityCode); |
| | | List<Map<String, Object>> queryCity(@Param("provinceCode") String provinceCode, |
| | | @Param("cityCode") String cityCode); |
| | | List<Map<String, Object>> queryCity2(@Param("provinceCode") String provinceCode, |
| | | @Param("cityCode") String cityCode, |
| | | @Param("type") Integer type, |
| | | @Param("operatorId") Integer operatorId); |
| | | List<Map<String, Object>> queryCity1(); |
| | | |
| | | List<Map<String, Object>> queryListOfpage(@Param("provinceCode") String provinceCode, |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/queryCity1/{code}") |
| | | public ResultUtil queryCity1(@PathVariable("code") String code){ |
| | | @PostMapping("/queryCity1/{code}/{$operationId}") |
| | | public ResultUtil queryCity1(@PathVariable("code") String code, |
| | | @PathVariable("$operationId") String operationId){ |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | String cityCode = null; |
| | |
| | | // CityManager cityManager = cityManagerClient.queryCityManagerById(objectId); |
| | | // cityCode = cityManager.getCityCode(); |
| | | // } |
| | | System.out.println("======="+storeService.queryCity(code, cityCode)); |
| | | Integer operatorId= 0; |
| | | Integer type= 0; |
| | | if (operationId.equals("平台")){ |
| | | type = 1; |
| | | operatorId = null; |
| | | }else{ |
| | | operatorId = Integer.valueOf(operationId); |
| | | type = 2; |
| | | } |
| | | // return storeService.queryCity(code, cityCode); |
| | | return new ResultUtil(0,null,null,storeService.queryCity(code, cityCode),null); |
| | | return new ResultUtil(0,null,null,storeService.queryCity2(code, cityCode |
| | | ,type,operatorId),null); |
| | | } |
| | | |
| | | @ResponseBody |
| | |
| | | .ne("state",3)); |
| | | model.addAttribute("siteList",siteList); |
| | | } |
| | | |
| | | |
| | | return PREFIX + "gate_add.html"; |
| | | } |
| | | |
| | |
| | | List<Map<String,Object>> res = gateService.listAll(name,device,operatorName,storeName,storeIds,page); |
| | | return res; |
| | | } |
| | | |
| | | /** |
| | | * 根据运营商id获取门店列表 |
| | | |
| | | */ |
| | | @RequestMapping(value = "/getStore") |
| | | @ResponseBody |
| | |
| | | */ |
| | | List<Map<String, Object>> queryCity(String provinceCode, String cityCode); |
| | | List<Map<String, Object>> queryCity1(); |
| | | List<Map<String, Object>> queryCity2(String provinceCode, String cityCode, |
| | | Integer type,Integer operatorId); |
| | | |
| | | List<Map<String, Object>> queryListOfpage(String provinceCode, String cityCode, Integer operatorId, String storeName, Page<Map<String, Object>> page); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> queryCity2(String provinceCode, String cityCode,Integer type,Integer operatorId) { |
| | | return this.baseMapper.queryCity2(provinceCode, cityCode,type,operatorId); |
| | | } |
| | | @Override |
| | | public List<Map<String, Object>> queryCity(String provinceCode, String cityCode) { |
| | | return this.baseMapper.queryCity(provinceCode, cityCode); |
| | | } |
| | |
| | | group by cityCode |
| | | ) as aa order by aa.code |
| | | </select> |
| | | <select id="queryCity2" resultType="map"> |
| | | |
| | | select * from ( |
| | | select cityCode as code, city as name |
| | | from t_store where state = 1 and provinceCode = #{provinceCode} |
| | | <if test="null != cityCode and '' != cityCode"> |
| | | and cityCode = #{cityCode} |
| | | </if> |
| | | <if test="null != type"> |
| | | and `type` = #{type} |
| | | </if> |
| | | <if test="null != operatorId"> |
| | | and operatorId = #{operatorId} |
| | | </if> |
| | | group by cityCode |
| | | ) as aa order by aa.code |
| | | </select> |
| | | |
| | | <select id="queryCity1" resultType="map"> |
| | | select * from ( |
| | | select cityCode as code, city as name from t_store where state = 1 |
| | |
| | | // 通过替换下面这个配置来生成不同页面 |
| | | let amisJSON = { |
| | | "type": "page", |
| | | "id": "u:8c028a595aa6", |
| | | "body": [ |
| | | { |
| | | "type": "form", |
| | |
| | | "tpl": "                 *所属运营商:", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | |
| | | "style": { |
| | | "marginLeft": "0", |
| | | "fontFamily": "", |
| | | "fontFamily": "" |
| | | }, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | }, |
| | | "font:default": { |
| | | "fontSize": 18 |
| | | } |
| | | },{ |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | "type": "select", |
| | | "label": "", |
| | | "name": "operationId", |
| | |
| | | "source": { |
| | | "url": "/ball/yunying", |
| | | "method": "post", |
| | | "messages": { |
| | | } |
| | | "messages": {} |
| | | }, |
| | | "labelField": "value", |
| | | "valueField": "id" |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "checkbox", |
| | | "option": "平台", |
| | | "name": "is", |
| | |
| | | "trueValue": "平台", |
| | | "falseValue": 0, |
| | | "mode": "inline" |
| | | |
| | | }, |
| | | { |
| | | "type": "select", |
| | |
| | | "source": { |
| | | "url": "/coursePackage/queryProvince", |
| | | "method": "get", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "sendOn": "", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | | "silent": true |
| | | |
| | | }, |
| | | "onEvent": { |
| | | "change": { |
| | |
| | | "source": { |
| | | "url": "/coursePackage/queryCity1/$province", |
| | | "method": "post", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "sendOn": "this.province != null &&this.province != ' '", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | |
| | | }, |
| | | "source": { |
| | | "method": "post", |
| | | "url": "/coursePackage/queryStore1/$city", |
| | | "messages": { |
| | | }, |
| | | "url": "/coursePackage/queryStore1/$city/$operationId", |
| | | "messages": {}, |
| | | "sendOn": "this.city != null &&this.city != ' '", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | |
| | | "source": { |
| | | "url": "/coursePackage/querySite/$store", |
| | | "method": "post", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "dataType": "form", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | |
| | | "wrapperComponent": "", |
| | | "id": "u:587781d5d181", |
| | | "style": { |
| | | "marginLeft": "0", |
| | | "fontFamily": "", |
| | | "fontFamily": "" |
| | | }, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | }, |
| | | "font:default": { |
| | | "fontSize": 18 |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | }, |
| | | "value": "", |
| | | "required": true |
| | | , |
| | | "value":"" |
| | | }, |
| | | { |
| | | "type": "input-text", |
| | |
| | | "mode": "inline", |
| | | "clearValueOnHidden": false, |
| | | "hidden": false, |
| | | "required": true |
| | | , |
| | | "required": true, |
| | | "value":"" |
| | | }, |
| | | { |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:89bd6bd7e231", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:20efa0a87285", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:4b37f6a2c067", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:cd832349886c", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:fe79896823ad", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "columnClassName": "p-l-lg" |
| | | }, |
| | | { |
| | | "body": [ |
| | | ], |
| | | "body": [], |
| | | "id": "u:5a16b34e0128" |
| | | }, |
| | | { |
| | | "body": [ |
| | | ], |
| | | "body": [], |
| | | "id": "u:a49cf291b3fe" |
| | | } |
| | | ], |
| | |
| | | "click": { |
| | | "actions": [ |
| | | { |
| | | "args": { |
| | | }, |
| | | "args": {}, |
| | | "script": "parent.layer.close(window.parent.TStudent.layerIndex);", |
| | | "actionType": "custom" |
| | | } |
| | |
| | | "actionType": "submit" |
| | | }, |
| | | { |
| | | "args": { |
| | | }, |
| | | "args": {}, |
| | | "script": "window.parent.TStudent.table.refresh();", |
| | | "actionType": "custom" |
| | | } |
| | |
| | | "api": { |
| | | "url": "/ball/save", |
| | | "method": "post", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "dataType": "form-data" |
| | | }, |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "onEvent": { |
| | | "submitSucc": { |
| | | "weight": 0, |
| | | "actions": [ |
| | | { |
| | | "args": { |
| | | }, |
| | | "args": {}, |
| | | "script": "parent.layer.close(window.parent.TStudent.layerIndex);", |
| | | "actionType": "custom" |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | "feat": "Insert" |
| | | } |
| | | } |
| | | ] |
| | | ], |
| | | "id": "u:8c028a595aa6" |
| | | }; |
| | | |
| | | let amisScoped = amis.embed('#root', amisJSON); |
| | |
| | | subArr.push($(this).find("input[name*='id']").val()); |
| | | }); |
| | | var str = ''; |
| | | this.siteIds = []; |
| | | for(var i in arr){ |
| | | var b = true; |
| | | for(var j in subArr){ |
| | |
| | | } |
| | | } |
| | | if(b){ |
| | | console.log("push前") |
| | | console.log(this.siteIds) |
| | | |
| | | this.siteIds.push(arr[i].id); |
| | | console.log("场地push") |
| | | console.log(arr[i].id) |