| | |
| | | String provinceName = (String) stringObjectMap.get("province"); |
| | | String cityName = (String) stringObjectMap.get("city"); |
| | | stringObjectMap.put("provinceCity",provinceName+cityName); |
| | | |
| | | Integer managerId = (Integer) stringObjectMap.get("operatorId"); |
| | | if (managerId == null){ |
| | | |
| | | Integer type = (Integer) stringObjectMap.get("type"); |
| | | if (type == 1){ |
| | | // 平台 |
| | | stringObjectMap.put("account","平台"); |
| | | }else{ |
| | | if (managerId==0){ |
| | | stringObjectMap.put("account","平台"); |
| | | }else{ |
| | | TOperator operator = operatorService.getOne(new QueryWrapper<TOperator>().eq("id", managerId)); |
| | | if (ToolUtil.isNotEmpty(operator)){ |
| | | stringObjectMap.put("account",operator.getName()); |
| | | } |
| | | // 根据门店获取运营商id 查询运营商名称 |
| | | |
| | | // 查询运营商名称 |
| | | TOperator operator = operatorService.getOne(new QueryWrapper<TOperator>().eq("id", managerId)); |
| | | if (ToolUtil.isNotEmpty(operator)){ |
| | | stringObjectMap.put("account",operator.getName()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | return storeList; |
| | |
| | | </select> |
| | | <select id="querySiteListOfpage" resultType="java.util.Map"> |
| | | SELECT t1.id, t1.operatorId, t1.province, t1.city, t2.name,t1.ids,t1.name as siteName |
| | | ,t2.type as `type` |
| | | from t_site t1 |
| | | left join t_store t2 on t1.storeId =t2.id |
| | | where t1.state=1 and t2.state=1 and t1.isCanBeBooked = 0 and t1.reservation=0 |
| | |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompetition/onChange", function(data){ |
| | | if(data!=null){ |
| | | $.each(data, function(k,v) { |
| | | content += "<option value='"+v.name+"'>"+v.name+"</option>"; |
| | | content += "<option value='"+v.code+"'>"+v.name+"</option>"; |
| | | }); |
| | | $("#cCode").empty().append(content); |
| | | } |
| | |
| | | <label class="col-sm-3 control-label">排序:</label> |
| | | <div class="col-sm-9" style="display: flex;"> |
| | | <input style="width: 300px" class="form-control" value="${data.sort}" id="sort" name="sort" placeholder="请输入排序" type="number"> |
| | | <span style="margin-left: 5px;margin-top: 5px">数字越大 权重越大</span> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="form-group" style="margin-left: 13%;display: inline-flex;margin-top: 16px;" > |
| | | <label class="col-sm-2 control-label">*内容设置:</label> |
| | | <div class="col-sm-5" style="margin-left: -35px;"> |
| | | <textarea type="text/plain" id="editor" style="height: 300px;width: 800px;">${data.content}</textarea> |
| | | <textarea type="text/plain" id="editor" style="height: 300px;width: 800px;">${data.content}</textarea> |
| | | </div> |
| | | </div> |
| | | <div class="row btn-group-m-t"> |
| | |
| | | } |
| | | if(name !='0') { |
| | | if ($("#roleType").val() == 1) { |
| | | if ($('#type option:selected').text() == "详情"&&$('#type option:selected').text() == "指定商品"&&$('#type option:selected').text() == "指定折扣") { |
| | | if ($('#type option:selected').text() == "详情"||$('#type option:selected').text() == "指定商品"||$('#type option:selected').text() == "指定折扣") { |
| | | if ($("#pageId").val() == '') { |
| | | Feng.info("请输入跳转ID") |
| | | return; |
| | |
| | | } |
| | | } |
| | | } |
| | | if ( $("#roleType").val()==1){ |
| | | if($("#content").val()==''){ |
| | | if(data1.content ==''){ |
| | | data1.content = $("#content").val(); |
| | | Feng.info("请填写内容设置") |
| | | return; |
| | | } |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: Feng.ctxPath + "/tHomeModule/updateHomeModule", |
| | | type: "POST", |