| | |
| | | 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); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | list = storeService.listAll(page,provinceCode,cityCode,name,phone,shopName,objectId); |
| | | } |
| | | page.setRecords(list); |
| | | return super.packForBT(page); |
| | |
| | | |
| | | }else { |
| | | TCity one = cityService.getOne(new LambdaQueryWrapper<TCity>().eq(TCity::getCode, pCode1)); |
| | | if (one !=null){ |
| | | tStore.setProvince(one.getName()); |
| | | tStore.setProvinceCode(one.getCode()); |
| | | } |
| | | TCity one1 = cityService.getOne(new LambdaQueryWrapper<TCity>().eq(TCity::getCode, cCode1)); |
| | | if (one1 !=null){ |
| | | tStore.setCity(one1.getName()); |
| | | tStore.setCityCode(one1.getCode()); |
| | | } |
| | | } |
| | | tStore.setStartTime(time.split(" - ")[0]); |
| | | tStore.setEndTime(time.split(" - ")[1]); |
| | | tStore.setIds(ids); |
| | | if (UserExt.getUser().getObjectType()==2){ |
| | | tStore.setType(2); |
| | | }else{ |
| | | tStore.setType(type); |
| | | } |
| | | |
| | | tStore.setOperatorId(yyId); |
| | | tStore.setState(1); |
| | | tStore.setCreateTime(new Date()); |
| | |
| | | user.setPassword(SecureUtil.md5("a123456")); |
| | | user.setObjectType(3); |
| | | user.setStatus(1); |
| | | user.setObjectId(tStore.getId()); |
| | | userMapper.insert(user); |
| | | tStore.setStoreStaffId(user.getId()); |
| | | tStore.setLon(lon); |
| | | tStore.setLat(lat); |
| | | tStore.setOperatorId(UserExt.getUser().getObjectId()); |
| | | storeService.save(tStore); |
| | | |
| | | |
| | | user.setObjectId(tStore.getId()); |
| | | userMapper.insert(user); |
| | | |
| | | |
| | | |
| | | |