Merge remote-tracking branch 'origin/master'
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m44s
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m44s
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package org.dromara.property.api;
|
||||
|
||||
public interface RemoteVisitoreGetCodeInfoService {
|
||||
String getCodeInfo(String code);
|
||||
}
|
@@ -25,6 +25,12 @@ public interface RemoteDeviceService {
|
||||
*/
|
||||
Boolean updateDeviceState(RemoteSisDeviceManage item);
|
||||
|
||||
/**
|
||||
* 根据id查询的设备信息
|
||||
*
|
||||
*/
|
||||
RemoteSisDeviceManage queryDeviceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备通道信息
|
||||
*
|
||||
|
@@ -2,11 +2,17 @@ package org.dromara.sis.api.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 设备远程调用对象
|
||||
*/
|
||||
@Data
|
||||
public class RemoteSisDeviceManage {
|
||||
public class RemoteSisDeviceManage implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
@@ -63,8 +69,26 @@ public class RemoteSisDeviceManage {
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 楼层id
|
||||
*/
|
||||
private Long floorId;
|
||||
|
||||
/**
|
||||
* 是否支持人脸比对
|
||||
*/
|
||||
private Boolean isComparison;
|
||||
|
||||
/**
|
||||
* 设备经度
|
||||
*/
|
||||
private Double lon;
|
||||
|
||||
/**
|
||||
* 设备维度
|
||||
*/
|
||||
private Double lat;
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,107 @@
|
||||
package org.dromara.property.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.excel.utils.ExcelUtil;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.web.core.BaseController;
|
||||
import org.dromara.property.domain.bo.AppFunListBo;
|
||||
import org.dromara.property.domain.vo.AppFunListVo;
|
||||
import org.dromara.property.service.IAppFunListService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* APP功能列表
|
||||
* 前端访问路由地址为:/system/funList
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/funList")
|
||||
public class AppFunListController extends BaseController {
|
||||
|
||||
private final IAppFunListService appFunListService;
|
||||
|
||||
/**
|
||||
* 查询APP功能列表列表
|
||||
*/
|
||||
@SaCheckPermission("system:funList:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<AppFunListVo> list(AppFunListBo bo, PageQuery pageQuery) {
|
||||
return appFunListService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出APP功能列表列表
|
||||
*/
|
||||
@SaCheckPermission("system:funList:export")
|
||||
@Log(title = "APP功能列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(AppFunListBo bo, HttpServletResponse response) {
|
||||
List<AppFunListVo> list = appFunListService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "APP功能列表", AppFunListVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取APP功能列表详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@SaCheckPermission("system:funList:query")
|
||||
@GetMapping("/{id}")
|
||||
public R<AppFunListVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return R.ok(appFunListService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增APP功能列表
|
||||
*/
|
||||
@SaCheckPermission("system:funList:add")
|
||||
@Log(title = "APP功能列表", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody AppFunListBo bo) {
|
||||
return toAjax(appFunListService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改APP功能列表
|
||||
*/
|
||||
@SaCheckPermission("system:funList:edit")
|
||||
@Log(title = "APP功能列表", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody AppFunListBo bo) {
|
||||
return toAjax(appFunListService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除APP功能列表
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@SaCheckPermission("system:funList:remove")
|
||||
@Log(title = "APP功能列表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable("ids") Long[] ids) {
|
||||
return toAjax(appFunListService.deleteWithValidByIds(List.of(ids), true));
|
||||
}
|
||||
}
|
@@ -0,0 +1,106 @@
|
||||
package org.dromara.property.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.web.core.BaseController;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.excel.utils.ExcelUtil;
|
||||
import org.dromara.property.domain.vo.AttendanceArrangementAreaVo;
|
||||
import org.dromara.property.domain.bo.AttendanceArrangementAreaBo;
|
||||
import org.dromara.property.service.IAttendanceArrangementAreaService;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 区域排班中间
|
||||
* 前端访问路由地址为:/property/arrangementArea
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/arrangementArea")
|
||||
public class AttendanceArrangementAreaController extends BaseController {
|
||||
|
||||
private final IAttendanceArrangementAreaService attendanceArrangementAreaService;
|
||||
|
||||
/**
|
||||
* 查询区域排班中间列表
|
||||
*/
|
||||
@SaCheckPermission("property:arrangementArea:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<AttendanceArrangementAreaVo> list(AttendanceArrangementAreaBo bo, PageQuery pageQuery) {
|
||||
return attendanceArrangementAreaService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出区域排班中间列表
|
||||
*/
|
||||
@SaCheckPermission("property:arrangementArea:export")
|
||||
@Log(title = "区域排班中间", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(AttendanceArrangementAreaBo bo, HttpServletResponse response) {
|
||||
List<AttendanceArrangementAreaVo> list = attendanceArrangementAreaService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "区域排班中间", AttendanceArrangementAreaVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取区域排班中间详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@SaCheckPermission("property:arrangementArea:query")
|
||||
@GetMapping("/{id}")
|
||||
public R<AttendanceArrangementAreaVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return R.ok(attendanceArrangementAreaService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增区域排班中间
|
||||
*/
|
||||
@SaCheckPermission("property:arrangementArea:add")
|
||||
@Log(title = "区域排班中间", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody AttendanceArrangementAreaBo bo) {
|
||||
return toAjax(attendanceArrangementAreaService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改区域排班中间
|
||||
*/
|
||||
@SaCheckPermission("property:arrangementArea:edit")
|
||||
@Log(title = "区域排班中间", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody AttendanceArrangementAreaBo bo) {
|
||||
return toAjax(attendanceArrangementAreaService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除区域排班中间
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@SaCheckPermission("property:arrangementArea:remove")
|
||||
@Log(title = "区域排班中间", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable("ids") Long[] ids) {
|
||||
return toAjax(attendanceArrangementAreaService.deleteWithValidByIds(List.of(ids), true));
|
||||
}
|
||||
}
|
@@ -0,0 +1,106 @@
|
||||
package org.dromara.property.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.web.core.BaseController;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.excel.utils.ExcelUtil;
|
||||
import org.dromara.property.domain.vo.PopularActivitiesVo;
|
||||
import org.dromara.property.domain.bo.PopularActivitiesBo;
|
||||
import org.dromara.property.service.IPopularActivitiesService;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 热门活动
|
||||
* 前端访问路由地址为:/property/activities
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/activities")
|
||||
public class PopularActivitiesController extends BaseController {
|
||||
|
||||
private final IPopularActivitiesService popularActivitiesService;
|
||||
|
||||
/**
|
||||
* 查询热门活动列表
|
||||
*/
|
||||
// @SaCheckPermission("property:activities:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PopularActivitiesVo> list(PopularActivitiesBo bo, PageQuery pageQuery) {
|
||||
return popularActivitiesService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出热门活动列表
|
||||
*/
|
||||
@SaCheckPermission("property:activities:export")
|
||||
@Log(title = "热门活动", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PopularActivitiesBo bo, HttpServletResponse response) {
|
||||
List<PopularActivitiesVo> list = popularActivitiesService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "热门活动", PopularActivitiesVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取热门活动详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@SaCheckPermission("property:activities:query")
|
||||
@GetMapping("/{id}")
|
||||
public R<PopularActivitiesVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return R.ok(popularActivitiesService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增热门活动
|
||||
*/
|
||||
@SaCheckPermission("property:activities:add")
|
||||
@Log(title = "热门活动", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PopularActivitiesBo bo) {
|
||||
return toAjax(popularActivitiesService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改热门活动
|
||||
*/
|
||||
@SaCheckPermission("property:activities:edit")
|
||||
@Log(title = "热门活动", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PopularActivitiesBo bo) {
|
||||
return toAjax(popularActivitiesService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除热门活动
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@SaCheckPermission("property:activities:remove")
|
||||
@Log(title = "热门活动", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable("ids") Long[] ids) {
|
||||
return toAjax(popularActivitiesService.deleteWithValidByIds(List.of(ids), true));
|
||||
}
|
||||
}
|
@@ -0,0 +1,67 @@
|
||||
package org.dromara.property.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.dromara.common.tenant.core.TenantEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* APP功能列表对象 app_fun_list
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("app_fun_list")
|
||||
public class AppFunList extends TenantEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private Long roleid;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,41 @@
|
||||
package org.dromara.property.domain;
|
||||
|
||||
import org.dromara.common.tenant.core.TenantEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 区域排班中间对象 attendance_arrangement_area
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("attendance_arrangement_area")
|
||||
public class AttendanceArrangementArea extends TenantEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
private Long shceduleId;
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,68 @@
|
||||
package org.dromara.property.domain;
|
||||
|
||||
import org.dromara.common.tenant.core.TenantEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 热门活动对象 popular_activities
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("popular_activities")
|
||||
public class PopularActivities extends TenantEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
private String activeContent;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,49 @@
|
||||
package org.dromara.property.domain.bo;
|
||||
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import org.dromara.property.domain.AppFunList;
|
||||
|
||||
/**
|
||||
* APP功能列表业务对象 app_fun_list
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@AutoMapper(target = AppFunList.class, reverseConvertGenerate = false)
|
||||
public class AppFunListBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@NotNull(message = "主键不能为空", groups = { EditGroup.class })
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private Long roleid;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
private String url;
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
package org.dromara.property.domain.bo;
|
||||
|
||||
import org.dromara.property.domain.AttendanceArrangementArea;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* 区域排班中间业务对象 attendance_arrangement_area
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@AutoMapper(target = AttendanceArrangementArea.class, reverseConvertGenerate = false)
|
||||
public class AttendanceArrangementAreaBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@NotNull(message = "主键id不能为空", groups = { EditGroup.class })
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
private Long shceduleId;
|
||||
|
||||
|
||||
}
|
@@ -103,6 +103,7 @@ public class AttendanceArrangementBo extends BaseEntity {
|
||||
*/
|
||||
private List<AttendanceScheduleCycle> scheduleCycleList;
|
||||
|
||||
private List<Long> areaId;
|
||||
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,72 @@
|
||||
package org.dromara.property.domain.bo;
|
||||
|
||||
import org.dromara.property.domain.PopularActivities;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import jakarta.validation.constraints.*;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
/**
|
||||
* 热门活动业务对象 popular_activities
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@AutoMapper(target = PopularActivities.class, reverseConvertGenerate = false)
|
||||
public class PopularActivitiesBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@NotNull(message = "主键不能为空", groups = { EditGroup.class })
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
@NotBlank(message = "活动内容不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String activeContent;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
//@NotBlank(message = "状态(1.未开始 2.进行中 3.已结束)不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
@@ -58,7 +58,7 @@ public class TbVisitorManagementBo extends BaseEntity {
|
||||
/**
|
||||
* 拜访事由
|
||||
*/
|
||||
@NotBlank(message = "拜访事由不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
// @NotBlank(message = "拜访事由不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String visitingReason;
|
||||
|
||||
//@NotNull(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
@@ -93,7 +93,7 @@ public class TbVisitorManagementBo extends BaseEntity {
|
||||
/**
|
||||
* 预约车位(0:预约,1:不预约)
|
||||
*/
|
||||
@NotNull(message = "预约车位(0:预约,1:不预约)不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
// @NotNull(message = "预约车位(0:预约,1:不预约)不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long bookingParkingSpace;
|
||||
|
||||
/**
|
||||
@@ -104,7 +104,7 @@ public class TbVisitorManagementBo extends BaseEntity {
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
@NotBlank(message = "人脸图片不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
// @NotBlank(message = "人脸图片不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String facePictures;
|
||||
|
||||
/**
|
||||
|
@@ -0,0 +1,66 @@
|
||||
package org.dromara.property.domain.vo;
|
||||
|
||||
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import cn.idev.excel.annotation.ExcelProperty;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
import org.dromara.common.translation.annotation.Translation;
|
||||
import org.dromara.common.translation.constant.TransConstant;
|
||||
import org.dromara.property.domain.AppFunList;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* APP功能列表视图对象 app_fun_list
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
@AutoMapper(target = AppFunList.class)
|
||||
public class AppFunListVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ExcelProperty(value = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
@ExcelProperty(value = "角色id")
|
||||
private Long roleid;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
@ExcelProperty(value = "角色id")
|
||||
private String roleName;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ExcelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
@Translation(type = TransConstant.OSS_ID_TO_URL)
|
||||
@ExcelProperty(value = "icon")
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
@ExcelProperty(value = "url")
|
||||
private String url;
|
||||
|
||||
|
||||
}
|
@@ -7,6 +7,7 @@ import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||
import org.dromara.common.excel.convert.ExcelDictConvert;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
import org.dromara.sis.api.domain.RemoteSisDeviceManage;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
@@ -47,4 +48,5 @@ public class AttendanceAreaDeviceVo implements Serializable {
|
||||
private Long deviceManageId;
|
||||
|
||||
|
||||
private RemoteSisDeviceManage remoteSisDeviceManage;
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ public class AttendanceAreaVo implements Serializable {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String reamark;
|
||||
|
||||
private List<AttendanceAreaDevice> areaDevice;
|
||||
private List<AttendanceAreaDeviceVo> areaDevice;
|
||||
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,50 @@
|
||||
package org.dromara.property.domain.vo;
|
||||
|
||||
import org.dromara.property.domain.AttendanceArrangementArea;
|
||||
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import cn.idev.excel.annotation.ExcelProperty;
|
||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||
import org.dromara.common.excel.convert.ExcelDictConvert;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 区域排班中间视图对象 attendance_arrangement_area
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
@AutoMapper(target = AttendanceArrangementArea.class)
|
||||
public class AttendanceArrangementAreaVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ExcelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
@ExcelProperty(value = "区域id")
|
||||
private Long areaId;
|
||||
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
@ExcelProperty(value = "排班id")
|
||||
private Long shceduleId;
|
||||
|
||||
|
||||
}
|
@@ -96,7 +96,7 @@ public class AttendanceArrangementVo implements Serializable {
|
||||
//排班制
|
||||
private AttendanceScheduleCycle scheduleCycle;
|
||||
|
||||
private AttendanceArea attendanceArea;
|
||||
private List<AttendanceArea> areaList;
|
||||
|
||||
|
||||
}
|
||||
|
@@ -11,6 +11,7 @@ import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
@@ -89,5 +90,8 @@ public class AttendanceUserGroupVo implements Serializable {
|
||||
|
||||
private AttendanceArea attendanceArea;
|
||||
|
||||
private List<AttendanceArrangementArea> attendanceArrangementAreaList;
|
||||
|
||||
private List<AttendanceArea> attendanceAreaList;
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,93 @@
|
||||
package org.dromara.property.domain.vo;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.dromara.property.domain.PopularActivities;
|
||||
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import cn.idev.excel.annotation.ExcelProperty;
|
||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||
import org.dromara.common.excel.convert.ExcelDictConvert;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 热门活动视图对象 popular_activities
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
@AutoMapper(target = PopularActivities.class)
|
||||
public class PopularActivitiesVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ExcelProperty(value = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@ExcelProperty(value = "标题")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
@ExcelProperty(value = "头部照片")
|
||||
private String headImgUrl;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ExcelProperty(value = "开始时间")
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ExcelProperty(value = "结束时间")
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
@ExcelProperty(value = "活动内容")
|
||||
private String activeContent;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(dictType = "pro_activity_status")
|
||||
private String status;
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private Long createBy;
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createName;
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
@@ -137,6 +137,8 @@ public class TbVisitorManagementVo implements Serializable {
|
||||
@ExcelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
private String url;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,22 @@
|
||||
package org.dromara.property.dubbo;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.property.api.RemoteVisitoreGetCodeInfoService;
|
||||
import org.dromara.property.domain.bo.QrCodeInfo;
|
||||
|
||||
@DubboService
|
||||
@RequiredArgsConstructor
|
||||
public class RemoteVisitoreGetCodeInfo implements RemoteVisitoreGetCodeInfoService {
|
||||
|
||||
@Override
|
||||
public String getCodeInfo(String code) {
|
||||
QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY +"Qrcode" +code);
|
||||
if (info == null){
|
||||
return "";
|
||||
}
|
||||
return info.getUserid().toString();
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
package org.dromara.property.mapper;
|
||||
|
||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||
import org.dromara.property.domain.AppFunList;
|
||||
import org.dromara.property.domain.vo.AppFunListVo;
|
||||
|
||||
/**
|
||||
* APP功能列表Mapper接口
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
public interface AppFunListMapper extends BaseMapperPlus<AppFunList, AppFunListVo> {
|
||||
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
package org.dromara.property.mapper;
|
||||
|
||||
import org.dromara.property.domain.AttendanceArrangementArea;
|
||||
import org.dromara.property.domain.vo.AttendanceArrangementAreaVo;
|
||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 区域排班中间Mapper接口
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
public interface AttendanceArrangementAreaMapper extends BaseMapperPlus<AttendanceArrangementArea, AttendanceArrangementAreaVo> {
|
||||
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
package org.dromara.property.mapper;
|
||||
|
||||
import org.dromara.property.domain.PopularActivities;
|
||||
import org.dromara.property.domain.vo.PopularActivitiesVo;
|
||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 热门活动Mapper接口
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
public interface PopularActivitiesMapper extends BaseMapperPlus<PopularActivities, PopularActivitiesVo> {
|
||||
|
||||
}
|
@@ -0,0 +1,68 @@
|
||||
package org.dromara.property.service;
|
||||
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.property.domain.bo.AppFunListBo;
|
||||
import org.dromara.property.domain.vo.AppFunListVo;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* APP功能列表Service接口
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
public interface IAppFunListService {
|
||||
|
||||
/**
|
||||
* 查询APP功能列表
|
||||
*
|
||||
* @param id 主键
|
||||
* @return APP功能列表
|
||||
*/
|
||||
AppFunListVo queryById(Long id);
|
||||
|
||||
/**
|
||||
* 分页查询APP功能列表列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @param pageQuery 分页参数
|
||||
* @return APP功能列表分页列表
|
||||
*/
|
||||
TableDataInfo<AppFunListVo> queryPageList(AppFunListBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询符合条件的APP功能列表列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @return APP功能列表列表
|
||||
*/
|
||||
List<AppFunListVo> queryList(AppFunListBo bo);
|
||||
|
||||
/**
|
||||
* 新增APP功能列表
|
||||
*
|
||||
* @param bo APP功能列表
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
Boolean insertByBo(AppFunListBo bo);
|
||||
|
||||
/**
|
||||
* 修改APP功能列表
|
||||
*
|
||||
* @param bo APP功能列表
|
||||
* @return 是否修改成功
|
||||
*/
|
||||
Boolean updateByBo(AppFunListBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除APP功能列表信息
|
||||
*
|
||||
* @param ids 待删除的主键集合
|
||||
* @param isValid 是否进行有效性校验
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package org.dromara.property.service;
|
||||
|
||||
import org.dromara.property.domain.AttendanceArrangementArea;
|
||||
import org.dromara.property.domain.vo.AttendanceArrangementAreaVo;
|
||||
import org.dromara.property.domain.bo.AttendanceArrangementAreaBo;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 区域排班中间Service接口
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
public interface IAttendanceArrangementAreaService {
|
||||
|
||||
/**
|
||||
* 查询区域排班中间
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 区域排班中间
|
||||
*/
|
||||
AttendanceArrangementAreaVo queryById(Long id);
|
||||
|
||||
/**
|
||||
* 分页查询区域排班中间列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @param pageQuery 分页参数
|
||||
* @return 区域排班中间分页列表
|
||||
*/
|
||||
TableDataInfo<AttendanceArrangementAreaVo> queryPageList(AttendanceArrangementAreaBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询符合条件的区域排班中间列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @return 区域排班中间列表
|
||||
*/
|
||||
List<AttendanceArrangementAreaVo> queryList(AttendanceArrangementAreaBo bo);
|
||||
|
||||
/**
|
||||
* 新增区域排班中间
|
||||
*
|
||||
* @param bo 区域排班中间
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
Boolean insertByBo(AttendanceArrangementAreaBo bo);
|
||||
|
||||
/**
|
||||
* 修改区域排班中间
|
||||
*
|
||||
* @param bo 区域排班中间
|
||||
* @return 是否修改成功
|
||||
*/
|
||||
Boolean updateByBo(AttendanceArrangementAreaBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除区域排班中间信息
|
||||
*
|
||||
* @param ids 待删除的主键集合
|
||||
* @param isValid 是否进行有效性校验
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package org.dromara.property.service;
|
||||
|
||||
import org.dromara.property.domain.PopularActivities;
|
||||
import org.dromara.property.domain.vo.PopularActivitiesVo;
|
||||
import org.dromara.property.domain.bo.PopularActivitiesBo;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 热门活动Service接口
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
public interface IPopularActivitiesService {
|
||||
|
||||
/**
|
||||
* 查询热门活动
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 热门活动
|
||||
*/
|
||||
PopularActivitiesVo queryById(Long id);
|
||||
|
||||
/**
|
||||
* 分页查询热门活动列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @param pageQuery 分页参数
|
||||
* @return 热门活动分页列表
|
||||
*/
|
||||
TableDataInfo<PopularActivitiesVo> queryPageList(PopularActivitiesBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询符合条件的热门活动列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @return 热门活动列表
|
||||
*/
|
||||
List<PopularActivitiesVo> queryList(PopularActivitiesBo bo);
|
||||
|
||||
/**
|
||||
* 新增热门活动
|
||||
*
|
||||
* @param bo 热门活动
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
Boolean insertByBo(PopularActivitiesBo bo);
|
||||
|
||||
/**
|
||||
* 修改热门活动
|
||||
*
|
||||
* @param bo 热门活动
|
||||
* @return 是否修改成功
|
||||
*/
|
||||
Boolean updateByBo(PopularActivitiesBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除热门活动信息
|
||||
*
|
||||
* @param ids 待删除的主键集合
|
||||
* @param isValid 是否进行有效性校验
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
@@ -11,6 +11,7 @@ import org.dromara.property.domain.vo.ServiceWorkOrdersVo;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 【工单处理】Service接口
|
||||
@@ -87,4 +88,10 @@ public interface IServiceWorkOrdersService {
|
||||
*/
|
||||
Boolean insertMServiceWorkOrdersBo(MServiceWorkOrdersBo bo);
|
||||
|
||||
/**
|
||||
* 查询工单处理人枚举
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
List<Map<Object, Object>> getServiceWorkOrdersHandler(String type);
|
||||
}
|
||||
|
@@ -0,0 +1,142 @@
|
||||
package org.dromara.property.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.property.domain.AppFunList;
|
||||
import org.dromara.property.domain.bo.AppFunListBo;
|
||||
import org.dromara.property.domain.vo.AppFunListVo;
|
||||
import org.dromara.property.mapper.AppFunListMapper;
|
||||
import org.dromara.property.service.IAppFunListService;
|
||||
import org.dromara.system.api.RemoteUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* APP功能列表Service业务层处理
|
||||
*
|
||||
* @author mocheng
|
||||
* @date 2025-07-23
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class AppFunListServiceImpl implements IAppFunListService {
|
||||
|
||||
private final AppFunListMapper baseMapper;
|
||||
|
||||
@DubboReference
|
||||
private final RemoteUserService remoteUserService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询APP功能列表
|
||||
*
|
||||
* @param id 主键
|
||||
* @return APP功能列表
|
||||
*/
|
||||
@Override
|
||||
public AppFunListVo queryById(Long id){
|
||||
return baseMapper.selectVoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询APP功能列表列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @param pageQuery 分页参数
|
||||
* @return APP功能列表分页列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<AppFunListVo> queryPageList(AppFunListBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<AppFunList> lqw = buildQueryWrapper(bo);
|
||||
Page<AppFunListVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
result.getRecords().forEach(r -> r.setRoleName(remoteUserService.selectUserNameById(r.getRoleid())));
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询符合条件的APP功能列表列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @return APP功能列表列表
|
||||
*/
|
||||
@Override
|
||||
public List<AppFunListVo> queryList(AppFunListBo bo) {
|
||||
LambdaQueryWrapper<AppFunList> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<AppFunList> buildQueryWrapper(AppFunListBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<AppFunList> lqw = Wrappers.lambdaQuery();
|
||||
lqw.orderByAsc(AppFunList::getId);
|
||||
lqw.eq(bo.getRoleid() != null, AppFunList::getRoleid, bo.getRoleid());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getName()), AppFunList::getName, bo.getName());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getIcon()), AppFunList::getIcon, bo.getIcon());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getUrl()), AppFunList::getUrl, bo.getUrl());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增APP功能列表
|
||||
*
|
||||
* @param bo APP功能列表
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(AppFunListBo bo) {
|
||||
AppFunList add = MapstructUtils.convert(bo, AppFunList.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setId(add.getId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改APP功能列表
|
||||
*
|
||||
* @param bo APP功能列表
|
||||
* @return 是否修改成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(AppFunListBo bo) {
|
||||
AppFunList update = MapstructUtils.convert(bo, AppFunList.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(AppFunList entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验并批量删除APP功能列表信息
|
||||
*
|
||||
* @param ids 待删除的主键集合
|
||||
* @param isValid 是否进行有效性校验
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteByIds(ids) > 0;
|
||||
}
|
||||
}
|
@@ -1,29 +1,31 @@
|
||||
package org.dromara.property.service.impl;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.property.domain.AttendanceAreaDevice;
|
||||
import org.dromara.property.mapper.AttendanceAreaDeviceMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.dromara.property.domain.bo.AttendanceAreaBo;
|
||||
import org.dromara.property.domain.vo.AttendanceAreaVo;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.property.domain.AttendanceArea;
|
||||
import org.dromara.property.domain.AttendanceAreaDevice;
|
||||
import org.dromara.property.domain.bo.AttendanceAreaBo;
|
||||
import org.dromara.property.domain.vo.AttendanceAreaDeviceVo;
|
||||
import org.dromara.property.domain.vo.AttendanceAreaVo;
|
||||
import org.dromara.property.mapper.AttendanceAreaDeviceMapper;
|
||||
import org.dromara.property.mapper.AttendanceAreaMapper;
|
||||
import org.dromara.property.service.IAttendanceAreaService;
|
||||
import org.dromara.sis.api.RemoteDeviceService;
|
||||
import org.dromara.sis.api.domain.RemoteSisDeviceManage;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 区域区域管理Service业务层处理
|
||||
@@ -40,6 +42,10 @@ public class AttendanceAreaServiceImpl implements IAttendanceAreaService {
|
||||
|
||||
private final AttendanceAreaDeviceMapper areaDeviceMapper;
|
||||
|
||||
// private TdDeviceTypeServiceImpl deviceTypeService;
|
||||
|
||||
@DubboReference
|
||||
private RemoteDeviceService remoteDeviceService;
|
||||
/**
|
||||
* 查询区域区域管理
|
||||
*
|
||||
@@ -47,7 +53,7 @@ public class AttendanceAreaServiceImpl implements IAttendanceAreaService {
|
||||
* @return 区域区域管理
|
||||
*/
|
||||
@Override
|
||||
public AttendanceAreaVo queryById(Long id){
|
||||
public AttendanceAreaVo queryById(Long id) {
|
||||
return baseMapper.selectVoById(id);
|
||||
}
|
||||
|
||||
@@ -64,11 +70,17 @@ public class AttendanceAreaServiceImpl implements IAttendanceAreaService {
|
||||
Page<AttendanceAreaVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
|
||||
Page<AttendanceAreaVo> attendanceAreaVoPage = result.setRecords(result.getRecords().stream().map(vo -> {
|
||||
//获取areaId
|
||||
Long areaId = vo.getId();
|
||||
//根据areaId查询中间表数据
|
||||
List<AttendanceAreaDevice> attendanceAreaDeviceList = areaDeviceMapper.selectList(Wrappers.<AttendanceAreaDevice>lambdaQuery().eq(AttendanceAreaDevice::getAreaId, areaId));
|
||||
vo.setAreaDevice(attendanceAreaDeviceList);
|
||||
//获取areaId
|
||||
Long areaId = vo.getId();
|
||||
//根据areaId查询中间表数据
|
||||
List<AttendanceAreaDeviceVo> attendanceAreaDeviceList =areaDeviceMapper.selectVoList(Wrappers.<AttendanceAreaDevice>lambdaQuery().eq(AttendanceAreaDevice::getAreaId, areaId));
|
||||
// List<AttendanceAreaDeviceVo> attendanceAreaDeviceList = areaDeviceMapper.selectList(Wrappers.<AttendanceAreaDevice>lambdaQuery().eq(AttendanceAreaDevice::getAreaId, areaId));
|
||||
attendanceAreaDeviceList.forEach(item -> {
|
||||
//根据deviceManageId查询设备数据
|
||||
RemoteSisDeviceManage remoteSisDeviceManage = remoteDeviceService.queryDeviceById(item.getDeviceManageId());
|
||||
item.setRemoteSisDeviceManage(remoteSisDeviceManage);
|
||||
});
|
||||
vo.setAreaDevice(attendanceAreaDeviceList);
|
||||
return vo;
|
||||
}
|
||||
).toList());
|
||||
@@ -163,7 +175,7 @@ public class AttendanceAreaServiceImpl implements IAttendanceAreaService {
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(AttendanceArea entity){
|
||||
private void validEntityBeforeSave(AttendanceArea entity) {
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
@@ -177,7 +189,7 @@ public class AttendanceAreaServiceImpl implements IAttendanceAreaService {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
if (isValid) {
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,133 @@
|
||||
package org.dromara.property.service.impl;
|
||||
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.dromara.property.domain.bo.AttendanceArrangementAreaBo;
|
||||
import org.dromara.property.domain.vo.AttendanceArrangementAreaVo;
|
||||
import org.dromara.property.domain.AttendanceArrangementArea;
|
||||
import org.dromara.property.mapper.AttendanceArrangementAreaMapper;
|
||||
import org.dromara.property.service.IAttendanceArrangementAreaService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 区域排班中间Service业务层处理
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-18
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class AttendanceArrangementAreaServiceImpl implements IAttendanceArrangementAreaService {
|
||||
|
||||
private final AttendanceArrangementAreaMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询区域排班中间
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 区域排班中间
|
||||
*/
|
||||
@Override
|
||||
public AttendanceArrangementAreaVo queryById(Long id){
|
||||
return baseMapper.selectVoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询区域排班中间列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @param pageQuery 分页参数
|
||||
* @return 区域排班中间分页列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<AttendanceArrangementAreaVo> queryPageList(AttendanceArrangementAreaBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<AttendanceArrangementArea> lqw = buildQueryWrapper(bo);
|
||||
Page<AttendanceArrangementAreaVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询符合条件的区域排班中间列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @return 区域排班中间列表
|
||||
*/
|
||||
@Override
|
||||
public List<AttendanceArrangementAreaVo> queryList(AttendanceArrangementAreaBo bo) {
|
||||
LambdaQueryWrapper<AttendanceArrangementArea> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<AttendanceArrangementArea> buildQueryWrapper(AttendanceArrangementAreaBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<AttendanceArrangementArea> lqw = Wrappers.lambdaQuery();
|
||||
lqw.orderByAsc(AttendanceArrangementArea::getId);
|
||||
lqw.eq(bo.getAreaId() != null, AttendanceArrangementArea::getAreaId, bo.getAreaId());
|
||||
lqw.eq(bo.getShceduleId() != null, AttendanceArrangementArea::getShceduleId, bo.getShceduleId());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增区域排班中间
|
||||
*
|
||||
* @param bo 区域排班中间
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(AttendanceArrangementAreaBo bo) {
|
||||
AttendanceArrangementArea add = MapstructUtils.convert(bo, AttendanceArrangementArea.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setId(add.getId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改区域排班中间
|
||||
*
|
||||
* @param bo 区域排班中间
|
||||
* @return 是否修改成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(AttendanceArrangementAreaBo bo) {
|
||||
AttendanceArrangementArea update = MapstructUtils.convert(bo, AttendanceArrangementArea.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(AttendanceArrangementArea entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验并批量删除区域排班中间信息
|
||||
*
|
||||
* @param ids 待删除的主键集合
|
||||
* @param isValid 是否进行有效性校验
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteByIds(ids) > 0;
|
||||
}
|
||||
}
|
@@ -55,23 +55,29 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
|
||||
private final AttendanceAreaMapper attendanceAreaMapper;
|
||||
|
||||
private final AttendanceArrangementAreaMapper attendanceArrangementAreaMapper;
|
||||
|
||||
@DubboReference
|
||||
private RemoteUserService remoteUserService;
|
||||
|
||||
/**
|
||||
* 查询排班
|
||||
* 根据id查询排班详情
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 排班
|
||||
*/
|
||||
@Override
|
||||
public AttendanceArrangementVo queryById(Long id) {
|
||||
//1.查询排班
|
||||
AttendanceArrangementVo vo = baseMapper.selectVoById(id);
|
||||
//2.查询考勤组信息
|
||||
//根据id查询出groupId
|
||||
Long groupId = baseMapper.selectById(id).getGroupId();
|
||||
//根据groupId查询出考勤组信息
|
||||
AttendanceGroup attendanceGroup = attendanceGroupMapper.selectById(groupId);
|
||||
vo.setAttendanceGroup(attendanceGroup);
|
||||
|
||||
//3.查询人员表信息
|
||||
//根据id查询排班人员信息
|
||||
List<AttendanceUserGroupVo> userGroupList = userGroupMapper.selectVoList(Wrappers.<AttendanceUserGroup>lambdaQuery().eq(AttendanceUserGroup::getScheduleId, id));
|
||||
//查询所有的用户信息
|
||||
@@ -84,9 +90,18 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
//根据deptId查询出部门名称
|
||||
String deptName = remoteUserService.selectDeptNamesByIds(Arrays.asList(deptId)).get(deptId);
|
||||
userGroup.setDeptName(deptName);
|
||||
});
|
||||
});
|
||||
//将排班人员信息添加到排班信息中
|
||||
vo.setUserGroupList(userGroupList);
|
||||
|
||||
// //4.根据id查询区域信息
|
||||
// List<AttendanceArrangementArea> arrangementAreaList = attendanceArrangementAreaMapper.selectList(Wrappers.<AttendanceArrangementArea>lambdaQuery().eq(AttendanceArrangementArea::getShceduleId, id));
|
||||
// //过滤出排班的区域id
|
||||
// List<Long> areaIdList = arrangementAreaList.stream().map(AttendanceArrangementArea::getAreaId).collect(Collectors.toList());
|
||||
// //根据区域id查询出区域信息
|
||||
// List<AttendanceArea> areaList = attendanceAreaMapper.selectList(Wrappers.<AttendanceArea>lambdaQuery().in(AttendanceArea::getId, areaIdList));
|
||||
// //6.将区域信息添加到排班信息中
|
||||
// vo.setAreaList(areaList);
|
||||
return vo;
|
||||
}
|
||||
|
||||
@@ -120,18 +135,27 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
//根据排班的id查询出排班的人员详细信息
|
||||
// List<AttendanceUserGroup> userGroupList = userGroupMapper.selectList(Wrappers.<AttendanceUserGroup>lambdaQuery().in(AttendanceUserGroup::getScheduleId, scheduleId));
|
||||
List<AttendanceUserGroupVo> userGroupVoList = userGroupMapper.selectVoList(Wrappers.<AttendanceUserGroup>lambdaQuery().in(AttendanceUserGroup::getScheduleId, scheduleId));
|
||||
//通过userGroupList查询出人员的详细信息
|
||||
|
||||
// 2.查询区域信息
|
||||
// 根据shceduleId查询出区域排班的中间表的areaId
|
||||
List<Long> areaIdList = attendanceArrangementAreaMapper.selectList(Wrappers.<AttendanceArrangementArea>lambdaQuery().eq(AttendanceArrangementArea::getShceduleId, scheduleId)).stream().map(AttendanceArrangementArea::getAreaId).collect(Collectors.toList());
|
||||
//根据区域id查询出区域信息
|
||||
List<AttendanceArea> areaList = attendanceAreaMapper.selectList(Wrappers.<AttendanceArea>lambdaQuery().in(AttendanceArea::getId, areaIdList));
|
||||
//6.将区域信息添加到排班信息中
|
||||
vo.setAreaList(areaList);
|
||||
|
||||
|
||||
//通过userGroupList查询出人员的详细信息
|
||||
//将userList存到userGroupList中
|
||||
userGroupVoList.forEach(userGroup -> {
|
||||
|
||||
RemoteUserVo userInfoById = remoteUserService.getUserInfoById(userGroup.getEmployeeId());
|
||||
userGroup.setRemoteUserVo(userInfoById);
|
||||
//获取deptId
|
||||
Long deptId = userGroup.getDeptId();
|
||||
//根据deptId查询出部门名称
|
||||
String deptName = remoteUserService.selectDeptNamesByIds(Arrays.asList(deptId)).get(deptId);
|
||||
userGroup.setDeptName(deptName);
|
||||
RemoteUserVo userInfoById = remoteUserService.getUserInfoById(userGroup.getEmployeeId());
|
||||
userGroup.setRemoteUserVo(userInfoById);
|
||||
//获取deptId
|
||||
Long deptId = userGroup.getDeptId();
|
||||
//根据deptId查询出部门名称
|
||||
String deptName = remoteUserService.selectDeptNamesByIds(Arrays.asList(deptId)).get(deptId);
|
||||
userGroup.setDeptName(deptName);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -476,10 +500,19 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
}
|
||||
|
||||
judgeDate(bo, add);
|
||||
|
||||
|
||||
//取出当前新增的排班的id
|
||||
Long ArrangementId = add.getId();
|
||||
List<Long> areaId = bo.getAreaId();
|
||||
|
||||
//向区域排班中间表插入数据
|
||||
areaId.forEach(area -> {
|
||||
AttendanceArrangementArea attendanceArrangementArea = new AttendanceArrangementArea();
|
||||
attendanceArrangementArea.setAreaId(area);
|
||||
attendanceArrangementArea.setShceduleId(ArrangementId);
|
||||
attendanceArrangementAreaMapper.insert(attendanceArrangementArea);
|
||||
});
|
||||
|
||||
|
||||
//用获取到的排班id向attendanceUserGroup表中插入数据
|
||||
List<AttendanceUserGroup> userGroupList = bo.getUserGroupList();
|
||||
for (AttendanceUserGroup userGroup : userGroupList) {
|
||||
@@ -522,6 +555,7 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
AttendanceArrangement update = MapstructUtils.convert(bo, AttendanceArrangement.class);
|
||||
validEntityBeforeSave(update);
|
||||
|
||||
//1.更新人员组信息
|
||||
//取出当前排班的id
|
||||
assert update != null;
|
||||
Long ArrangementId = update.getId();
|
||||
@@ -534,6 +568,7 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
.eq(AttendanceUserGroup::getScheduleId, ArrangementId));
|
||||
}
|
||||
|
||||
//2.更新部门信息
|
||||
//根据排班id获取部门id
|
||||
List<Long> deptIdList = userGroupMapper.selectList(Wrappers.<AttendanceUserGroup>lambdaQuery().eq(AttendanceUserGroup::getScheduleId, ArrangementId))
|
||||
.stream().map(AttendanceUserGroup::getDeptId).toList();
|
||||
@@ -550,7 +585,6 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
//根据old查询出结束时间
|
||||
LocalDate oldEndDate = old.getEndDate();
|
||||
|
||||
|
||||
//用获取到的排班id向attendanceUserGroup表中批量插入数据
|
||||
List<AttendanceUserGroup> userGroupList = bo.getUserGroupList();
|
||||
for (AttendanceUserGroup userGroup : userGroupList) {
|
||||
@@ -560,6 +594,26 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
}
|
||||
userGroupMapper.insertBatch(userGroupList);
|
||||
|
||||
|
||||
//2.更新区域信息
|
||||
//根据排班id获取区域id
|
||||
List<Long> areaIdList = attendanceArrangementAreaMapper.selectList(Wrappers.<AttendanceArrangementArea>lambdaQuery().eq(AttendanceArrangementArea::getShceduleId, ArrangementId))
|
||||
.stream().map(AttendanceArrangementArea::getAreaId).toList();
|
||||
if (!areaIdList.isEmpty()) {
|
||||
//根据areaId和ArrangementId删除attendanceAreaGroup表中的数据
|
||||
attendanceArrangementAreaMapper.delete(Wrappers.<AttendanceArrangementArea>lambdaQuery().in(AttendanceArrangementArea::getAreaId, areaIdList)
|
||||
.eq(AttendanceArrangementArea::getShceduleId, ArrangementId));
|
||||
}
|
||||
|
||||
//向区域排班中间表插入数据
|
||||
List<Long> newAreaId = bo.getAreaId();
|
||||
newAreaId.forEach(area -> {
|
||||
AttendanceArrangementArea attendanceArrangementArea = new AttendanceArrangementArea();
|
||||
attendanceArrangementArea.setAreaId(area);
|
||||
attendanceArrangementArea.setShceduleId(bo.getId());
|
||||
attendanceArrangementAreaMapper.insert(attendanceArrangementArea);
|
||||
});
|
||||
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
@@ -627,6 +681,8 @@ public class AttendanceArrangementServiceImpl implements IAttendanceArrangementS
|
||||
|
||||
//根据获取的id删除attendanceUserGroup表中的数据
|
||||
userGroupMapper.delete(Wrappers.<AttendanceUserGroup>lambdaQuery().in(AttendanceUserGroup::getScheduleId, idList));
|
||||
//根据id删除区域排班中间表中的数据
|
||||
attendanceArrangementAreaMapper.delete(Wrappers.<AttendanceArrangementArea>lambdaQuery().in(AttendanceArrangementArea::getShceduleId, idList));
|
||||
return baseMapper.deleteByIds(ids) > 0;
|
||||
}
|
||||
|
||||
|
@@ -52,6 +52,8 @@ public class AttendanceUserGroupServiceImpl implements IAttendanceUserGroupServi
|
||||
|
||||
private final AttendanceAreaMapper attendanceAreaMapper;
|
||||
|
||||
private final AttendanceArrangementAreaMapper attendanceArrangementAreaMapper;
|
||||
|
||||
@DubboReference
|
||||
private RemoteUserService remoteUserService;
|
||||
|
||||
@@ -209,12 +211,6 @@ public class AttendanceUserGroupServiceImpl implements IAttendanceUserGroupServi
|
||||
String deptName = remoteUserService.selectDeptNamesByIds(Arrays.asList(deptId)).get(deptId);
|
||||
vo.setDeptName(deptName);
|
||||
|
||||
|
||||
// //通过employeeId查询出用户的部门信息
|
||||
// String deptInfo = remoteDeptService.selectDeptNameByIds(String.valueOf(vo.getDeptId()));
|
||||
// vo.setDeptName(deptInfo);
|
||||
|
||||
|
||||
//根据scheduleId查询出排班的详细信息
|
||||
AttendanceArrangement attendanceArrangement = arrangementMapper.selectOne(Wrappers.<AttendanceArrangement>lambdaQuery().eq(AttendanceArrangement::getId, scheduleId));
|
||||
// 假设每个vo只有一个scheduleId
|
||||
@@ -222,6 +218,7 @@ public class AttendanceUserGroupServiceImpl implements IAttendanceUserGroupServi
|
||||
AttendanceArrangement arrangement = arrangementMapper.selectOne(Wrappers.<AttendanceArrangement>lambdaQuery().eq(AttendanceArrangement::getId, userGroupListScheduleId));
|
||||
vo.setAttendanceArrangement(arrangement);
|
||||
|
||||
|
||||
// 根据scheduleId过滤出groupId
|
||||
Long groupId = arrangement.getGroupId();
|
||||
// 根据groupId查询出考勤组的详细信息
|
||||
@@ -229,11 +226,13 @@ public class AttendanceUserGroupServiceImpl implements IAttendanceUserGroupServi
|
||||
vo.setAttendanceGroup(attendanceGroup);
|
||||
|
||||
|
||||
// //3.根据id查询区域信息
|
||||
// Long areaId = arrangement.getAreaId();
|
||||
// //根据区域id查询出区域的详细信息
|
||||
// AttendanceArea attendanceArea = attendanceAreaMapper.selectById(areaId);
|
||||
// vo.setAttendanceArea(attendanceArea);
|
||||
// // 根据scheduleId查询出区域排班中间表
|
||||
// List<AttendanceArrangementArea> attendanceArrangementAreaList = attendanceArrangementAreaMapper.selectList(Wrappers.<AttendanceArrangementArea>lambdaQuery().eq(AttendanceArrangementArea::getShceduleId, scheduleId));
|
||||
// vo.setAttendanceArrangementAreaList(attendanceArrangementAreaList);
|
||||
// //根据中间表查询出区域信息
|
||||
// List<Long> areaIdList = attendanceArrangementAreaList.stream().map(AttendanceArrangementArea::getAreaId).collect(Collectors.toList());
|
||||
// List<AttendanceArea> attendanceAreaList = attendanceAreaMapper.selectBatchIds(areaIdList);
|
||||
// vo.setAttendanceAreaList(attendanceAreaList);
|
||||
|
||||
// 判断当前考勤组的班制是固定班制还是排班制
|
||||
if (Objects.equals(attendanceGroup.getAttendanceType(), StatusConstant.FIXEDSCHEDULE)) {
|
||||
|
@@ -1,38 +1,30 @@
|
||||
package org.dromara.property.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import jodd.util.StringUtil;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.property.domain.ResidentPerson;
|
||||
import org.dromara.property.domain.vo.ResidentUnitVo;
|
||||
import org.dromara.property.mapper.ResidentPersonMapper;
|
||||
import org.dromara.resource.api.RemoteMessageService;
|
||||
import org.dromara.system.api.model.LoginUser;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.dromara.property.domain.CustomerNotices;
|
||||
import org.dromara.property.domain.bo.CustomerNoticesBo;
|
||||
import org.dromara.property.domain.vo.CustomerNoticesVo;
|
||||
import org.dromara.property.domain.CustomerNotices;
|
||||
import org.dromara.property.mapper.CustomerNoticesMapper;
|
||||
import org.dromara.property.service.ICustomerNoticesService;
|
||||
import org.dromara.resource.api.RemoteMessageService;
|
||||
import org.dromara.system.api.RemoteUserService;
|
||||
import org.dromara.system.api.domain.vo.RemoteUserVo;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -47,9 +39,10 @@ import java.util.stream.Collectors;
|
||||
public class CustomerNoticesServiceImpl implements ICustomerNoticesService {
|
||||
|
||||
private final CustomerNoticesMapper baseMapper;
|
||||
private final ResidentPersonMapper residentPersonMapper;
|
||||
@DubboReference
|
||||
private RemoteMessageService remoteMessageService;
|
||||
@DubboReference
|
||||
private RemoteUserService remoteUserService;
|
||||
|
||||
/**
|
||||
* 查询客户服务-通知公告
|
||||
@@ -59,23 +52,26 @@ public class CustomerNoticesServiceImpl implements ICustomerNoticesService {
|
||||
*/
|
||||
@Override
|
||||
public CustomerNoticesVo queryById(Long id) {
|
||||
List<ResidentPerson> residentPeople = residentPersonMapper.selectList();
|
||||
CustomerNoticesVo customerNoticesVo = baseMapper.selectVoById(id);
|
||||
if (CollUtil.isNotEmpty(residentPeople)) {
|
||||
ResidentPerson residentPerson = residentPeople.stream()
|
||||
.filter(vo -> vo.getId() != null && vo.getId().equals(customerNoticesVo.getIssuers())).findFirst().orElse(null);
|
||||
customerNoticesVo.setIssuersName(residentPerson.getUserName());
|
||||
String nickName = remoteUserService.selectNicknameById(customerNoticesVo.getIssuers());
|
||||
customerNoticesVo.setIssuersName(nickName);
|
||||
if (ObjectUtil.isNotEmpty(customerNoticesVo.getNoticePersion())) {
|
||||
List<String> list = Arrays.asList(customerNoticesVo.getNoticePersion().split(","));
|
||||
List<ResidentPerson> filteredList = residentPeople.stream()
|
||||
.filter(person -> list.contains(person.getId().toString()))
|
||||
List<Long> idList = Arrays.stream(customerNoticesVo.getNoticePersion().split(","))
|
||||
.map(String::trim)
|
||||
.filter(StringUtils::isNotBlank)
|
||||
.filter(s -> s.matches("\\d+")) // 确保是数字格式
|
||||
.map(Long::valueOf)
|
||||
.collect(Collectors.toList());
|
||||
String usernames = filteredList.stream()
|
||||
.map(ResidentPerson::getUserName) // 假设ResidentPerson类有一个getUserName方法
|
||||
List<RemoteUserVo> remoteUserVos = remoteUserService.selectListByIds(idList);
|
||||
List<RemoteUserVo> userVo = remoteUserVos.stream()
|
||||
.filter(person -> idList.contains(person.getUserId()))
|
||||
.collect(Collectors.toList());
|
||||
String usernames = userVo.stream()
|
||||
.map(RemoteUserVo::getNickName)
|
||||
// 假设ResidentPerson类有一个getUserName方法
|
||||
.collect(Collectors.joining(","));
|
||||
customerNoticesVo.setNoticePersionName(StringUtils.isNotBlank(usernames)?usernames:null);
|
||||
customerNoticesVo.setNoticePersionName(usernames);
|
||||
}
|
||||
}
|
||||
return customerNoticesVo;
|
||||
}
|
||||
|
||||
@@ -90,24 +86,51 @@ public class CustomerNoticesServiceImpl implements ICustomerNoticesService {
|
||||
public TableDataInfo<CustomerNoticesVo> queryPageList(CustomerNoticesBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<CustomerNotices> lqw = buildQueryWrapper(bo);
|
||||
Page<CustomerNoticesVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
|
||||
// 将通知人字段和发布人字段装到一个list中,这两个字段都是用户id,放在一个list<Long>中
|
||||
List<Long> allUserIds = new ArrayList<>();
|
||||
if (CollUtil.isNotEmpty(result.getRecords())) {
|
||||
List<ResidentPerson> residentPeople = residentPersonMapper.selectList();
|
||||
if (CollUtil.isNotEmpty(residentPeople)) {
|
||||
// 提取发布人ID
|
||||
List<Long> issuerIds = result.getRecords().stream()
|
||||
.filter(vo -> ObjectUtil.isNotEmpty(vo.getIssuers()))
|
||||
.map(CustomerNoticesVo::getIssuers)
|
||||
.distinct()
|
||||
.collect(Collectors.toList());
|
||||
allUserIds.addAll(issuerIds);
|
||||
|
||||
// 提取所有通知人ID
|
||||
List<Long> noticePersonIds = result.getRecords().stream()
|
||||
.filter(vo -> StringUtils.isNotBlank(vo.getNoticePersion()))
|
||||
.flatMap(vo -> Arrays.stream(vo.getNoticePersion().split(",")))
|
||||
.filter(StringUtils::isNotBlank)
|
||||
.map(String::trim)
|
||||
.distinct()
|
||||
.map(Long::valueOf)
|
||||
.collect(Collectors.toList());
|
||||
allUserIds.addAll(noticePersonIds);
|
||||
// 去重
|
||||
List<Long> uniqueUserIds = allUserIds.stream()
|
||||
.distinct()
|
||||
.collect(Collectors.toList());
|
||||
List<RemoteUserVo> remoteUserVos = remoteUserService.selectListByIds(uniqueUserIds);
|
||||
if (CollUtil.isNotEmpty(remoteUserVos)) {
|
||||
result.getRecords().stream().forEach(s -> {
|
||||
ResidentPerson residentPerson = residentPeople.stream()
|
||||
.filter(vo -> vo.getId() != null && vo.getId().equals(s.getIssuers())).findFirst().orElse(null);
|
||||
s.setIssuersName(residentPerson.getUserName());
|
||||
RemoteUserVo remoteUserVo = remoteUserVos.stream()
|
||||
.filter(vo -> vo.getUserId() != null && vo.getUserId().equals(s.getIssuers())).findFirst().orElse(null);
|
||||
if(ObjectUtil.isNotEmpty(remoteUserVo)){
|
||||
s.setIssuersName(remoteUserVo.getNickName());
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(s.getNoticePersion())) {
|
||||
List<String> list = Arrays.asList(s.getNoticePersion().split(","));
|
||||
List<ResidentPerson> filteredList = residentPeople.stream()
|
||||
.filter(person -> list.contains(person.getId().toString()))
|
||||
List<RemoteUserVo> userVo = remoteUserVos.stream()
|
||||
.filter(person -> list.contains(person.getUserId().toString()))
|
||||
.collect(Collectors.toList());
|
||||
String usernames = filteredList.stream()
|
||||
.map(ResidentPerson::getUserName) // 假设ResidentPerson类有一个getUserName方法
|
||||
String usernames = userVo.stream()
|
||||
.map(RemoteUserVo::getNickName)
|
||||
// 假设ResidentPerson类有一个getUserName方法
|
||||
.collect(Collectors.joining(","));
|
||||
s.setIssuersName(usernames);
|
||||
s.setNoticePersionName(usernames);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -152,6 +175,7 @@ public class CustomerNoticesServiceImpl implements ICustomerNoticesService {
|
||||
public Boolean insertByBo(CustomerNoticesBo bo) {
|
||||
CustomerNotices add = MapstructUtils.convert(bo, CustomerNotices.class);
|
||||
validEntityBeforeSave(add);
|
||||
add.setIssuers(LoginHelper.getUserId());
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setId(add.getId());
|
||||
@@ -188,11 +212,6 @@ public class CustomerNoticesServiceImpl implements ICustomerNoticesService {
|
||||
*/
|
||||
private void validEntityBeforeSave(CustomerNotices entity) {
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
LoginUser user = LoginHelper.getLoginUser();
|
||||
ResidentPerson residentPerson = residentPersonMapper.selectOne(new LambdaQueryWrapper<ResidentPerson>()
|
||||
.eq(ResidentPerson::getUserId, user.getUserId()));
|
||||
Assert.isTrue(ObjectUtil.isNotEmpty(residentPerson), "该发布人未入住");
|
||||
entity.setIssuers(residentPerson.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -5,10 +5,7 @@ import org.dromara.property.domain.enums.BookingPayStatusEnum;
|
||||
import org.dromara.property.domain.enums.BookingStatusEnum;
|
||||
import org.dromara.property.domain.enums.MeetAttachStatusEnum;
|
||||
import org.dromara.property.domain.enums.MeetStatusEnum;
|
||||
import org.dromara.property.service.EnumFetcherService;
|
||||
import org.dromara.property.service.IMeetAttachService;
|
||||
import org.dromara.property.service.IMeetBookingService;
|
||||
import org.dromara.property.service.IMeetService;
|
||||
import org.dromara.property.service.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -32,6 +29,8 @@ public class EnumFetcherServiceImpl implements EnumFetcherService {
|
||||
private IMeetAttachService meetAttachService;
|
||||
@Autowired
|
||||
private IMeetBookingService meetBookingService;
|
||||
@Autowired
|
||||
private IServiceWorkOrdersService serviceWorkOrdersService;
|
||||
|
||||
@Override
|
||||
public List<Map<Object, Object>> getEnumValues(String type) {
|
||||
@@ -54,6 +53,8 @@ public class EnumFetcherServiceImpl implements EnumFetcherService {
|
||||
return getMeetBookingPayStatus();
|
||||
case "getMeetBookingStatus":
|
||||
return getMeetBookingStatus();
|
||||
case "getServiceWorkOrdersHandler":
|
||||
return serviceWorkOrdersService.getServiceWorkOrdersHandler(type);
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown type: " + type);
|
||||
}
|
||||
|
@@ -0,0 +1,177 @@
|
||||
package org.dromara.property.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.property.domain.vo.CustomerNoticesVo;
|
||||
import org.dromara.system.api.RemoteUserService;
|
||||
import org.dromara.system.api.domain.vo.RemoteUserVo;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.dromara.property.domain.bo.PopularActivitiesBo;
|
||||
import org.dromara.property.domain.vo.PopularActivitiesVo;
|
||||
import org.dromara.property.domain.PopularActivities;
|
||||
import org.dromara.property.mapper.PopularActivitiesMapper;
|
||||
import org.dromara.property.service.IPopularActivitiesService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
import java.util.logging.Handler;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 热门活动Service业务层处理
|
||||
*
|
||||
* @author LionLi
|
||||
* @date 2025-08-19
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class PopularActivitiesServiceImpl implements IPopularActivitiesService {
|
||||
|
||||
private final PopularActivitiesMapper baseMapper;
|
||||
@DubboReference
|
||||
private RemoteUserService remoteUserService;
|
||||
|
||||
/**
|
||||
* 查询热门活动
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 热门活动
|
||||
*/
|
||||
@Override
|
||||
public PopularActivitiesVo queryById(Long id) {
|
||||
PopularActivitiesVo popularActivitiesVo = baseMapper.selectVoById(id);
|
||||
popularActivitiesVo.setCreateName(remoteUserService.selectUserNameById(popularActivitiesVo.getCreateBy()));
|
||||
return popularActivitiesVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询热门活动列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @param pageQuery 分页参数
|
||||
* @return 热门活动分页列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<PopularActivitiesVo> queryPageList(PopularActivitiesBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<PopularActivities> lqw = buildQueryWrapper(bo);
|
||||
Page<PopularActivitiesVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
// 提取发布人ID
|
||||
List<Long> allUserIds = new ArrayList<>();
|
||||
if (CollUtil.isNotEmpty(result.getRecords())) {
|
||||
List<Long> createIds = result.getRecords().stream()
|
||||
.filter(vo -> ObjectUtil.isNotEmpty(vo.getCreateBy()))
|
||||
.map(PopularActivitiesVo::getCreateBy)
|
||||
.distinct()
|
||||
.collect(Collectors.toList());
|
||||
allUserIds.addAll(createIds);
|
||||
}
|
||||
List<RemoteUserVo> remoteUserVos = remoteUserService.selectListByIds(allUserIds);
|
||||
result.getRecords().stream().forEach(s -> {
|
||||
handlerData(s, remoteUserVos);
|
||||
});
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
private void handlerData(PopularActivitiesVo popularActivitiesVo, List<RemoteUserVo> remoteUserVos) {
|
||||
if (ObjectUtil.isNotEmpty(popularActivitiesVo.getCreateBy()) && CollUtil.isNotEmpty(remoteUserVos)) {
|
||||
// 从remoteUserVos中寻找对应的createby和userid相等的
|
||||
RemoteUserVo remoteUserVo = remoteUserVos.stream()
|
||||
.filter(user -> user.getUserId() != null && user.getUserId().equals(popularActivitiesVo.getCreateBy()))
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(remoteUserVo)) {
|
||||
popularActivitiesVo.setCreateName(remoteUserVo.getNickName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询符合条件的热门活动列表
|
||||
*
|
||||
* @param bo 查询条件
|
||||
* @return 热门活动列表
|
||||
*/
|
||||
@Override
|
||||
public List<PopularActivitiesVo> queryList(PopularActivitiesBo bo) {
|
||||
LambdaQueryWrapper<PopularActivities> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<PopularActivities> buildQueryWrapper(PopularActivitiesBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<PopularActivities> lqw = Wrappers.lambdaQuery();
|
||||
lqw.orderByAsc(PopularActivities::getId);
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getTitle()), PopularActivities::getTitle, bo.getTitle());
|
||||
lqw.eq(bo.getStartTime() != null, PopularActivities::getStartTime, bo.getStartTime());
|
||||
lqw.eq(bo.getEndTime() != null, PopularActivities::getEndTime, bo.getEndTime());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), PopularActivities::getStatus, bo.getStatus());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSearchValue()), PopularActivities::getSearchValue, bo.getSearchValue());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增热门活动
|
||||
*
|
||||
* @param bo 热门活动
|
||||
* @return 是否新增成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(PopularActivitiesBo bo) {
|
||||
PopularActivities add = MapstructUtils.convert(bo, PopularActivities.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setId(add.getId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改热门活动
|
||||
*
|
||||
* @param bo 热门活动
|
||||
* @return 是否修改成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(PopularActivitiesBo bo) {
|
||||
PopularActivities update = MapstructUtils.convert(bo, PopularActivities.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(PopularActivities entity) {
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验并批量删除热门活动信息
|
||||
*
|
||||
* @param ids 待删除的主键集合
|
||||
* @param isValid 是否进行有效性校验
|
||||
* @return 是否删除成功
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if (isValid) {
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteByIds(ids) > 0;
|
||||
}
|
||||
}
|
@@ -17,10 +17,7 @@ import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.property.domain.ResidentPerson;
|
||||
import org.dromara.property.domain.ServiceWorkOrders;
|
||||
import org.dromara.property.domain.ServiceWorkOrdersRecord;
|
||||
import org.dromara.property.domain.ServiceWorkOrdersType;
|
||||
import org.dromara.property.domain.*;
|
||||
import org.dromara.property.domain.bo.ServiceWorkOrdersBo;
|
||||
import org.dromara.property.domain.bo.mobile.MServiceWorkOrdersBo;
|
||||
import org.dromara.property.domain.vo.*;
|
||||
@@ -168,7 +165,10 @@ public class ServiceWorkOrdersServiceImpl implements IServiceWorkOrdersService {
|
||||
.map(ServiceWorkOrdersType::getId)
|
||||
.collect(Collectors.toList());
|
||||
typeIds.add(bo.getType());
|
||||
List<String> statusList = Arrays.asList(bo.getStatus().split(","));
|
||||
List<String> statusList = new ArrayList<>();
|
||||
if(StringUtils.isNotBlank(bo.getStatus())){
|
||||
statusList = Arrays.asList(bo.getStatus().split(","));
|
||||
}
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<ServiceWorkOrders> lqw = Wrappers.lambdaQuery();
|
||||
lqw.orderByAsc(ServiceWorkOrders::getId);
|
||||
@@ -518,5 +518,31 @@ public class ServiceWorkOrdersServiceImpl implements IServiceWorkOrdersService {
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
public List<ServiceWorkOrders> getList() {
|
||||
LambdaQueryWrapper<ServiceWorkOrders> serviceWorkOrdersWrapper = new LambdaQueryWrapper<>();
|
||||
return baseMapper.selectList(serviceWorkOrdersWrapper);
|
||||
|
||||
}
|
||||
@Override
|
||||
public List<Map<Object, Object>> getServiceWorkOrdersHandler(String type) {
|
||||
return switch (type) {
|
||||
case "getServiceWorkOrdersHandler" -> getList().stream()
|
||||
.map(ServiceWorkOrders::getHandler)
|
||||
.filter(Objects::nonNull)
|
||||
.distinct()
|
||||
.map(handler -> {
|
||||
Map<Object, Object> map = new HashMap<>();
|
||||
map.put("value", handler);
|
||||
// 获取处理人详细信息
|
||||
RemoteUserVo userInfo = remoteUserService.getUserInfoById(Long.valueOf(handler));
|
||||
map.put("name", ObjectUtil.isNotNull(userInfo) ? userInfo.getNickName() : handler);
|
||||
return map;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
|
||||
default -> throw new IllegalArgumentException("Unknown type: " + type);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -15,10 +15,12 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.property.domain.bo.QrCodeInfo;
|
||||
import org.dromara.resource.api.RemoteFileService;
|
||||
import org.dromara.sis.api.RemoteVisitorService;
|
||||
import org.dromara.sis.api.domain.RemoteVisitor;
|
||||
import org.dromara.system.api.RemoteUserService;
|
||||
import org.dromara.system.api.domain.vo.RemoteUserVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.dromara.property.domain.bo.TbVisitorManagementBo;
|
||||
import org.dromara.property.domain.vo.TbVisitorManagementVo;
|
||||
@@ -49,6 +51,10 @@ public class TbVisitorManagementServiceImpl implements ITbVisitorManagementServi
|
||||
@DubboReference
|
||||
private RemoteVisitorService remoteVisitorService;
|
||||
|
||||
@DubboReference
|
||||
private RemoteFileService remoteFileService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询访客管理
|
||||
*
|
||||
@@ -57,7 +63,18 @@ public class TbVisitorManagementServiceImpl implements ITbVisitorManagementServi
|
||||
*/
|
||||
@Override
|
||||
public TbVisitorManagementVo queryById(Long id) {
|
||||
return baseMapper.selectVoById(id);
|
||||
// TbVisitorManagementVo tbVisitorManagementVo = baseMapper.selectVoById(id);
|
||||
//获取ossId
|
||||
TbVisitorManagementVo tbVisitorManagementVo = baseMapper.selectVoById(id);
|
||||
if (tbVisitorManagementVo.getFacePictures() == null) {
|
||||
return baseMapper.selectVoById(id);
|
||||
} else {
|
||||
String facePictures = tbVisitorManagementVo.getFacePictures();
|
||||
String url = remoteFileService.selectUrlByIds(facePictures);
|
||||
tbVisitorManagementVo.setUrl(url);
|
||||
|
||||
return baseMapper.selectVoById(id);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,6 +140,11 @@ public class TbVisitorManagementServiceImpl implements ITbVisitorManagementServi
|
||||
add.setTenantId(userInfoById.getTenantId());
|
||||
add.setCreateBy(userInfoById.getUserId());
|
||||
add.setUpdateById(userInfoById.getUserId());
|
||||
|
||||
// //文件上传时,获取ossId
|
||||
// String ossId = String.valueOf(remoteFileService.uploadImg(bo.getFacePictures().getBytes()).getOssId());
|
||||
// add.setFacePictures(ossId);
|
||||
|
||||
add.setUpdateBy(userInfoById.getUserId());
|
||||
add.setCreateDept(userInfoById.getDeptId());
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
@@ -147,6 +169,11 @@ public class TbVisitorManagementServiceImpl implements ITbVisitorManagementServi
|
||||
public Boolean insertVistorManagementByBo(TbVisitorManagementBo bo) {
|
||||
// QrCodeInfo info = RedisUtils.getCacheObject("Qrcode" + bo.getQrCodeId());
|
||||
TbVisitorManagement add = MapstructUtils.convert(bo, TbVisitorManagement.class);
|
||||
|
||||
//文件上传时,获取ossId
|
||||
// String ossId = String.valueOf(remoteFileService.uploadImg(bo.getFacePictures().getBytes()).getOssId());
|
||||
// add.setFacePictures(ossId);
|
||||
|
||||
validEntityBeforeSave(add);
|
||||
// add.setCreateById(info.getUserid());
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
|
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.dromara.property.mapper.PopularActivitiesMapper">
|
||||
|
||||
</mapper>
|
@@ -24,4 +24,5 @@ public interface CommonBeanCovert {
|
||||
|
||||
List<RemoteSdkChannel> sdkChannelEntity2Remote(List<DeviceInfo.DeviceChannelInfo> sdkChannels);
|
||||
|
||||
RemoteSisDeviceManage entities2Remote(SisDeviceManage sisDeviceManage);
|
||||
}
|
||||
|
@@ -3,6 +3,7 @@ package org.dromara.sis.dubbo;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.dromara.sis.api.RemoteDeviceService;
|
||||
import org.dromara.sis.api.domain.RemoteSdkChannel;
|
||||
import org.dromara.sis.api.domain.RemoteSisDeviceChannel;
|
||||
@@ -14,6 +15,7 @@ import org.dromara.sis.sdk.hik.HikSdkConstans;
|
||||
import org.dromara.sis.service.ISisDeviceChannelService;
|
||||
import org.dromara.sis.service.ISisDeviceManageService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -25,6 +27,8 @@ import java.util.List;
|
||||
@Slf4j
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
@DubboService
|
||||
public class RemoteDeviceServiceImpl implements RemoteDeviceService {
|
||||
|
||||
private final ISisDeviceManageService deviceManageService;
|
||||
@@ -41,6 +45,12 @@ public class RemoteDeviceServiceImpl implements RemoteDeviceService {
|
||||
return deviceManageService.updateDeviceState(CommonBeanCovert.INSTANCE.Remote2Entity(item));
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemoteSisDeviceManage queryDeviceById(Long id) {
|
||||
SisDeviceManage sisDeviceManage = deviceManageService.queryDeviceById(id);
|
||||
return CommonBeanCovert.INSTANCE.entities2Remote(sisDeviceManage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RemoteSisDeviceChannel> queryDeviceChannels(String deviceIp) {
|
||||
List<SisDeviceChannel> channels = deviceChannelService.queryByDeviceIp(deviceIp);
|
||||
|
@@ -4,6 +4,7 @@ import jakarta.validation.constraints.NotEmpty;
|
||||
import org.dromara.common.core.domain.TreeNode;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.sis.api.domain.RemoteSisDeviceChannel;
|
||||
import org.dromara.sis.domain.SisDeviceChannel;
|
||||
import org.dromara.sis.domain.bo.SisDeviceChannelBo;
|
||||
import org.dromara.sis.domain.bo.SisDeviceManageBo;
|
||||
@@ -138,4 +139,5 @@ public interface ISisDeviceChannelService {
|
||||
* @return 返回通道信息
|
||||
*/
|
||||
SisDeviceChannel queryChannels(@NotEmpty String deviceIp, @NotEmpty String channelNo);
|
||||
|
||||
}
|
||||
|
@@ -3,6 +3,7 @@ package org.dromara.sis.service;
|
||||
import org.dromara.common.core.domain.TreeNode;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.sis.api.domain.RemoteSisDeviceManage;
|
||||
import org.dromara.sis.domain.SisDeviceManage;
|
||||
import org.dromara.sis.domain.bo.SisDeviceManageBo;
|
||||
import org.dromara.sis.domain.vo.SisDeviceManageVo;
|
||||
@@ -26,6 +27,7 @@ public interface ISisDeviceManageService {
|
||||
*/
|
||||
SisDeviceManageVo queryById(Long id);
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询设备管理列表
|
||||
*
|
||||
@@ -95,6 +97,9 @@ public interface ISisDeviceManageService {
|
||||
*/
|
||||
List<SisDeviceManage> queryHikDevices();
|
||||
|
||||
|
||||
SisDeviceManage queryDeviceById(Long id);
|
||||
|
||||
/**
|
||||
* 更新设备状态信息
|
||||
* @param sisDeviceManage 设备信息
|
||||
|
@@ -13,6 +13,7 @@ import org.dromara.common.core.utils.SpringUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.sis.api.domain.RemoteSisDeviceManage;
|
||||
import org.dromara.sis.api.enums.FactoryNoEnum;
|
||||
import org.dromara.sis.domain.SisDeviceManage;
|
||||
import org.dromara.sis.domain.bo.SisDeviceManageBo;
|
||||
@@ -57,6 +58,7 @@ public class SisDeviceManageServiceImpl implements ISisDeviceManageService {
|
||||
return deviceManageVo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询设备管理列表
|
||||
*
|
||||
@@ -222,6 +224,12 @@ public class SisDeviceManageServiceImpl implements ISisDeviceManageService {
|
||||
return baseMapper.selectList(lqw);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public SisDeviceManage queryDeviceById(Long id) {
|
||||
return baseMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean updateDeviceState(SisDeviceManage sisDeviceManage) {
|
||||
LambdaUpdateWrapper<SisDeviceManage> lqw = Wrappers.lambdaUpdate();
|
||||
|
@@ -117,6 +117,10 @@
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-api-resource</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>property-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
@@ -4,6 +4,8 @@ package org.dromara.resource.controller;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.QueryGroup;
|
||||
@@ -13,6 +15,7 @@ import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.property.api.RemoteVisitoreGetCodeInfoService;
|
||||
import org.dromara.resource.domain.QrCodeInfo;
|
||||
import org.dromara.resource.domain.bo.SysOssBo;
|
||||
import org.dromara.resource.domain.vo.SysOssUploadVo;
|
||||
@@ -41,7 +44,8 @@ import java.util.List;
|
||||
public class SysOssController extends BaseController {
|
||||
|
||||
private final ISysOssService iSysOssService;
|
||||
|
||||
@DubboReference
|
||||
private RemoteVisitoreGetCodeInfoService remoteVisitoreGetCodeInfoService;
|
||||
/**
|
||||
* 查询OSS对象存储列表
|
||||
*/
|
||||
@@ -96,12 +100,13 @@ public class SysOssController extends BaseController {
|
||||
if (ObjectUtil.isNull(file)) {
|
||||
return R.fail("上传文件不能为空");
|
||||
}
|
||||
QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY+"Qrcode" + code);
|
||||
if (info==null){
|
||||
String codeInfo = remoteVisitoreGetCodeInfoService.getCodeInfo(code);
|
||||
// QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY+"Qrcode" + code);
|
||||
if (codeInfo.isEmpty()){
|
||||
return R.fail("二维码已过期");
|
||||
}
|
||||
|
||||
SysOssVo oss = iSysOssService.qrupload(file,info);
|
||||
SysOssVo oss = iSysOssService.qrupload(file,codeInfo);
|
||||
SysOssUploadVo uploadVo = new SysOssUploadVo();
|
||||
uploadVo.setUrl(oss.getUrl());
|
||||
uploadVo.setFileName(oss.getOriginalName());
|
||||
|
@@ -67,7 +67,7 @@ public interface ISysOssService {
|
||||
* @param file 要上传的 MultipartFile 对象
|
||||
* @return 上传成功后的 SysOssVo 对象,包含文件信息
|
||||
*/
|
||||
SysOssVo qrupload(MultipartFile file, QrCodeInfo qrCodeInfo);
|
||||
SysOssVo qrupload(MultipartFile file, String qrCodeInfo);
|
||||
|
||||
/**
|
||||
* 上传文件到对象存储服务,并保存文件信息到数据库
|
||||
|
@@ -200,7 +200,7 @@ public class SysOssServiceImpl implements ISysOssService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysOssVo qrupload(MultipartFile file, QrCodeInfo info) {
|
||||
public SysOssVo qrupload(MultipartFile file, String info) {
|
||||
String originalfileName = file.getOriginalFilename();
|
||||
String suffix = StringUtils.substring(originalfileName, originalfileName.lastIndexOf("."), originalfileName.length());
|
||||
OssClient storage = OssFactory.instance();
|
||||
@@ -242,14 +242,14 @@ public class SysOssServiceImpl implements ISysOssService {
|
||||
return this.matchingUrl(sysOssVo);
|
||||
}
|
||||
|
||||
private SysOssVo buildResultEntityQr(String originalfileName, String suffix, String configKey, UploadResult uploadResult,QrCodeInfo info) {
|
||||
private SysOssVo buildResultEntityQr(String originalfileName, String suffix, String configKey, UploadResult uploadResult,String info) {
|
||||
SysOss oss = new SysOss();
|
||||
oss.setUrl(uploadResult.getUrl());
|
||||
oss.setFileSuffix(suffix);
|
||||
oss.setFileName(uploadResult.getFilename());
|
||||
oss.setOriginalName(originalfileName);
|
||||
oss.setService(configKey);
|
||||
oss.setCreateBy(info.getUserid());
|
||||
oss.setCreateBy(Long.valueOf(info));
|
||||
oss.setCreateTime(new Date());
|
||||
baseMapper.insert(oss);
|
||||
SysOssVo sysOssVo = MapstructUtils.convert(oss, SysOssVo.class);
|
||||
|
@@ -40,8 +40,8 @@ spring.sql.init.platform=mysql
|
||||
db.num=1
|
||||
|
||||
### Connect URL of DB:
|
||||
db.url.0=jdbc:mysql://127.0.0.1:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
|
||||
db.user.0=root
|
||||
db.url.0=jdbc:mysql://192.168.24.101:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
|
||||
db.user.0=by
|
||||
db.password.0=123456
|
||||
|
||||
### the maximum retry times for push
|
||||
|
Reference in New Issue
Block a user