|
|
|
@ -8,14 +8,18 @@ import cn.hutool.crypto.SecureUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.shxy.xymanager_common.bean.PermissionDetail;
|
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceBody;
|
|
|
|
|
import com.shxy.xymanager_common.config.CustomRsaProperties;
|
|
|
|
|
import com.shxy.xymanager_common.dto.*;
|
|
|
|
|
import com.shxy.xymanager_common.entity.*;
|
|
|
|
|
import com.shxy.xymanager_common.enums.CommonStatus;
|
|
|
|
|
import com.shxy.xymanager_common.exception.Asserts;
|
|
|
|
|
import com.shxy.xymanager_common.util.*;
|
|
|
|
|
import com.shxy.xymanager_common.vo.UpdateTowerVo;
|
|
|
|
|
import com.shxy.xymanager_dao.dao.*;
|
|
|
|
|
import com.shxy.xymanager_service.service.CacheService;
|
|
|
|
|
import com.shxy.xymanager_service.service.NewCacheService;
|
|
|
|
|
import com.shxy.xymanager_service.service.TowerService;
|
|
|
|
|
import com.shxy.xymanager_service.service.UserService;
|
|
|
|
|
import io.swagger.models.auth.In;
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
@ -66,6 +70,10 @@ class XymanagerAdminApplicationTests {
|
|
|
|
|
UserService userService;
|
|
|
|
|
@Autowired
|
|
|
|
|
NewCacheService newCacheService;
|
|
|
|
|
@Autowired
|
|
|
|
|
TowerDao towerDao;
|
|
|
|
|
@Autowired
|
|
|
|
|
TowerService towerService;
|
|
|
|
|
@Test
|
|
|
|
|
void contextLoads() {
|
|
|
|
|
|
|
|
|
@ -494,8 +502,18 @@ class XymanagerAdminApplicationTests {
|
|
|
|
|
//
|
|
|
|
|
// System.out.println(s);
|
|
|
|
|
|
|
|
|
|
PermissionDetail permissionDetailFull = newCacheService.getPermissionDetailOver(24);
|
|
|
|
|
System.out.println(permissionDetailFull.toString());
|
|
|
|
|
// PermissionDetail permissionDetailFull = newCacheService.getPermissionDetailOver(24);
|
|
|
|
|
// System.out.println(permissionDetailFull.toString());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UpdateTowerVo towers = new UpdateTowerVo();
|
|
|
|
|
towers.setId(2);
|
|
|
|
|
towers.setName("ceshsish");
|
|
|
|
|
towers.setLineId(108);
|
|
|
|
|
towers.setOrder(1);
|
|
|
|
|
towers.setAddress("838837");
|
|
|
|
|
ServiceBody<String> serviceBody = towerService.updateTower(towers);
|
|
|
|
|
System.out.println(serviceBody);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|