Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai
| | |
| | | JsDto get(Integer id); |
| | | |
| | | List<SelectDto> getSelect(); |
| | | |
| | | List<TStoreListVo> listAllStore(@Param("page") Page<TStoreListVo> page, @Param("provinceCode") String provinceCode, @Param("cityCode") String cityCode, @Param("name") String name, @Param("phone") String phone, @Param("shopName") String shopName, @Param("id") Integer id); |
| | | |
| | | } |
| | |
| | | @ResponseBody |
| | | public Object list(String provinceCode, String cityCode , String name, String phone,String shopName) { |
| | | Page<TStoreListVo> page = new PageFactory<TStoreListVo>().defaultPage(); |
| | | List<TStoreListVo> list = storeService.listAll(page,provinceCode,cityCode,name,phone,shopName); |
| | | String roleid = UserExt.getUser().getRoleid(); |
| | | List<TStoreListVo> list =new ArrayList<>(); |
| | | if("3".equals(roleid)){ |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | list = storeService.listAllStore(page,provinceCode,cityCode,name,phone,shopName,objectId); |
| | | }else { |
| | | list = storeService.listAll(page,provinceCode,cityCode,name,phone,shopName); |
| | | } |
| | | page.setRecords(list); |
| | | return super.packForBT(page); |
| | | } |
| | |
| | | JsDto get(Integer id); |
| | | |
| | | List<SelectDto> getSelect(); |
| | | |
| | | List<TStoreListVo> listAllStore(Page<TStoreListVo> page, String provinceCode, String cityCode, String name, String phone, String shopName, Integer objectId); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | public List<TStoreListVo> listAll(Page<TStoreListVo> page, String provinceCode, String cityCode, String name, String phone, String shopName) { |
| | | return this.baseMapper.listAll(page,provinceCode,cityCode,name,phone,shopName); |
| | | } |
| | | @Override |
| | | public List<TStoreListVo> listAllStore(Page<TStoreListVo> page, String provinceCode, String cityCode, String name, String phone, String shopName,Integer id) { |
| | | return this.baseMapper.listAllStore(page,provinceCode,cityCode,name,phone,shopName,id); |
| | | } |
| | | |
| | | /** |
| | | * 获取所有省 |
| | |
| | | |
| | | |
| | | </select> |
| | | <select id="listAllStore" resultType="com.dsh.guns.modular.system.model.TStoreListVo"> |
| | | select t1.*,t2.name userName,t2.phone userPhone,t3.name yysName from t_store t1 left join sys_user t2 on t1.storeStaffId = t2.id left join t_operator t3 on t1.operatorId = t3.id |
| | | where t1.id =#{id} |
| | | <if test="provinceCode !=null and provinceCode !=''"> |
| | | and t1.provinceCode = #{provinceCode} |
| | | </if> |
| | | <if test="cityCode !=null and cityCode !=''"> |
| | | and t1.cityCode = #{cityCode} |
| | | </if> |
| | | <if test="name !=null and name !=''"> |
| | | and t2.name like concat("%",#{name},"%") |
| | | </if> |
| | | <if test="phone !=null and phone !=''"> |
| | | and t2.phone like concat("%",#{phone},"%") |
| | | </if> |
| | | <if test="shopName !=null and shopName !=''"> |
| | | and t1.name like concat("%",#{shopName},"%") |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | </div> |
| | | </div> |
| | | @} |
| | | @if(role!='3'){ |
| | | <div class="col-sm-3"> |
| | | <#NameCon id="name" name="店长姓名" /> |
| | | </div> |
| | |
| | | <div class="col-sm-3"> |
| | | <#NameCon id="shopName" name="门店名称" /> |
| | | </div> |
| | | @} |
| | | @if(role!='3'){ |
| | | <div class="col-sm-3"> |
| | | <#button name="搜索" icon="fa-search" clickFun="TCompetition.search()"/> |
| | | <#button name="重置" icon="fa-trash" clickFun="TCompetition.resetSearch()" space="true"/> |
| | | </div> |
| | | @} |
| | | </div> |
| | | <div class="hidden-xs" id="TCompetitionTableToolbar" role="group"> |
| | | @if(role !='3'){ |
| | | <#button name="添加" icon="fa-plus" clickFun="TCompetition.openAddTCompetition()"/> |
| | | <#button name="编辑" icon="fa-edit" clickFun="TCompetition.openTCompetitionDetail()" space="true"/> |
| | | <#button name="冻结" icon="fa-remove" clickFun="TCompetition.freeze()" space="true"/> |
| | | <#button name="解冻" icon="fa-remove" clickFun="TCompetition.unfreeze()" space="true"/> |
| | | <#button name="查看详情" icon="fa-remove" clickFun="TCompetition.info()" space="true"/> |
| | | <#button name="重置密码" icon="fa-remove" clickFun="TCompetition.reload()" space="true"/> |
| | | @} |
| | | <#button name="免费福利" icon="fa-remove" clickFun="TCompetition.gift()" space="true"/> |
| | | <#button name="首页设置" icon="fa-remove" clickFun="TCompetition.indexSet()" space="true"/> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | @} |
| | | |
| | | @if(objectType !=3){ |
| | | <div class="col-sm-3"> |
| | | <#NameCon id="storeName" name="门店名称" /> |
| | | </div> |
| | | @} |
| | | |
| | | <div class="col-sm-3"> |
| | | <div class="input-group"> |
| | |
| | | <#NameCon id="name" name="场地名称" /> |
| | | </div> |
| | | |
| | | |
| | | @if(objectType !=3){ |
| | | <div class="col-sm-3"> |
| | | <div class="input-group"> |
| | | <div class="input-group-btn open"> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | @} |
| | | @if(objectType ==3){ |
| | | <div class="col-sm-3"> |
| | | <#NameCon id="storeName" name="门店名称" /> |
| | | </div> |
| | | @} |
| | | <div class="col-sm-3"> |
| | | <#button name="搜索" icon="fa-search" clickFun="TSite.search()"/> |
| | | <#button name="重置" icon="fa-trash" clickFun="TSite.resetSearch()" space="true"/> |
| | |
| | | @} |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <#input style="width: 300px" id="name" name="*场地名称" type="text"/> |
| | | <div class="form-group" > |
| | |
| | | // 门店名称 |
| | | queryData['storeName'] = $("#storeName").val(); |
| | | queryData['opId'] = $("#opId").val(); |
| | | queryData['storeName'] = $("#storeName").val(); |
| | | |
| | | TSite.table.refresh({query: queryData}); |
| | | }; |
| | |
| | | $("#name").val(""); |
| | | $("#insuranceEndTime").val(""); |
| | | $("#opId").val(""); |
| | | $("#storeName").val(""); |
| | | TSite.search(); |
| | | }; |
| | | |
| | |
| | | and t1.cityManagerId = #{query.objectId} |
| | | </if> |
| | | <if test="query.objectType == 3"> |
| | | and t2.storeStaffId = #{query.objectId} |
| | | and t2.id = #{query.objectId} |
| | | </if> |
| | | <if test="query.city!=null and query.city!= ''"> |
| | | and t1.cityCode = #{query.city} |