From 4afa387b237899d5f841a3070d04739772c22551 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 30 五月 2025 11:17:47 +0800
Subject: [PATCH] 规范二维码生成
---
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleSv.java | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleSv.java b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleSv.java
index 5080bd1..a56be61 100644
--- a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleSv.java
+++ b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleSv.java
@@ -70,6 +70,12 @@
saveRel(schedule);
return scheduleDao.updateByPrimaryKeySelective(schedule);
}
+ @Transactional
+ public long delete(Long id) {
+ this.scheduleRelDao.deleteByScheduleId(id);
+ return scheduleDao.deleteByPrimaryKey(id);
+ }
+
private void saveRel(PrSchedule schedule) {
schedule.relList.forEach(rel -> validateRelData(rel, schedule));
@@ -106,8 +112,8 @@
return scheduleDao.selectByPrimaryKey(id);
}
- public List<BaUser> selectById() {
- List<BaUser> userList = baUserDao.getUserList();
+ public List<BaUser> selectAllUsers() {
+ List<BaUser> userList = baUserDao.selectAll();
return userList;
}
@@ -125,11 +131,11 @@
public List<JSONObject> selectPlan(QueryVo vo) {
List<JSONObject> list = assemblyPlanDao.selectByPlanName(vo.planName);
- Map<Long, JSONObject> map = new ConcurrentHashMap<>(); // 浣跨敤骞跺彂瀹夊叏鐨凪ap
+ Map<String, JSONObject> map = new ConcurrentHashMap<>(); // 浣跨敤骞跺彂瀹夊叏鐨凪ap
for(JSONObject item:list){
- Long planId = (Long) item.getObj("planId");
+ String planId = String.valueOf(item.getObj("planId"));
JSONObject innerObject = new JSONObject()
- .set("nodeId", item.getObj("nodeId"))
+ .set("nodeId", String.valueOf(item.getObj("nodeId")))
.set("content", item.getObj("content"));
if(map.containsKey(planId)){
JSONArray array = (JSONArray)map.get(planId).get("nodes");
--
Gitblit v1.8.0