Commit d429290c authored by wujiang's avatar wujiang

Merge branch 'developer' of http://36.40.66.175:5000/moa/jxdj_zx/amos-boot-zx-biz into developer

parents ef742465 5d9d0567
...@@ -221,6 +221,14 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD ...@@ -221,6 +221,14 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
throw new BadRequest("角色只能增加, 不能删除"); throw new BadRequest("角色只能增加, 不能删除");
} }
} }
//去掉空角色
List<Long> role = userDataZHDto.getRole();
if(CollectionUtil.isNotEmpty(role)){
if(role.contains(userGroupempty)){
logger.info("移除空角色");
role.remove(userGroupempty);
}
}
// 1 修改平台用户 // 1 修改平台用户
List<RoleModel> userRoleList = new ArrayList<>(); List<RoleModel> userRoleList = new ArrayList<>();
AgencyUserModel agencyUserModel = new AgencyUserModel(); AgencyUserModel agencyUserModel = new AgencyUserModel();
......
...@@ -187,16 +187,31 @@ public class TestController extends BaseController { ...@@ -187,16 +187,31 @@ public class TestController extends BaseController {
} }
} }
@TycloudOperation(ApiLevel = UserType.PUBLIC) @TycloudOperation(ApiLevel = UserType.PUBLIC, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "test2", notes = "test1", hidden = true) @ApiOperation(httpMethod = "GET", value = "insertMomentDataTest", notes = "insertMomentDataTest", hidden = true)
@GetMapping("/insertMomentData") @GetMapping("/insertMomentDataTest")
public void insertMomentData() { public void insertMomentData() {
try { try {
Date time = new Date(); Date time = new Date();
time = DateUtil.offsetMinute(time, -DateUtil.minute(time) % 10); time = DateUtil.offsetMinute(time, -DateUtil.minute(time) % 10);
String format = DateUtil.format(time, "yyyy-MM-dd HH:mm:00"); String format = DateUtil.format(time, "yyyy-MM-dd HH:mm:00");
time = DateUtil.parse(format, "yyyy-MM-dd HH:mm:00"); time = DateUtil.parse(format, "yyyy-MM-dd HH:mm:00");
tdengineTimeService.insertMomentDataNew(format); tdengineTimeService.insertMomentDataTest("2024-07-25 08:00:00");
} catch (Exception e) {
e.printStackTrace();
}
}
@TycloudOperation(ApiLevel = UserType.PUBLIC, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "insertMomentDataPvTest", notes = "insertMomentDataPvTest", hidden = true)
@GetMapping("/insertMomentDataPvTest")
public void insertMomentDataPvTest() {
try {
Date time = new Date();
time = DateUtil.offsetMinute(time, -DateUtil.minute(time) % 10);
String format = DateUtil.format(time, "yyyy-MM-dd HH:mm:00");
time = DateUtil.parse(format, "yyyy-MM-dd HH:mm:00");
tdengineTimeService.insertMomentDataPvTest("2024-07-25 08:00:00");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment