diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml
deleted file mode 100644
index 9a657a4b..00000000
--- a/.gitea/workflows/dev.yml
+++ /dev/null
@@ -1,205 +0,0 @@
-run-name: ${{ gitea.actor }} 构建镜像并推送(不含JAR依赖上传)🚀
-on:
- push:
- branches:
- - main
-
-jobs:
- build-parent-pom:
- runs-on: ubuntu
- steps:
- - name: 拉取代码仓库
- uses: http://git.missmoc.top/mocheng/checkout@v4
-
- - name: 配置环境变量(绝对路径)
- run: |
- export JAVA_HOME="/java17/java17"
- export MAVEN_HOME="/maven/apache-maven-3.9.11"
-
- if [ ! -f "$JAVA_HOME/bin/java" ]; then
- echo "错误:JDK可执行文件不存在于 $JAVA_HOME/bin/java"
- exit 1
- fi
- if [ ! -f "$MAVEN_HOME/bin/mvn" ]; then
- echo "错误:Maven可执行文件不存在于 $MAVEN_HOME/bin/mvn"
- exit 1
- fi
-
- echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
- echo "$JAVA_HOME/bin" >> $GITHUB_PATH
- echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV
- echo "$MAVEN_HOME/bin" >> $GITHUB_PATH
-
- "$JAVA_HOME/bin/java" -version
- "$MAVEN_HOME/bin/mvn" -v
-
- - name: 配置Maven仓库
- run: |
- mkdir -p ~/.m2
- cat > ~/.m2/settings.xml << EOF
-
-
- /root/.m2/repository
-
-
- multi-repo
-
-
- local-repo
- file:///root/.m2/repository
-
-
- aliyun-public
- https://maven.aliyun.com/repository/public
-
-
-
-
-
- multi-repo
-
-
- EOF
-
- - name: 构建主POM(仅本地安装,不上传)
- run: |
- MAIN_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/pom.xml"
- if [ ! -f "$MAIN_POM_ABSOLUTE_PATH" ]; then
- echo "错误:主POM文件不存在"
- exit 1
- fi
-
- retries=3
- count=0
- until "$MAVEN_HOME/bin/mvn" clean install -U -DskipTests -f "$MAIN_POM_ABSOLUTE_PATH"; do
- count=$((count + 1))
- if [ $count -ge $retries ]; then
- echo "错误:主POM构建失败"
- exit 1
- fi
- sleep 10
- done
-
- # build-common-modules:
- # needs: build-parent-pom
- # runs-on: ubuntu
- # steps:
- # - name: 拉取代码仓库
- # uses: http://git.missmoc.top/mocheng/checkout@v4
-
- # - name: 配置环境变量
- # run: |
- # export JAVA_HOME="/java17/java17"
- # export MAVEN_HOME="/maven/apache-maven-3.9.11"
- # echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
- # echo "$JAVA_HOME/bin" >> $GITHUB_PATH
- # echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV
- # echo "$MAVEN_HOME/bin" >> $GITHUB_PATH
-
- # - name: 构建通用模块(仅本地使用,不上传)
- # run: |
- # COMMON_MODULES=(
- # "ruoyi-common"
- # "ruoyi-api"
- # "ruoyi-common-bom"
- # "ruoyi-common-alibaba-bom"
- # "ruoyi-api-bom"
- # )
-
- # for module in "${COMMON_MODULES[@]}"; do
- # MODULE_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${module}/pom.xml"
- # if [ ! -f "$MODULE_POM_ABSOLUTE_PATH" ]; then
- # echo "警告:模块 $module 不存在,跳过"
- # continue
- # fi
-
- # retries=3
- # count=0
- # until "$MAVEN_HOME/bin/mvn" clean compile install -U -DskipTests -f "$MODULE_POM_ABSOLUTE_PATH"; do
- # count=$((count + 1))
- # if [ $count -ge $retries ]; then
- # echo "错误:模块 $module 构建失败"
- # exit 1
- # fi
- # sleep 10
- # done
- # done
-
- build-and-push-services:
- needs: build-common-modules
- runs-on: ubuntu
- strategy:
- matrix:
- service:
- - ruoyi-auth
- - ruoyi-gateway
- - ruoyi-modules/Property
- - ruoyi-modules/ruoyi-gen
- - ruoyi-modules/ruoyi-job
- - ruoyi-modules/ruoyi-resource
- - ruoyi-modules/ruoyi-system
- - ruoyi-modules/ruoyi-workflow
- - ruoyi-modules/Sis
- - ruoyi-visual/ruoyi-monitor
- - ruoyi-visual/ruoyi-nacos
- - ruoyi-seata-server
- - ruoyi-sentinel-dashboard
- - ruoyi-snailjob-server
- steps:
- - name: 拉取代码仓库
- uses: http://git.missmoc.top/mocheng/checkout@v4
-
- - name: 配置环境变量
- run: |
- export JAVA_HOME="/java17/java17"
- export MAVEN_HOME="/maven/apache-maven-3.9.11"
- echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
- echo "$JAVA_HOME/bin" >> $GITHUB_PATH
- echo "MAVEN_HOME=$MAVEN_HOME" >> $GITHUB_ENV
- echo "$MAVEN_HOME/bin" >> $GITHUB_PATH
-
- - name: 构建服务模块
- run: |
- SERVICE_NAME="${{ matrix.service }}"
- SERVICE_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${SERVICE_NAME}/pom.xml"
- if [ ! -f "$SERVICE_POM_ABSOLUTE_PATH" ]; then
- echo "错误:服务 $SERVICE_NAME 的POM文件不存在"
- exit 1
- fi
-
- "$MAVEN_HOME/bin/mvn" clean package -U -DskipTests -f "$SERVICE_POM_ABSOLUTE_PATH"
-
- - name: 配置Docker Buildx
- uses: http://git.missmoc.top/mocheng/setup-buildx-action@v3
-
- - name: 登录到容器仓库
- uses: http://git.missmoc.top/mocheng/login-action@v3
- with:
- registry: ${{ secrets.REGISTRY_URL }}
- username: ${{ secrets.REGISTRY_USER }}
- password: ${{ secrets.REGISTRY_PASS }}
-
- - name: 确定Dockerfile路径
- id: dockerfile-path
- run: |
- SERVICE_NAME="${{ matrix.service }}"
- DOCKERFILE_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/${SERVICE_NAME}/Dockerfile"
-
- if [ -f "$DOCKERFILE_ABSOLUTE_PATH" ]; then
- echo "dockerfile_path=$DOCKERFILE_ABSOLUTE_PATH" >> $GITHUB_OUTPUT
- else
- echo "dockerfile_path=${GITHUB_WORKSPACE}/Dockerfile" >> $GITHUB_OUTPUT
- fi
-
- - name: 构建并推送Docker镜像(仅推送镜像,不上传JAR)
- uses: http://git.missmoc.top/mocheng/build-push-action@v5
- with:
- context: "${{ github.workspace }}"
- file: ${{ github.workspace }}/${{ matrix.service }}/Dockerfile
- tags: 172.100.10.45:3000/by2025/smartparks/${{ matrix.service }}:latest
- # tags: ${{ secrets.REGISTRY_URL }}/by2025/$(echo ${{ matrix.service }} | tr 'A-Z' 'a-z'):${{ github.sha }}
- # tags: ${{ secrets.REGISTRY_URL }}/by2025/${{ matrix.service }}:2.0.4
- push: true
- cache-from: type=gha
- cache-to: type=gha,mode=max
-
diff --git a/.gitea/workflows/master.yml b/.gitea/workflows/master.yml
index 9ca94237..52fde7ea 100644
--- a/.gitea/workflows/master.yml
+++ b/.gitea/workflows/master.yml
@@ -3,7 +3,7 @@ name: Build and Push to Target Registry
# 监听master分支的推送事件
on:
push:
- branches: [ master ]
+ branches: [ prod ]
jobs:
build-and-deploy:
@@ -15,7 +15,7 @@ jobs:
- name: 拉取代码
uses: http://git.missmoc.top/mocheng/checkout@v4
with:
- fetch-depth: 0
+ fetch-depth: 1
- name: 使用Maven构建项目
run: |
@@ -87,3 +87,8 @@ jobs:
echo "===== 清理操作 ====="
docker system prune -f
echo "===== 所有操作完成 ===="
+
+ - name: 重启服务
+ run: |
+ kubectl rollout restart deployment sis -n smartparks
+ kubectl rollout restart deployment property -n smartparks
\ No newline at end of file
diff --git a/ruoyi-modules/Property/Dockerfile b/ruoyi-modules/Property/Dockerfile
index c369d781..4df39854 100644
--- a/ruoyi-modules/Property/Dockerfile
+++ b/ruoyi-modules/Property/Dockerfile
@@ -11,7 +11,7 @@ RUN mkdir -p /ruoyi/Property/logs \
WORKDIR /ruoyi/Property
-ENV SERVER_PORT=9201 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
+ENV SERVER_PORT=9201 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS="-Duser.timezone=Asia/Shanghai"
EXPOSE ${SERVER_PORT}
diff --git a/ruoyi-modules/Property/pom.xml b/ruoyi-modules/Property/pom.xml
index 4164e16b..4135f974 100644
--- a/ruoyi-modules/Property/pom.xml
+++ b/ruoyi-modules/Property/pom.xml
@@ -125,6 +125,11 @@
ruoyi-common-websocket
+
+ org.apache.rocketmq
+ rocketmq-spring-boot-starter
+
+
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/InspectionRouteController.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/InspectionRouteController.java
index 14b01122..81d91396 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/InspectionRouteController.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/InspectionRouteController.java
@@ -40,7 +40,7 @@ public class InspectionRouteController extends BaseController {
/**
* 查询巡检路线列表
*/
- @SaCheckPermission("property:route:list")
+ @SaCheckPermission("property:inspectionRoute:list")
@GetMapping("/list")
public TableDataInfo list(InspectionRouteBo bo, PageQuery pageQuery) {
return inspectionRouteService.queryPageList(bo, pageQuery);
@@ -49,7 +49,7 @@ public class InspectionRouteController extends BaseController {
/**
* 导出巡检路线列表
*/
- @SaCheckPermission("property:route:export")
+ @SaCheckPermission("property:inspectionRoute:export")
@Log(title = "巡检路线", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(InspectionRouteBo bo, HttpServletResponse response) {
@@ -62,7 +62,7 @@ public class InspectionRouteController extends BaseController {
*
* @param id 主键
*/
- @SaCheckPermission("property:route:query")
+ @SaCheckPermission("property:inspectionRoute:query")
@GetMapping("/{id}")
public R getInfo(@NotNull(message = "主键不能为空")
@PathVariable("id") Long id) {
@@ -72,7 +72,7 @@ public class InspectionRouteController extends BaseController {
/**
* 新增巡检路线
*/
- @SaCheckPermission("property:route:add")
+ @SaCheckPermission("property:inspectionRoute:add")
@Log(title = "巡检路线", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
@@ -83,7 +83,7 @@ public class InspectionRouteController extends BaseController {
/**
* 修改巡检路线
*/
- @SaCheckPermission("property:route:edit")
+ @SaCheckPermission("property:inspectionRoute:edit")
@Log(title = "巡检路线", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
@@ -96,7 +96,7 @@ public class InspectionRouteController extends BaseController {
*
* @param ids 主键串
*/
- @SaCheckPermission("property:route:remove")
+ @SaCheckPermission("property:inspectionRoute:remove")
@Log(title = "巡检路线", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R remove(@NotEmpty(message = "主键不能为空")
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/MeetAttachController.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/MeetAttachController.java
index ffa91146..623d5ccd 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/MeetAttachController.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/MeetAttachController.java
@@ -40,7 +40,7 @@ public class MeetAttachController extends BaseController {
/**
* 查询分页会议室增值服务列表
*/
- @SaCheckPermission("property:attach:list")
+ @SaCheckPermission("property:conferenceAddServices:list")
@GetMapping("/list")
public TableDataInfo pageList(MeetAttachBo bo, PageQuery pageQuery) {
return meetAttachService.queryPageList(bo, pageQuery);
@@ -57,7 +57,7 @@ public class MeetAttachController extends BaseController {
*
* @param id 主键
*/
- @SaCheckPermission("property:attach:query")
+ @SaCheckPermission("property:conferenceAddServices:query")
@GetMapping("/{id}")
public R getInfo(@NotNull(message = "主键不能为空")
@PathVariable("id") Long id) {
@@ -67,7 +67,7 @@ public class MeetAttachController extends BaseController {
/**
* 新增会议室增值服务
*/
- @SaCheckPermission("property:attach:add")
+ @SaCheckPermission("property:conferenceAddServices:add")
@Log(title = "会议室增值服务", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
@@ -78,7 +78,7 @@ public class MeetAttachController extends BaseController {
/**
* 修改会议室增值服务
*/
- @SaCheckPermission("property:attach:edit")
+ @SaCheckPermission("property:conferenceAddServices:edit")
@Log(title = "会议室增值服务", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
@@ -91,7 +91,7 @@ public class MeetAttachController extends BaseController {
*
* @param ids 主键串
*/
- @SaCheckPermission("property:attach:remove")
+ @SaCheckPermission("property:conferenceAddServices:remove")
@Log(title = "会议室增值服务", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R remove(@NotEmpty(message = "主键不能为空")
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/ServiceWorkOrdersController.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/ServiceWorkOrdersController.java
index 72906e58..870364de 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/ServiceWorkOrdersController.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/ServiceWorkOrdersController.java
@@ -26,7 +26,7 @@ import java.util.List;
/**
* 【业务管理-工单处理】
- * 前端访问路由地址为:/system/workOrders
+ * 前端访问路由地址为:/property/workOrders
*
* @author mocheng
* @date 2025-07-07
@@ -42,7 +42,7 @@ public class ServiceWorkOrdersController extends BaseController {
/**
* 查询【工单处理】列表
*/
- //@SaCheckPermission("system:workOrders:list")
+ @SaCheckPermission("property:workOrders:list")
@GetMapping("/list")
public TableDataInfo list(ServiceWorkOrdersBo bo, PageQuery pageQuery) {
return serviceWorkOrdersService.queryPageList(bo, pageQuery);
@@ -51,7 +51,7 @@ public class ServiceWorkOrdersController extends BaseController {
/**
* 导出【工单处理】列表
*/
- // @SaCheckPermission("system:workOrders:export")
+ @SaCheckPermission("property:workOrders:export")
@Log(title = "【工单处理】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(ServiceWorkOrdersBo bo, HttpServletResponse response) {
@@ -64,7 +64,7 @@ public class ServiceWorkOrdersController extends BaseController {
*
* @param id 主键
*/
- // @SaCheckPermission("system:workOrders:query")
+ @SaCheckPermission("property:workOrders:query")
@GetMapping("/{id}")
public R getInfo(@NotNull(message = "主键不能为空")
@PathVariable("id") Long id) {
@@ -74,7 +74,7 @@ public class ServiceWorkOrdersController extends BaseController {
/**
* 新增【工单处理】
*/
- // @SaCheckPermission("system:workOrders:add")
+ @SaCheckPermission("property:workOrders:add")
@Log(title = "【工单处理】", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
@@ -85,20 +85,40 @@ public class ServiceWorkOrdersController extends BaseController {
/**
* 修改【工单处理】
*/
- //@SaCheckPermission("system:workOrders:edit")
+ @SaCheckPermission("property:workOrders:edit")
@Log(title = "【工单处理】", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R edit(@Validated(EditGroup.class) @RequestBody ServiceWorkOrdersBo bo) {
return toAjax(serviceWorkOrdersService.updateByBo(bo));
}
+ /**
+ * 派单【工单处理】
+ */
+ @SaCheckPermission("property:workOrders:dispatch")
+ @Log(title = "【工单处理】", businessType = BusinessType.UPDATE)
+ @RepeatSubmit()
+ @PutMapping("/dispatch")
+ public R dispatch(@Validated(EditGroup.class) @RequestBody ServiceWorkOrdersBo bo) {
+ return toAjax(serviceWorkOrdersService.updateByBo(bo));
+ }
+ /**
+ * 抢单【工单处理】
+ */
+ @SaCheckPermission("property:workOrders:grab")
+ @Log(title = "【工单处理】", businessType = BusinessType.UPDATE)
+ @RepeatSubmit()
+ @PutMapping("grab")
+ public R grab(@Validated(EditGroup.class) @RequestBody ServiceWorkOrdersBo bo) {
+ return toAjax(serviceWorkOrdersService.updateByBo(bo));
+ }
/**
* 删除【工单处理】
*
* @param ids 主键串
*/
- // @SaCheckPermission("system:workOrders:remove")
+ @SaCheckPermission("property:workOrders:remove")
@Log(title = "【工单处理】", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R remove(@NotEmpty(message = "主键不能为空")
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/TbVisitorManagementController.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/TbVisitorManagementController.java
index 71cbd677..ba5153bc 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/TbVisitorManagementController.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/TbVisitorManagementController.java
@@ -149,10 +149,28 @@ public class TbVisitorManagementController extends BaseController {
return toAjax(tbVisitorManagementService.insertByBo(bo));
}
+ /**
+ * h5端新增访客管理
+ * @param bo
+ * @return
+ */
+ @SaCheckPermission("property:visitorManagement:addH5VistorManagement")
+ @Log(title = "访客管理", businessType = BusinessType.INSERT)
+ @RepeatSubmit()
+ @PostMapping("/addH5VistorManagement")
+ public R addH5VistorManagement(@Validated(AddGroup.class) @RequestBody TbVisitorManagementBo bo) {
+ QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY +"Qrcode" + bo.getQrCodeId());
+ if (info==null){
+ return R.fail("请确认Qr码有效");
+ }
+ bo.setType(0);
+ return toAjax(tbVisitorManagementService.insertH5ByBo(bo));
+ }
+
/**
* pc端新增访客管理
*/
- @SaCheckPermission("property:visitorManagement::addVisitorManagement")
+ @SaCheckPermission("property:visitorManagement:addVisitorManagement")
@Log(title = "访客管理", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/cleanOrder/CleanOrderController.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/cleanOrder/CleanOrderController.java
index 2d3f5a13..96ea5b21 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/cleanOrder/CleanOrderController.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/cleanOrder/CleanOrderController.java
@@ -40,7 +40,7 @@ public class CleanOrderController extends BaseController {
/**
* 查询保洁订单列表
*/
- @SaCheckPermission("property:clean_order:list")
+ //@SaCheckPermission("property:clean_order:list")
@GetMapping("/list")
public TableDataInfo list(CleanOrderBo bo, PageQuery pageQuery) {
return cleanOrderService.queryPageList(bo, pageQuery);
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/mobile/MServiceWorkOrdersController.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/mobile/MServiceWorkOrdersController.java
index 4961fa12..4e83e415 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/mobile/MServiceWorkOrdersController.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/controller/mobile/MServiceWorkOrdersController.java
@@ -13,6 +13,7 @@ import org.dromara.common.web.core.BaseController;
import org.dromara.property.domain.bo.ServiceWorkOrdersBo;
import org.dromara.property.domain.bo.mobile.MServiceWorkOrdersBo;
import org.dromara.property.domain.vo.ServiceWorkOrdersVo;
+import org.dromara.property.domain.vo.mobile.MServiceWorkOrdersVo;
import org.dromara.property.service.IServiceWorkOrdersService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -35,7 +36,6 @@ public class MServiceWorkOrdersController extends BaseController {
* 小程序新增【工单处理】
*/
@Log(title = "【小程序新增工单处理】", businessType = BusinessType.INSERT)
- @RepeatSubmit()
@PostMapping()
public R add(@Validated(AddGroup.class) @RequestBody MServiceWorkOrdersBo bo) {
return toAjax(serviceWorkOrdersService.insertMServiceWorkOrdersBo(bo));
@@ -44,8 +44,8 @@ public class MServiceWorkOrdersController extends BaseController {
* 小程序查询【工单处理】
*/
@GetMapping("/list")
- public TableDataInfo list(ServiceWorkOrdersBo bo, PageQuery pageQuery) {
- return serviceWorkOrdersService.queryPageList(bo, pageQuery);
+ public TableDataInfo list(ServiceWorkOrdersBo bo, PageQuery pageQuery) {
+ return serviceWorkOrdersService.queryMobilePageList(bo, pageQuery);
}
/**
* 修改【工单处理】
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/Meet.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/Meet.java
index ebd38779..6567fad3 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/Meet.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/Meet.java
@@ -93,6 +93,11 @@ public class Meet extends TenantEntity {
*/
private String appointmentTime;
+ /**
+ * 图片
+ */
+ private String picture;
+
/**
* 开放开始时段
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrders.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrders.java
index 932b39b5..2642cfa6 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrders.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrders.java
@@ -47,7 +47,7 @@ public class ServiceWorkOrders extends TenantEntity {
private Long type;
/**
- * 状态
+ * 状态(0创建工单,1已派单2已抢单3处理中,4已完成,5已评价)
*/
private String status;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrdersType.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrdersType.java
index 9d88bdfe..118998aa 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrdersType.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/ServiceWorkOrdersType.java
@@ -38,7 +38,7 @@ public class ServiceWorkOrdersType extends TenantEntity {
private String orderTypeName;
/**
- * 运作模式
+ * 运作模式(0派单+抢单,1派单,2自动派单)
*/
private String operationMode;
@@ -56,7 +56,10 @@ public class ServiceWorkOrdersType extends TenantEntity {
* 是否支持转单(0支持,1不支持)
*/
private Integer isTransfers;
-
+ /**
+ * 权重(1一般2紧急3危急)
+ */
+ private String processingWeight;
/**
* 搜索值
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/CostCarChargeBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/CostCarChargeBo.java
index e149f6be..54d530b1 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/CostCarChargeBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/CostCarChargeBo.java
@@ -50,6 +50,11 @@ public class CostCarChargeBo extends BaseEntity {
* 车位
*/
private String location;
+ /**
+ * 车位名称
+ */
+ private String locationName;
+
/**
* 缴费状态
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/MeetBookingBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/MeetBookingBo.java
index 9e1f7492..0512f2f3 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/MeetBookingBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/MeetBookingBo.java
@@ -67,7 +67,7 @@ public class MeetBookingBo extends BaseEntity {
* 参会人数
*/
@NotNull(message = "参会人数不能为空", groups = { AddGroup.class, EditGroup.class })
- private int personSum;
+ private Integer personSum;
/**
* 费用
@@ -78,17 +78,17 @@ public class MeetBookingBo extends BaseEntity {
/**
* 是否包含增值服务
*/
- private int attach;
+ private Integer attach;
/**
* 支付状态
*/
- private int payState;
+ private Integer payState;
/**
* 状态
*/
- private int state;
+ private Integer state;
/**
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersBo.java
index 68cafea7..416643ab 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersBo.java
@@ -107,10 +107,6 @@ public class ServiceWorkOrdersBo extends BaseEntity {
* 图片
*/
private String imgUrl;
- /**
- * 工单图片
- */
- private String orderImgUrl;
/**
* 备注
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersTypeBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersTypeBo.java
index aa7376a5..a9a15f6c 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersTypeBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/ServiceWorkOrdersTypeBo.java
@@ -54,7 +54,10 @@ public class ServiceWorkOrdersTypeBo extends BaseEntity {
*/
@NotNull(message = "完成时效不能为空", groups = { AddGroup.class, EditGroup.class })
private Integer completionNumber;
-
+ /**
+ * 权重(1一般2紧急3危急)
+ */
+ private String processingWeight;
/**
* 是否支持转单(0支持,1不支持)
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/mobile/MServiceWorkOrdersBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/mobile/MServiceWorkOrdersBo.java
index d1e8799d..fcac6c8b 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/mobile/MServiceWorkOrdersBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/mobile/MServiceWorkOrdersBo.java
@@ -105,6 +105,10 @@ public class MServiceWorkOrdersBo extends BaseEntity {
* 工单图片
*/
private String orderImgUrl;
+ /**
+ * 问题描述
+ */
+ private String issueDesc;
/**
* 备注
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbLightInfoBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbLightInfoBo.java
index 93d4461e..cbec0af7 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbLightInfoBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbLightInfoBo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.bo.smartDevicesBo;
-import org.dromara.property.domain.TbLightInfo;
+import org.dromara.property.domain.entity.smartDevices.TbLightInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
@@ -47,7 +47,7 @@ public class TbLightInfoBo extends BaseEntity {
/**
* 楼层ID
*/
- @NotNull(message = "层ID不能为空", groups = {AddGroup.class, EditGroup.class})
+ @NotNull(message = "楼层ID不能为空", groups = {AddGroup.class, EditGroup.class})
private Long floorId;
/**
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterConfigBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterConfigBo.java
index b96d76d0..b7d7a8e5 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterConfigBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterConfigBo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.bo.smartDevicesBo;
-import org.dromara.property.domain.TbMeterConfig;
+import org.dromara.property.domain.entity.smartDevices.TbMeterConfig;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterInfoBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterInfoBo.java
index e25ae4fc..73db1b9f 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterInfoBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterInfoBo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.bo.smartDevicesBo;
-import org.dromara.property.domain.TbMeterInfo;
+import org.dromara.property.domain.entity.smartDevices.TbMeterInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
@@ -9,6 +9,8 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
+import java.math.BigDecimal;
+
/**
* 水电气业务对象 tb_meter_info
*
@@ -23,7 +25,7 @@ public class TbMeterInfoBo extends BaseEntity {
/**
* 主键id
*/
- @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
+ @NotNull(message = "主键id不能为空", groups = {EditGroup.class})
private Long id;
/**
@@ -44,15 +46,42 @@ public class TbMeterInfoBo extends BaseEntity {
/**
* 设备类型(1-电表,2-水表,3-气表)
*/
- @NotNull(message = "设备类型(1-电表,2-水表,3-气表)不能为空", groups = { AddGroup.class, EditGroup.class })
+ @NotNull(message = "设备类型(1-电表,2-水表,3-气表)不能为空", groups = {AddGroup.class, EditGroup.class})
private Long meterType;
/**
* 计量单位(1-度,2-吨,3-立方米)
*/
- @NotNull(message = "计量单位(1-度,2-吨,3-立方米)不能为空", groups = { AddGroup.class, EditGroup.class })
+ @NotNull(message = "计量单位(1-度,2-吨,3-立方米)不能为空", groups = {AddGroup.class, EditGroup.class})
private Long meterUnit;
+ /**
+ * 采集器IP
+ */
+ @NotNull(message = "采集器IP不能为空", groups = {AddGroup.class, EditGroup.class})
+ private String hostIp;
+
+ /**
+ * 楼层ID
+ */
+ @NotNull(message = "楼层ID不能为空", groups = {AddGroup.class, EditGroup.class})
+ private Long floorId;
+
+ /**
+ * 园区编码
+ */
+ private Long communityId;
+
+ /**
+ * 建筑名称
+ */
+ private Long buildingId;
+
+ /**
+ * 单元编码
+ */
+ private Long unitId;
+
/**
* 安装位置
*/
@@ -61,12 +90,12 @@ public class TbMeterInfoBo extends BaseEntity {
/**
* 初始读数
*/
- private Long initReading;
+ private BigDecimal initReading;
/**
* 最大量程
*/
- private Long maxRang;
+ private BigDecimal maxRang;
/**
* 通信状态
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRecordBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRecordBo.java
index a88a08cb..abd989aa 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRecordBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRecordBo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.bo.smartDevicesBo;
-import org.dromara.property.domain.TbMeterRecord;
+import org.dromara.property.domain.entity.smartDevices.TbMeterRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
@@ -8,13 +8,15 @@ import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
+
+import java.math.BigDecimal;
import java.util.Date;
/**
* 抄记录业务对象 tb_meter_record
*
* @author lsm
- * @date 2025-07-19
+ * @since 2025-07-19
*/
@Data
@EqualsAndHashCode(callSuper = true)
@@ -33,6 +35,12 @@ public class TbMeterRecordBo extends BaseEntity {
@NotBlank(message = "仪表编号不能为空", groups = { AddGroup.class, EditGroup.class })
private String meterId;
+ /**
+ * 设备类型(1-电表,2-水表,3-气表)
+ */
+ @NotNull(message = "仪表类型不能为空", groups = { AddGroup.class, EditGroup.class })
+ private Long meterType;
+
/**
* 抄表员ID
*/
@@ -49,18 +57,13 @@ public class TbMeterRecordBo extends BaseEntity {
* 当前读数
*/
@NotNull(message = "当前读数不能为空", groups = { AddGroup.class, EditGroup.class })
- private Long currentReading;
+ private BigDecimal currentReading;
/**
* 上次读数
*/
@NotNull(message = "上次读数不能为空", groups = { AddGroup.class, EditGroup.class })
- private Long previousReading;
-
- /**
- * 用量
- */
- private Long consumption;
+ private BigDecimal previousReading;
/**
* 抄表方式(1手动 2自动 3用户上报)
@@ -71,7 +74,7 @@ public class TbMeterRecordBo extends BaseEntity {
/**
* 抄表照片
*/
- private Long imgOssid;
+ private Long imgOssId;
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRoomBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRoomBo.java
index 1d986a4b..b5262897 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRoomBo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/smartDevicesBo/TbMeterRoomBo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.bo.smartDevicesBo;
-import org.dromara.property.domain.TbMeterRoom;
+import org.dromara.property.domain.entity.smartDevices.TbMeterRoom;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbLightInfo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbLightInfo.java
similarity index 94%
rename from ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbLightInfo.java
rename to ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbLightInfo.java
index 09a1bcf4..2af8af8d 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbLightInfo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbLightInfo.java
@@ -1,4 +1,4 @@
-package org.dromara.property.domain;
+package org.dromara.property.domain.entity.smartDevices;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterConfig.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterConfig.java
similarity index 95%
rename from ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterConfig.java
rename to ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterConfig.java
index 6dc59a9c..497e9e1b 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterConfig.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterConfig.java
@@ -1,4 +1,4 @@
-package org.dromara.property.domain;
+package org.dromara.property.domain.entity.smartDevices;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterInfo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterInfo.java
similarity index 72%
rename from ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterInfo.java
rename to ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterInfo.java
index 6c748a13..f363203d 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterInfo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterInfo.java
@@ -1,4 +1,4 @@
-package org.dromara.property.domain;
+package org.dromara.property.domain.entity.smartDevices;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
@@ -6,6 +6,7 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
+import java.math.BigDecimal;
/**
* 水电气对象 tb_meter_info
@@ -60,12 +61,12 @@ public class TbMeterInfo extends TenantEntity {
/**
* 初始读数
*/
- private Long initReading;
+ private BigDecimal initReading;
/**
* 最大量程
*/
- private Long maxRang;
+ private BigDecimal maxRang;
/**
* 通信状态
@@ -82,5 +83,30 @@ public class TbMeterInfo extends TenantEntity {
*/
private String remark;
+ /**
+ * 园区编码
+ */
+ private Long communityId;
+
+ /**
+ * 建筑名称
+ */
+ private Long buildingId;
+
+ /**
+ * 单元编码
+ */
+ private Long unitId;
+
+ /**
+ * 所属楼层ID
+ */
+ private Long floorId;
+
+ /**
+ * 采集器IP
+ */
+ private String hostIp;
+
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterRecord.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterRecord.java
similarity index 73%
rename from ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterRecord.java
rename to ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterRecord.java
index 7d0f6f25..4c3d6296 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterRecord.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterRecord.java
@@ -1,11 +1,12 @@
-package org.dromara.property.domain;
+package org.dromara.property.domain.entity.smartDevices;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
+
+import java.math.BigDecimal;
import java.util.Date;
-import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
@@ -13,7 +14,7 @@ import java.io.Serial;
* 抄记录对象 tb_meter_record
*
* @author lsm
- * @date 2025-07-19
+ * @since 2025-07-19
*/
@Data
@EqualsAndHashCode(callSuper = true)
@@ -34,6 +35,11 @@ public class TbMeterRecord extends TenantEntity {
*/
private String meterId;
+ /**
+ * 设备类型(1-电表,2-水表,3-气表)
+ */
+ private Long meterType;
+
/**
* 抄表员ID
*/
@@ -47,17 +53,17 @@ public class TbMeterRecord extends TenantEntity {
/**
* 当前读数
*/
- private Long currentReading;
+ private BigDecimal currentReading;
/**
* 上次读数
*/
- private Long previousReading;
+ private BigDecimal previousReading;
/**
* 用量
*/
- private Long consumption;
+ private BigDecimal consumption;
/**
* 抄表方式(1手动 2自动 3用户上报)
@@ -67,7 +73,7 @@ public class TbMeterRecord extends TenantEntity {
/**
* 抄表照片
*/
- private Long imgOssid;
+ private Long imgOssId;
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterRoom.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterRoom.java
similarity index 92%
rename from ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterRoom.java
rename to ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterRoom.java
index 8cbe4275..c65b8ae5 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/TbMeterRoom.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/entity/smartDevices/TbMeterRoom.java
@@ -1,4 +1,4 @@
-package org.dromara.property.domain;
+package org.dromara.property.domain.entity.smartDevices;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/ChargeTypeEnum.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/ChargeTypeEnum.java
new file mode 100644
index 00000000..b54c9402
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/ChargeTypeEnum.java
@@ -0,0 +1,30 @@
+package org.dromara.property.domain.enums;
+
+/**
+ * 收费类型枚举
+ */
+public enum ChargeTypeEnum {
+ /**
+ * 房屋收费
+ */
+ HOUS_CHARGES("房屋收费", "1"),
+ /**
+ * 车辆收费
+ */
+ CARD_CHARGES("车辆收费", "2");
+ private final String name;
+ private final String value;
+
+ ChargeTypeEnum(String name, String value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public String getValue() {
+ return this.value;
+ }
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/OrderReportingTypeEnum.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/OrderReportingTypeEnum.java
new file mode 100644
index 00000000..48b898ef
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/OrderReportingTypeEnum.java
@@ -0,0 +1,28 @@
+package org.dromara.property.domain.enums;
+
+/**
+ * 工单上报类型
+ */
+public enum OrderReportingTypeEnum {
+ TELEPHONE_REPORT("电话上报", "1"),
+ SCENE_REPORT("现场上报", "2"),
+ SYSTEM_REPORT("系统上报", "3"),
+ PHONE_REPORT("手机上报", "4");
+
+
+ private final String name;
+ private final String value;
+
+ OrderReportingTypeEnum(String name, String value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public String getValue() {
+ return this.value;
+ }
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/OrderTypeOperationEnum.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/OrderTypeOperationEnum.java
new file mode 100644
index 00000000..72e9bb2c
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/enums/OrderTypeOperationEnum.java
@@ -0,0 +1,28 @@
+package org.dromara.property.domain.enums;
+/**
+ * @Author:yuyongle
+ * @Date:2025/7/4 10:35
+ * @Description:工单类型运作模式
+ **/
+public enum OrderTypeOperationEnum {
+ DISPATCH_ORDERS_AND_GRAB_ORDERS("派单+抢单", "0"),
+ DISPATCH("派单", "1"),
+ AUTOMATE_DISPATCH("自动派单", "2");
+
+
+ private final String name;
+ private final String value;
+
+ OrderTypeOperationEnum(String name, String value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public String getValue() {
+ return this.value;
+ }
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeDetailVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeDetailVo.java
index 777a9e9c..24b326a8 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeDetailVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeDetailVo.java
@@ -35,6 +35,10 @@ public class CostHouseChargeDetailVo implements Serializable {
*/
@ExcelProperty(value = "房屋")
private Long roomId;
+ /**
+ * 房屋名称
+ */
+ private String roomName;
/**
* 业主
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeVo.java
index 0cb4e6d5..b2109a73 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostHouseChargeVo.java
@@ -42,10 +42,19 @@ public class CostHouseChargeVo implements Serializable {
*/
@ExcelProperty(value = "房屋")
private Long roomId;
+
+ /**
+ * 房屋名称
+ */
+ private String roomName;
/**
* 业主
*/
private Long personId;
+ /**
+ * 业主
+ */
+ private String personName;
/**
* 收费项目
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostMeterWaterVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostMeterWaterVo.java
index 6e3a2185..815a6ddd 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostMeterWaterVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostMeterWaterVo.java
@@ -45,6 +45,10 @@ public class CostMeterWaterVo implements Serializable {
* 费用类型
*/
private String costType;
+ /**
+ * 费用名称
+ */
+ private String costTypeName;
/**
* 房间id
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostPayFeeAuditVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostPayFeeAuditVo.java
index e7704979..45aabf19 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostPayFeeAuditVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/CostPayFeeAuditVo.java
@@ -53,8 +53,12 @@ public class CostPayFeeAuditVo implements Serializable {
/**
* 房间号(如101,202)
*/
- @ExcelProperty(value = "房间号(如101,202)")
+ @ExcelProperty(value = "房间号")
private String roomNumber;
+ /**
+ * 车牌号
+ */
+ private String carNumber;
/**
* 费用项目id
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/InspectionPointVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/InspectionPointVo.java
index 1ed2899e..0c688eb7 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/InspectionPointVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/InspectionPointVo.java
@@ -41,7 +41,7 @@ public class InspectionPointVo implements Serializable {
* 巡检项目id
*/
@ExcelProperty(value = "巡检项目id")
- private Long itemName;
+ private String itemName;
/**
* 巡检点名称
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/MeetVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/MeetVo.java
index 902cec12..b562928e 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/MeetVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/MeetVo.java
@@ -123,6 +123,10 @@ public class MeetVo implements Serializable {
* 预约时间
*/
private String appointmentTime;
+ /**
+ * 图片
+ */
+ private String picture;
/**
* (1免费2.付费,3面议)
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersInfoVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersInfoVo.java
index 87a9e11f..67ab2f1e 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersInfoVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersInfoVo.java
@@ -57,7 +57,10 @@ public class ServiceWorkOrdersInfoVo implements Serializable {
*/
@ExcelProperty(value = "权重")
private String processingWeight;
-
+ /**
+ * 运作模式(0派单+抢单,1派单,2自动派单)
+ */
+ private String operationMode;
/**
* 状态
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersTypeVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersTypeVo.java
index c6c49fab..9b44e8a4 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersTypeVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersTypeVo.java
@@ -68,7 +68,10 @@ public class ServiceWorkOrdersTypeVo implements Serializable {
*/
@ExcelProperty(value = "是否支持转单(0支持,1不支持)")
private Integer isTransfers;
-
+ /**
+ * 权重(1一般2紧急3危急)
+ */
+ private String processingWeight;
/**
* 搜索值
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersVo.java
index 67a807cd..5ab02bee 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/ServiceWorkOrdersVo.java
@@ -67,7 +67,7 @@ public class ServiceWorkOrdersVo implements Serializable {
/**
* 状态
*/
- @ExcelProperty(value = "状态")
+ @ExcelProperty(value = "状态(0创建工单,1已派单2已抢单3处理中,4已完成,5已评价)")
private String status;
/**
@@ -75,7 +75,10 @@ public class ServiceWorkOrdersVo implements Serializable {
*/
@ExcelProperty(value = "派单时间")
private Date dispatchTime;
-
+ /**
+ * 运作模式(0派单+抢单,1派单,2自动派单)
+ */
+ private String operationMode;
/**
* 发起人
*/
@@ -143,6 +146,7 @@ public class ServiceWorkOrdersVo implements Serializable {
* 图片
*/
private String imgUrl;
+
/**
* 备注
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/cleanOrderVo/CleanOrderVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/cleanOrderVo/CleanOrderVo.java
index e9bc10ac..c9e1762b 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/cleanOrderVo/CleanOrderVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/cleanOrderVo/CleanOrderVo.java
@@ -38,6 +38,11 @@ public class CleanOrderVo implements Serializable {
*/
@ExcelProperty(value = "位置")
private Long location;
+ /**
+ * 位置
+ */
+ @ExcelProperty(value = "位置")
+ private String locationName;
/**
* 面积
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/mobile/MServiceWorkOrdersRecordVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/mobile/MServiceWorkOrdersRecordVo.java
new file mode 100644
index 00000000..ff858da1
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/mobile/MServiceWorkOrdersRecordVo.java
@@ -0,0 +1,61 @@
+package org.dromara.property.domain.vo.mobile;
+
+
+import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
+import cn.idev.excel.annotation.ExcelProperty;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import org.dromara.property.domain.ServiceWorkOrdersRecord;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @author yuyongle
+ * @version 1.0
+ * @description: TODO
+ * @date 2025/8/26 13:53
+ */
+@Data
+@ExcelIgnoreUnannotated
+@AutoMapper(target = ServiceWorkOrdersRecord.class)
+public class MServiceWorkOrdersRecordVo implements Serializable {
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * id
+ */
+ @ExcelProperty(value = "id")
+ private Long id;
+
+ /**
+ * 工单id
+ */
+ @ExcelProperty(value = "工单id")
+ private String orderId;
+
+ /**
+ * 状态(0创建工单,1已派单2已抢单3处理中,4已完成)
+ */
+ @ExcelProperty(value = "状态(0创建工单,1已派单2已抢单3处理中,4已完成)")
+ private String status;
+
+ /**
+ * 处理人
+ */
+ @ExcelProperty(value = "处理人")
+ private Long handler;
+ /**
+ * 处理人
+ */
+ @ExcelProperty(value = "处理人")
+ private String handlerName;
+
+ /**
+ * 创建时间
+ */
+ @ExcelProperty(value = "创建时间")
+ private Date createTime;
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/mobile/MServiceWorkOrdersVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/mobile/MServiceWorkOrdersVo.java
new file mode 100644
index 00000000..cb4a5d53
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/mobile/MServiceWorkOrdersVo.java
@@ -0,0 +1,166 @@
+package org.dromara.property.domain.vo.mobile;
+
+
+import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
+import cn.idev.excel.annotation.ExcelProperty;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import org.dromara.property.domain.ServiceWorkOrders;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * @author yuyongle
+ * @version 1.0
+ * @description: TODO
+ * @date 2025/8/26 13:52
+ */
+@Data
+@ExcelIgnoreUnannotated
+@AutoMapper(target = ServiceWorkOrders.class)
+public class MServiceWorkOrdersVo implements Serializable {
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * id
+ */
+ @ExcelProperty(value = "id")
+ private Long id;
+
+ /**
+ * 工单编号
+ */
+ @ExcelProperty(value = "工单编号")
+ private String orderNo;
+ /**
+ * 权重
+ */
+ @ExcelProperty(value = "权重")
+ private String processingWeight;
+
+ /**
+ * 工单名称
+ */
+ @ExcelProperty(value = "工单名称")
+ private String orderName;
+
+ /**
+ * 工单类型
+ */
+ @ExcelProperty(value = "工单类型")
+ private Long type;
+ /**
+ * 上报类型
+ */
+ private String reportingType;
+ /**
+ * 工单类型名称
+ */
+ @ExcelProperty(value = "工单类型名称")
+ private String typeName;
+
+ /**
+ * 状态
+ */
+ @ExcelProperty(value = "状态(0创建工单,1已派单2已抢单3处理中,4已完成,5已评价)")
+ private String status;
+
+ /**
+ * 派单时间
+ */
+ @ExcelProperty(value = "派单时间")
+ private Date dispatchTime;
+ /**
+ * 运作模式(0派单+抢单,1派单,2自动派单)
+ */
+ private String operationMode;
+ /**
+ * 发起人
+ */
+ private String initiatorPeople;
+
+ /**
+ * 处理人姓名
+ */
+ private long handler;
+ /**
+ * 抄送人
+ */
+ private long ccPeople;
+ /**
+ * 发起人手机号
+ */
+ @ExcelProperty(value = "发起人手机号")
+ private String initiatorPhone;
+ /**
+ * 处理人姓名文本
+ */
+ @ExcelProperty(value = "处理人姓名文本")
+ private String handlerText;
+
+ /**
+ * 处理人姓名文本
+ */
+ @ExcelProperty(value = "处理人电话")
+ private String handlerPhone;
+
+ /**
+ * 地址
+ */
+ @ExcelProperty(value = "地址")
+ private String location;
+
+ /**
+ * 计划完成时间
+ */
+ @ExcelProperty(value = "计划完成时间")
+ private Date planCompleTime;
+
+ /**
+ * 完成时间
+ */
+ @ExcelProperty(value = "完成时间")
+ private Date compleTime;
+
+ /**
+ * 评价
+ */
+ @ExcelProperty(value = "评价")
+ private Integer serviceEvalua;
+
+ /**
+ * 是否超时
+ */
+ @ExcelProperty(value = "是否超时")
+ private String isTimeOut;
+
+ /**
+ * 评价文本
+ */
+ private String serviceEvaluaText;
+ /**
+ * 工单图片
+ */
+ private String orderImgUrl;
+ /**
+ * 图片
+ */
+ private String imgUrl;
+ /**
+ * 备注
+ */
+ private String remark;
+
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+ /**
+ * 工单记录
+ */
+ List recordVoList;
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbLightInfoVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbLightInfoVo.java
index ad609103..08a6314b 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbLightInfoVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbLightInfoVo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.vo.smartDevicesVo;
-import org.dromara.property.domain.TbLightInfo;
+import org.dromara.property.domain.entity.smartDevices.TbLightInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
@@ -10,8 +10,6 @@ import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
-import java.util.Date;
-
/**
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterConfigVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterConfigVo.java
index ba26038e..5904d265 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterConfigVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterConfigVo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.vo.smartDevicesVo;
-import org.dromara.property.domain.TbMeterConfig;
+import org.dromara.property.domain.entity.smartDevices.TbMeterConfig;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterInfoVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterInfoVo.java
index 5bd428b8..467f85c3 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterInfoVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterInfoVo.java
@@ -2,7 +2,7 @@ package org.dromara.property.domain.vo.smartDevicesVo;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
-import org.dromara.property.domain.TbMeterInfo;
+import org.dromara.property.domain.entity.smartDevices.TbMeterInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
@@ -10,7 +10,7 @@ import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
-
+import java.math.BigDecimal;
/**
@@ -54,7 +54,7 @@ public class TbMeterInfoVo implements Serializable {
/**
* 设备类型(1-电表,2-水表,3-气表)
*/
- @ExcelProperty(value = "设备类型(1-电表,2-水表,3-气表)" ,converter = ExcelDictConvert.class)
+ @ExcelProperty(value = "设备类型(1-电表,2-水表,3-气表)", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "meter_type")
private Long meterType;
@@ -75,13 +75,13 @@ public class TbMeterInfoVo implements Serializable {
* 初始读数
*/
@ExcelProperty(value = "初始读数")
- private Long initReading;
+ private BigDecimal initReading;
/**
* 最大量程
*/
@ExcelProperty(value = "最大量程")
- private Long maxRang;
+ private BigDecimal maxRang;
/**
* 通信状态
@@ -97,6 +97,42 @@ public class TbMeterInfoVo implements Serializable {
@ExcelDictFormat(dictType = "sis_device_status")
private Long runningState;
+ /**
+ * 园区编码
+ */
+ @ExcelProperty(value = "园区编码")
+ private Long communityId;
+
+ /**
+ * 建筑名称
+ */
+ @ExcelProperty(value = "建筑名称")
+ private Long buildingId;
+
+ /**
+ * 单元编码
+ */
+ @ExcelProperty(value = "单元编码")
+ private Long unitId;
+
+ /**
+ * 楼层ID
+ */
+ @ExcelProperty(value = "楼层ID")
+ private Long floorId;
+
+ /**
+ * 楼层
+ */
+ @ExcelProperty(value = "楼层")
+ private String floorName;
+
+ /**
+ * 采集器IP
+ */
+ @ExcelProperty(value = "采集器IP")
+ private String hostIp;
+
/**
* 备注
*/
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRecordVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRecordVo.java
index e01494f5..8fbec766 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRecordVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRecordVo.java
@@ -1,8 +1,9 @@
package org.dromara.property.domain.vo.smartDevicesVo;
+import java.math.BigDecimal;
import java.util.Date;
-import org.dromara.property.domain.TbMeterRecord;
+import org.dromara.property.domain.entity.smartDevices.TbMeterRecord;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
@@ -16,7 +17,7 @@ import java.io.Serializable;
* 抄记录视图对象 tb_meter_record
*
* @author lsm
- * @date 2025-07-19
+ * @since 2025-07-19
*/
@Data
@ExcelIgnoreUnannotated
@@ -38,6 +39,12 @@ public class TbMeterRecordVo implements Serializable {
@ExcelProperty(value = "仪表编号")
private String meterId;
+ /**
+ * 设备类型(1-电表,2-水表,3-气表)
+ */
+ @ExcelProperty(value = "仪表类型")
+ private Long meterType;
+
/**
* 抄表员ID
*/
@@ -54,19 +61,19 @@ public class TbMeterRecordVo implements Serializable {
* 当前读数
*/
@ExcelProperty(value = "当前读数")
- private Long currentReading;
+ private BigDecimal currentReading;
/**
* 上次读数
*/
@ExcelProperty(value = "上次读数")
- private Long previousReading;
+ private BigDecimal previousReading;
/**
* 用量
*/
@ExcelProperty(value = "用量")
- private Long consumption;
+ private BigDecimal consumption;
/**
* 抄表方式(1手动 2自动 3用户上报)
@@ -78,7 +85,7 @@ public class TbMeterRecordVo implements Serializable {
* 抄表照片
*/
@ExcelProperty(value = "抄表照片")
- private Long imgOssid;
+ private Long imgOssId;
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRoomVo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRoomVo.java
index 47ca9c6c..c273d81d 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRoomVo.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/vo/smartDevicesVo/TbMeterRoomVo.java
@@ -1,6 +1,6 @@
package org.dromara.property.domain.vo.smartDevicesVo;
-import org.dromara.property.domain.TbMeterRoom;
+import org.dromara.property.domain.entity.smartDevices.TbMeterRoom;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/PlantsPlanProductMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/PlantsPlanProductMapper.java
index 44f2a5bb..c933d2c8 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/PlantsPlanProductMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/PlantsPlanProductMapper.java
@@ -17,6 +17,7 @@ import java.util.List;
public interface PlantsPlanProductMapper extends BaseMapperPlus {
void deleteByPlanId(Long planId);
+ void deleteByPlanIds(List planIds);
List queryProductsInfo(Long planId);
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/TbRoomMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/TbRoomMapper.java
index bcb15a59..87a23973 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/TbRoomMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/TbRoomMapper.java
@@ -1,6 +1,7 @@
package org.dromara.property.mapper;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import org.dromara.property.domain.TbRoom;
import org.dromara.property.domain.vo.TbRoomVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
@@ -19,5 +20,5 @@ public interface TbRoomMapper extends BaseMapperPlus {
//查询房间名称
String queryRoomName(Long roomId);
- Map queryRoomNameList(List ids);
+ List queryRoomNameList(@Param("ids") List ids);
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbLightInfoMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbLightInfoMapper.java
index d94a0397..57cc3eaf 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbLightInfoMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbLightInfoMapper.java
@@ -1,7 +1,7 @@
package org.dromara.property.mapper.smartDevicesMapper;
import org.apache.ibatis.annotations.Mapper;
-import org.dromara.property.domain.TbLightInfo;
+import org.dromara.property.domain.entity.smartDevices.TbLightInfo;
import org.dromara.property.domain.vo.smartDevicesVo.TbLightInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterConfigMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterConfigMapper.java
index e6f62996..2351ce3b 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterConfigMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterConfigMapper.java
@@ -1,7 +1,7 @@
package org.dromara.property.mapper.smartDevicesMapper;
import org.apache.ibatis.annotations.Mapper;
-import org.dromara.property.domain.TbMeterConfig;
+import org.dromara.property.domain.entity.smartDevices.TbMeterConfig;
import org.dromara.property.domain.vo.smartDevicesVo.TbMeterConfigVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterInfoMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterInfoMapper.java
index d454c792..a9401847 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterInfoMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterInfoMapper.java
@@ -1,6 +1,7 @@
package org.dromara.property.mapper.smartDevicesMapper;
-import org.dromara.property.domain.TbMeterInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.dromara.property.domain.entity.smartDevices.TbMeterInfo;
import org.dromara.property.domain.vo.smartDevicesVo.TbMeterInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
@@ -8,8 +9,9 @@ import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
* 水电气Mapper接口
*
* @author lsm
- * @date 2025-07-19
+ * @since 2025-07-19
*/
+@Mapper
public interface TbMeterInfoMapper extends BaseMapperPlus {
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRecordMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRecordMapper.java
index 4c227b72..e82a4650 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRecordMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRecordMapper.java
@@ -1,6 +1,7 @@
package org.dromara.property.mapper.smartDevicesMapper;
-import org.dromara.property.domain.TbMeterRecord;
+import org.apache.ibatis.annotations.Mapper;
+import org.dromara.property.domain.entity.smartDevices.TbMeterRecord;
import org.dromara.property.domain.vo.smartDevicesVo.TbMeterRecordVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
@@ -8,8 +9,9 @@ import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
* 抄记录Mapper接口
*
* @author lsm
- * @date 2025-07-19
+ * @since 2025-07-19
*/
+@Mapper
public interface TbMeterRecordMapper extends BaseMapperPlus {
}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRoomMapper.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRoomMapper.java
index d25eb64b..fd2d46bc 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRoomMapper.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/mapper/smartDevicesMapper/TbMeterRoomMapper.java
@@ -1,7 +1,7 @@
package org.dromara.property.mapper.smartDevicesMapper;
import org.apache.ibatis.annotations.Mapper;
-import org.dromara.property.domain.TbMeterRoom;
+import org.dromara.property.domain.entity.smartDevices.TbMeterRoom;
import org.dromara.property.domain.vo.smartDevicesVo.TbMeterRoomVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/rocketmq/RocketMqConstants.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/rocketmq/RocketMqConstants.java
new file mode 100644
index 00000000..df5b8a4e
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/rocketmq/RocketMqConstants.java
@@ -0,0 +1,18 @@
+package org.dromara.property.rocketmq;
+
+/**
+ * @author lsm
+ * @apiNote RocketMqConstants
+ * @since 2025/8/25
+ */
+public interface RocketMqConstants {
+ // mq topic
+ String TOPIC = "SmartParks";
+
+ // mq GROUP
+ String METER_GROUP = "METER_GROUP";
+
+ /*-----------------------------------消息tag------------------------------------*/
+ String METER_RECORD = "METER_RECORD_TAG";
+
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/rocketmq/consumer/MeterRecordConsumer.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/rocketmq/consumer/MeterRecordConsumer.java
new file mode 100644
index 00000000..ed0b801b
--- /dev/null
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/rocketmq/consumer/MeterRecordConsumer.java
@@ -0,0 +1,40 @@
+package org.dromara.property.rocketmq.consumer;
+
+import com.alibaba.fastjson.JSONObject;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.rocketmq.common.message.MessageExt;
+import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
+import org.apache.rocketmq.spring.core.RocketMQListener;
+import org.dromara.property.rocketmq.RocketMqConstants;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+
+/**
+ * @author lsm
+ * @apiNote MeterRecordConsumer
+ * @since 2025/8/25
+ */
+@Slf4j
+@Component
+@RequiredArgsConstructor
+@RocketMQMessageListener(
+ topic = RocketMqConstants.TOPIC,
+ consumerGroup = RocketMqConstants.METER_GROUP,
+ selectorExpression = RocketMqConstants.METER_RECORD
+)
+public class MeterRecordConsumer implements RocketMQListener {
+
+ @Override
+ public void onMessage(MessageExt ext) {
+ log.info("消费仪表上报数据,数据长度={}", ext.getBody().length);
+ try {
+ String message = new String(ext.getBody());
+ log.info("物业仪表上报数据,数据={}", message);
+ } catch (Exception e) {
+ log.error("消费仪表上报数据处理失败,", e);
+ }
+
+ }
+}
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IPlantsPlanProductService.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IPlantsPlanProductService.java
index d7a72d32..50015766 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IPlantsPlanProductService.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IPlantsPlanProductService.java
@@ -67,6 +67,12 @@ public interface IPlantsPlanProductService {
*/
Boolean deleteWithValidByIds(Collection ids, Boolean isValid);
+ /**
+ * 根据方案id删除方案产品
+ * @param ids
+ */
+ void deleteByPlanIds(List ids);
+
/**
* 批量保存租赁方案植物
*
diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IServiceWorkOrdersService.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IServiceWorkOrdersService.java
index c7ac8752..a9707a0c 100644
--- a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IServiceWorkOrdersService.java
+++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/IServiceWorkOrdersService.java
@@ -8,6 +8,7 @@ import org.dromara.property.domain.bo.mobile.MServiceWorkOrdersBo;
import org.dromara.property.domain.vo.ServiceWorkOrderAnalysisVo;
import org.dromara.property.domain.vo.ServiceWorkOrdersInfoVo;
import org.dromara.property.domain.vo.ServiceWorkOrdersVo;
+import org.dromara.property.domain.vo.mobile.MServiceWorkOrdersVo;
import java.util.Collection;
import java.util.List;
@@ -94,4 +95,12 @@ public interface IServiceWorkOrdersService {
* @return
*/
List