From ac76a045addf54603e0c7238132419b7deef1edf Mon Sep 17 00:00:00 2001
From: shane <88386378@qq.com>
Date: 星期日, 30 十月 2022 02:52:34 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
service-store/src/main/java/com/java110/store/dao/IScheduleClassesV1ServiceDao.java | 77 +
service-store/src/main/java/com/java110/store/dao/IScheduleClassesStaffV1ServiceDao.java | 89 +
service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesStaffV1ServiceDaoImpl.java | 126 ++
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesStateCmd.java | 89 +
java110-bean/src/main/java/com/java110/dto/scheduleClassesTime/ScheduleClassesTimeDto.java | 95 +
service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesTimeV1ServiceDaoImpl.java | 112 +
service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesStaffV1InnerServiceSMOImpl.java | 104 +
java110-bean/src/main/java/com/java110/dto/scheduleClassesStaff/ScheduleClassesStaffDto.java | 105 +
service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesV1InnerServiceSMOImpl.java | 89 +
java110-bean/src/main/java/com/java110/po/scheduleClassesDay/ScheduleClassesDayPo.java | 75 +
java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesDayV1InnerServiceSMO.java | 68 +
java110-db/src/main/resources/mapper/store/ScheduleClassesV1ServiceDaoImplMapper.xml | 139 ++
java110-db/src/main/resources/mapper/store/ScheduleClassesDayV1ServiceDaoImplMapper.xml | 103 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesCmd.java | 163 ++
service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesTimeV1InnerServiceSMOImpl.java | 89 +
java110-bean/src/main/java/com/java110/po/scheduleClassesStaff/ScheduleClassesStaffPo.java | 75 +
service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesDayV1InnerServiceSMOImpl.java | 119 +
java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesStaffV1InnerServiceSMO.java | 72 +
service-store/src/main/java/com/java110/store/dao/IScheduleClassesTimeV1ServiceDao.java | 77 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesDayCmd.java | 80 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesStaffCmd.java | 80 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesCmd.java | 167 ++
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesStaffCmd.java | 80 +
java110-bean/src/main/java/com/java110/po/scheduleClassesTime/ScheduleClassesTimePo.java | 75 +
java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesV1InnerServiceSMO.java | 68 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesCmd.java | 99 +
java110-db/src/main/resources/mapper/store/ScheduleClassesStaffV1ServiceDaoImplMapper.xml | 127 ++
java110-db/src/main/resources/mapper/store/ScheduleClassesTimeV1ServiceDaoImplMapper.xml | 115 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesStaffCmd.java | 70 +
service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesDayV1ServiceDaoImpl.java | 112 +
service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesV1ServiceDaoImpl.java | 112 +
service-community/src/main/java/com/java110/community/cmd/ownerRepair/SaveOwnerRepairCmd.java | 18
java110-bean/src/main/java/com/java110/po/scheduleClasses/ScheduleClassesPo.java | 114 +
springboot/src/main/java/com/java110/boot/smo/login/impl/PropertyAppLoginSMOImpl.java | 3
java110-bean/src/main/java/com/java110/dto/scheduleClassesDay/ScheduleClassesDayDto.java | 100 +
java110-bean/src/main/java/com/java110/dto/scheduleClasses/ScheduleClassesDto.java | 152 ++
java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesTimeV1InnerServiceSMO.java | 68 +
service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesCmd.java | 125 ++
service-store/src/main/java/com/java110/store/dao/IScheduleClassesDayV1ServiceDao.java | 77 +
39 files changed, 3,706 insertions(+), 2 deletions(-)
diff --git a/java110-bean/src/main/java/com/java110/dto/scheduleClasses/ScheduleClassesDto.java b/java110-bean/src/main/java/com/java110/dto/scheduleClasses/ScheduleClassesDto.java
new file mode 100644
index 0000000..3c46d62
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/dto/scheduleClasses/ScheduleClassesDto.java
@@ -0,0 +1,152 @@
+package com.java110.dto.scheduleClasses;
+
+import com.java110.dto.PageDto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 鎺掔彮鏁版嵁灞傚皝瑁�
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class ScheduleClassesDto extends PageDto implements Serializable {
+
+ public static final String STATE_START = "1001";
+ public static final String STATE_STOP = "2002";
+
+ private String scheduleType;
+ private String scheduleTypeName;
+ private String scheduleCycle;
+ private String computeTime;
+ private String name;
+ private String nameLike;
+ private String remark;
+ private String state;
+ private String stateName;
+ private String storeId;
+ private String scheduleId;
+ private long staffCount;
+
+
+ private Date createTime;
+
+ private String statusCd = "0";
+
+
+ public String getScheduleType() {
+ return scheduleType;
+ }
+
+ public void setScheduleType(String scheduleType) {
+ this.scheduleType = scheduleType;
+ }
+
+ public String getScheduleCycle() {
+ return scheduleCycle;
+ }
+
+ public void setScheduleCycle(String scheduleCycle) {
+ this.scheduleCycle = scheduleCycle;
+ }
+
+ public String getComputeTime() {
+ return computeTime;
+ }
+
+ public void setComputeTime(String computeTime) {
+ this.computeTime = computeTime;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public String getStoreId() {
+ return storeId;
+ }
+
+ public void setStoreId(String storeId) {
+ this.storeId = storeId;
+ }
+
+ public String getScheduleId() {
+ return scheduleId;
+ }
+
+ public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getStatusCd() {
+ return statusCd;
+ }
+
+ public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+
+ public String getScheduleTypeName() {
+ return scheduleTypeName;
+ }
+
+ public void setScheduleTypeName(String scheduleTypeName) {
+ this.scheduleTypeName = scheduleTypeName;
+ }
+
+ public String getNameLike() {
+ return nameLike;
+ }
+
+ public void setNameLike(String nameLike) {
+ this.nameLike = nameLike;
+ }
+
+ public String getStateName() {
+ return stateName;
+ }
+
+ public void setStateName(String stateName) {
+ this.stateName = stateName;
+ }
+
+ public long getStaffCount() {
+ return staffCount;
+ }
+
+ public void setStaffCount(long staffCount) {
+ this.staffCount = staffCount;
+ }
+}
diff --git a/java110-bean/src/main/java/com/java110/dto/scheduleClassesDay/ScheduleClassesDayDto.java b/java110-bean/src/main/java/com/java110/dto/scheduleClassesDay/ScheduleClassesDayDto.java
new file mode 100644
index 0000000..aed956f
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/dto/scheduleClassesDay/ScheduleClassesDayDto.java
@@ -0,0 +1,100 @@
+package com.java110.dto.scheduleClassesDay;
+
+import com.java110.dto.PageDto;
+import com.java110.dto.scheduleClassesTime.ScheduleClassesTimeDto;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * @ClassName FloorDto
+ * @Description 鎺掔彮澶╂暟鎹眰灏佽
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class ScheduleClassesDayDto extends PageDto implements Serializable {
+
+ public static final String WORKDAY_NORMAL = "1001";
+
+ private String workday;
+ private String dayId;
+ private String day;
+ private String scheduleId;
+ private String weekFlag;
+
+ private List<ScheduleClassesTimeDto> times;
+
+
+ private Date createTime;
+
+ private String statusCd = "0";
+
+
+ public String getWorkday() {
+ return workday;
+ }
+
+ public void setWorkday(String workday) {
+ this.workday = workday;
+ }
+
+ public String getDayId() {
+ return dayId;
+ }
+
+ public void setDayId(String dayId) {
+ this.dayId = dayId;
+ }
+
+ public String getDay() {
+ return day;
+ }
+
+ public void setDay(String day) {
+ this.day = day;
+ }
+
+ public String getScheduleId() {
+ return scheduleId;
+ }
+
+ public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+
+ public String getWeekFlag() {
+ return weekFlag;
+ }
+
+ public void setWeekFlag(String weekFlag) {
+ this.weekFlag = weekFlag;
+ }
+
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getStatusCd() {
+ return statusCd;
+ }
+
+ public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+
+ public List<ScheduleClassesTimeDto> getTimes() {
+ return times;
+ }
+
+ public void setTimes(List<ScheduleClassesTimeDto> times) {
+ this.times = times;
+ }
+}
diff --git a/java110-bean/src/main/java/com/java110/dto/scheduleClassesStaff/ScheduleClassesStaffDto.java b/java110-bean/src/main/java/com/java110/dto/scheduleClassesStaff/ScheduleClassesStaffDto.java
new file mode 100644
index 0000000..174a8aa
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/dto/scheduleClassesStaff/ScheduleClassesStaffDto.java
@@ -0,0 +1,105 @@
+package com.java110.dto.scheduleClassesStaff;
+
+import com.java110.dto.PageDto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 鎺掔彮鍛樺伐鏁版嵁灞傚皝瑁�
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class ScheduleClassesStaffDto extends PageDto implements Serializable {
+
+ private String staffName;
+ private String storeId;
+ private String scsId;
+ private String scheduleId;
+ private String[] scheduleIds;
+ private String staffId;
+
+ private long staffCount;
+
+
+ private Date createTime;
+
+ private String statusCd = "0";
+
+
+ public String getStaffName() {
+ return staffName;
+ }
+
+ public void setStaffName(String staffName) {
+ this.staffName = staffName;
+ }
+
+ public String getStoreId() {
+ return storeId;
+ }
+
+ public void setStoreId(String storeId) {
+ this.storeId = storeId;
+ }
+
+ public String getScsId() {
+ return scsId;
+ }
+
+ public void setScsId(String scsId) {
+ this.scsId = scsId;
+ }
+
+ public String getScheduleId() {
+ return scheduleId;
+ }
+
+ public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+
+ public String getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(String staffId) {
+ this.staffId = staffId;
+ }
+
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getStatusCd() {
+ return statusCd;
+ }
+
+ public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+
+ public String[] getScheduleIds() {
+ return scheduleIds;
+ }
+
+ public void setScheduleIds(String[] scheduleIds) {
+ this.scheduleIds = scheduleIds;
+ }
+
+ public long getStaffCount() {
+ return staffCount;
+ }
+
+ public void setStaffCount(long staffCount) {
+ this.staffCount = staffCount;
+ }
+}
diff --git a/java110-bean/src/main/java/com/java110/dto/scheduleClassesTime/ScheduleClassesTimeDto.java b/java110-bean/src/main/java/com/java110/dto/scheduleClassesTime/ScheduleClassesTimeDto.java
new file mode 100644
index 0000000..485a0a9
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/dto/scheduleClassesTime/ScheduleClassesTimeDto.java
@@ -0,0 +1,95 @@
+package com.java110.dto.scheduleClassesTime;
+
+import com.java110.dto.PageDto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 鎺掔彮鏃堕棿鏁版嵁灞傚皝瑁�
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class ScheduleClassesTimeDto extends PageDto implements Serializable {
+
+ private String timeId;
+ private String dayId;
+ private String[] dayIds;
+ private String startTime;
+ private String endTime;
+ private String scheduleId;
+
+
+ private Date createTime;
+
+ private String statusCd = "0";
+
+
+ public String getTimeId() {
+ return timeId;
+ }
+
+ public void setTimeId(String timeId) {
+ this.timeId = timeId;
+ }
+
+ public String getDayId() {
+ return dayId;
+ }
+
+ public void setDayId(String dayId) {
+ this.dayId = dayId;
+ }
+
+ public String getStartTime() {
+ return startTime;
+ }
+
+ public void setStartTime(String startTime) {
+ this.startTime = startTime;
+ }
+
+ public String getEndTime() {
+ return endTime;
+ }
+
+ public void setEndTime(String endTime) {
+ this.endTime = endTime;
+ }
+
+ public String getScheduleId() {
+ return scheduleId;
+ }
+
+ public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getStatusCd() {
+ return statusCd;
+ }
+
+ public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+
+ public String[] getDayIds() {
+ return dayIds;
+ }
+
+ public void setDayIds(String[] dayIds) {
+ this.dayIds = dayIds;
+ }
+}
diff --git a/java110-bean/src/main/java/com/java110/po/scheduleClasses/ScheduleClassesPo.java b/java110-bean/src/main/java/com/java110/po/scheduleClasses/ScheduleClassesPo.java
new file mode 100644
index 0000000..66a3ac8
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/po/scheduleClasses/ScheduleClassesPo.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.scheduleClasses;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 绫昏〃杩帮細 Po 鏁版嵁妯″瀷瀹炰綋瀵硅薄 鍩烘湰淇濇寔涓庢暟鎹簱妯″瀷涓�鐩� 鐢ㄤ簬 澧炲姞淇敼鍒犻櫎 绛夋椂鐨勬暟鎹浇浣�
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public class ScheduleClassesPo implements Serializable {
+
+ private String scheduleType;
+ private String scheduleCycle;
+ private String computeTime;
+ private String name;
+ private String remark;
+ private String statusCd = "0";
+ private String state;
+ private String storeId;
+ private String scheduleId;
+
+ public String getScheduleType() {
+ return scheduleType;
+ }
+
+ public void setScheduleType(String scheduleType) {
+ this.scheduleType = scheduleType;
+ }
+
+ public String getScheduleCycle() {
+ return scheduleCycle;
+ }
+
+ public void setScheduleCycle(String scheduleCycle) {
+ this.scheduleCycle = scheduleCycle;
+ }
+
+ public String getComputeTime() {
+ return computeTime;
+ }
+
+ public void setComputeTime(String computeTime) {
+ this.computeTime = computeTime;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getStatusCd() {
+ return statusCd;
+ }
+
+ public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public String getStoreId() {
+ return storeId;
+ }
+
+ public void setStoreId(String storeId) {
+ this.storeId = storeId;
+ }
+
+ public String getScheduleId() {
+ return scheduleId;
+ }
+
+ public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+
+
+}
diff --git a/java110-bean/src/main/java/com/java110/po/scheduleClassesDay/ScheduleClassesDayPo.java b/java110-bean/src/main/java/com/java110/po/scheduleClassesDay/ScheduleClassesDayPo.java
new file mode 100644
index 0000000..c055977
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/po/scheduleClassesDay/ScheduleClassesDayPo.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.scheduleClassesDay;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 绫昏〃杩帮細 Po 鏁版嵁妯″瀷瀹炰綋瀵硅薄 鍩烘湰淇濇寔涓庢暟鎹簱妯″瀷涓�鐩� 鐢ㄤ簬 澧炲姞淇敼鍒犻櫎 绛夋椂鐨勬暟鎹浇浣�
+ * add by 鍚村鏂� at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public class ScheduleClassesDayPo implements Serializable {
+
+ private String workday;
+private String dayId;
+private String statusCd = "0";
+private String day;
+private String scheduleId;
+private String weekFlag;
+public String getWorkday() {
+ return workday;
+ }
+public void setWorkday(String workday) {
+ this.workday = workday;
+ }
+public String getDayId() {
+ return dayId;
+ }
+public void setDayId(String dayId) {
+ this.dayId = dayId;
+ }
+public String getStatusCd() {
+ return statusCd;
+ }
+public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+public String getDay() {
+ return day;
+ }
+public void setDay(String day) {
+ this.day = day;
+ }
+public String getScheduleId() {
+ return scheduleId;
+ }
+public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+public String getWeekFlag() {
+ return weekFlag;
+ }
+public void setWeekFlag(String weekFlag) {
+ this.weekFlag = weekFlag;
+ }
+
+
+
+}
diff --git a/java110-bean/src/main/java/com/java110/po/scheduleClassesStaff/ScheduleClassesStaffPo.java b/java110-bean/src/main/java/com/java110/po/scheduleClassesStaff/ScheduleClassesStaffPo.java
new file mode 100644
index 0000000..7c4f1bc
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/po/scheduleClassesStaff/ScheduleClassesStaffPo.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.scheduleClassesStaff;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 绫昏〃杩帮細 Po 鏁版嵁妯″瀷瀹炰綋瀵硅薄 鍩烘湰淇濇寔涓庢暟鎹簱妯″瀷涓�鐩� 鐢ㄤ簬 澧炲姞淇敼鍒犻櫎 绛夋椂鐨勬暟鎹浇浣�
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public class ScheduleClassesStaffPo implements Serializable {
+
+ private String staffName;
+private String statusCd = "0";
+private String storeId;
+private String scsId;
+private String scheduleId;
+private String staffId;
+public String getStaffName() {
+ return staffName;
+ }
+public void setStaffName(String staffName) {
+ this.staffName = staffName;
+ }
+public String getStatusCd() {
+ return statusCd;
+ }
+public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+public String getStoreId() {
+ return storeId;
+ }
+public void setStoreId(String storeId) {
+ this.storeId = storeId;
+ }
+public String getScsId() {
+ return scsId;
+ }
+public void setScsId(String scsId) {
+ this.scsId = scsId;
+ }
+public String getScheduleId() {
+ return scheduleId;
+ }
+public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+public String getStaffId() {
+ return staffId;
+ }
+public void setStaffId(String staffId) {
+ this.staffId = staffId;
+ }
+
+
+
+}
diff --git a/java110-bean/src/main/java/com/java110/po/scheduleClassesTime/ScheduleClassesTimePo.java b/java110-bean/src/main/java/com/java110/po/scheduleClassesTime/ScheduleClassesTimePo.java
new file mode 100644
index 0000000..64324fb
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/po/scheduleClassesTime/ScheduleClassesTimePo.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.scheduleClassesTime;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 绫昏〃杩帮細 Po 鏁版嵁妯″瀷瀹炰綋瀵硅薄 鍩烘湰淇濇寔涓庢暟鎹簱妯″瀷涓�鐩� 鐢ㄤ簬 澧炲姞淇敼鍒犻櫎 绛夋椂鐨勬暟鎹浇浣�
+ * add by 鍚村鏂� at 2022-10-29 15:53:23 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public class ScheduleClassesTimePo implements Serializable {
+
+ private String timeId;
+private String dayId;
+private String startTime;
+private String statusCd = "0";
+private String endTime;
+private String scheduleId;
+public String getTimeId() {
+ return timeId;
+ }
+public void setTimeId(String timeId) {
+ this.timeId = timeId;
+ }
+public String getDayId() {
+ return dayId;
+ }
+public void setDayId(String dayId) {
+ this.dayId = dayId;
+ }
+public String getStartTime() {
+ return startTime;
+ }
+public void setStartTime(String startTime) {
+ this.startTime = startTime;
+ }
+public String getStatusCd() {
+ return statusCd;
+ }
+public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+public String getEndTime() {
+ return endTime;
+ }
+public void setEndTime(String endTime) {
+ this.endTime = endTime;
+ }
+public String getScheduleId() {
+ return scheduleId;
+ }
+public void setScheduleId(String scheduleId) {
+ this.scheduleId = scheduleId;
+ }
+
+
+
+}
diff --git a/java110-db/src/main/resources/mapper/store/ScheduleClassesDayV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ScheduleClassesDayV1ServiceDaoImplMapper.xml
new file mode 100644
index 0000000..892100b
--- /dev/null
+++ b/java110-db/src/main/resources/mapper/store/ScheduleClassesDayV1ServiceDaoImplMapper.xml
@@ -0,0 +1,103 @@
+<?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="scheduleClassesDayV1ServiceDaoImpl">
+
+
+ <!-- 淇濆瓨鎺掔彮澶╀俊鎭� add by wuxw 2018-07-03 -->
+ <insert id="saveScheduleClassesDayInfo" parameterType="Map">
+ insert into schedule_classes_day(
+ workday,day_id,day,schedule_id,week_flag
+ ) values (
+ #{workday},#{dayId},#{day},#{scheduleId},#{weekFlag}
+ )
+ </insert>
+
+
+ <!-- 鏌ヨ鎺掔彮澶╀俊鎭� add by wuxw 2018-07-03 -->
+ <select id="getScheduleClassesDayInfo" parameterType="Map" resultType="Map">
+ select t.workday,t.day_id,t.day_id dayId,t.status_cd,t.status_cd statusCd,t.day,t.schedule_id,t.schedule_id
+ scheduleId,t.week_flag,t.week_flag weekFlag
+ from schedule_classes_day t
+ where 1 =1
+ <if test="workday !=null and workday != ''">
+ and t.workday= #{workday}
+ </if>
+ <if test="dayId !=null and dayId != ''">
+ and t.day_id= #{dayId}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="day !=null and day != ''">
+ and t.day= #{day}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ <if test="weekFlag !=null and weekFlag != ''">
+ and t.week_flag= #{weekFlag}
+ </if>
+ order by t.day
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+
+ </select>
+
+
+ <!-- 淇敼鎺掔彮澶╀俊鎭� add by wuxw 2018-07-03 -->
+ <update id="updateScheduleClassesDayInfo" parameterType="Map">
+ update schedule_classes_day t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+ <if test="workday !=null and workday != ''">
+ , t.workday= #{workday}
+ </if>
+
+ <if test="day !=null and day != ''">
+ , t.day= #{day}
+ </if>
+
+ <if test="weekFlag !=null and weekFlag != ''">
+ , t.week_flag= #{weekFlag}
+ </if>
+ where 1=1
+ <if test="dayId !=null and dayId != ''">
+ and t.day_id= #{dayId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ </update>
+
+ <!-- 鏌ヨ鎺掔彮澶╂暟閲� add by wuxw 2018-07-03 -->
+ <select id="queryScheduleClassesDaysCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from schedule_classes_day t
+ where 1 =1
+ <if test="workday !=null and workday != ''">
+ and t.workday= #{workday}
+ </if>
+ <if test="dayId !=null and dayId != ''">
+ and t.day_id= #{dayId}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="day !=null and day != ''">
+ and t.day= #{day}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ <if test="weekFlag !=null and weekFlag != ''">
+ and t.week_flag= #{weekFlag}
+ </if>
+
+
+ </select>
+
+</mapper>
diff --git a/java110-db/src/main/resources/mapper/store/ScheduleClassesStaffV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ScheduleClassesStaffV1ServiceDaoImplMapper.xml
new file mode 100644
index 0000000..d45ed42
--- /dev/null
+++ b/java110-db/src/main/resources/mapper/store/ScheduleClassesStaffV1ServiceDaoImplMapper.xml
@@ -0,0 +1,127 @@
+<?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="scheduleClassesStaffV1ServiceDaoImpl">
+
+
+ <!-- 淇濆瓨鎺掔彮鍛樺伐淇℃伅 add by wuxw 2018-07-03 -->
+ <insert id="saveScheduleClassesStaffInfo" parameterType="Map">
+ insert into schedule_classes_staff(
+ staff_name,store_id,scs_id,schedule_id,staff_id
+ ) values (
+ #{staffName},#{storeId},#{scsId},#{scheduleId},#{staffId}
+ )
+ </insert>
+
+
+ <!-- 鏌ヨ鎺掔彮鍛樺伐淇℃伅 add by wuxw 2018-07-03 -->
+ <select id="getScheduleClassesStaffInfo" parameterType="Map" resultType="Map">
+ select t.staff_name,t.staff_name staffName,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id
+ storeId,t.scs_id,t.scs_id scsId,t.schedule_id,t.schedule_id scheduleId,t.staff_id,t.staff_id staffId
+ from schedule_classes_staff t
+ where 1 =1
+ <if test="staffName !=null and staffName != ''">
+ and t.staff_name= #{staffName}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="scsId !=null and scsId != ''">
+ and t.scs_id= #{scsId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ <if test="staffId !=null and staffId != ''">
+ and t.staff_id= #{staffId}
+ </if>
+ order by t.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+
+ </select>
+
+
+ <!-- 淇敼鎺掔彮鍛樺伐淇℃伅 add by wuxw 2018-07-03 -->
+ <update id="updateScheduleClassesStaffInfo" parameterType="Map">
+ update schedule_classes_staff t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+ <if test="staffName !=null and staffName != ''">
+ , t.staff_name= #{staffName}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ , t.store_id= #{storeId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ , t.schedule_id= #{scheduleId}
+ </if>
+ <if test="staffId !=null and staffId != ''">
+ , t.staff_id= #{staffId}
+ </if>
+ where 1=1
+ <if test="scsId !=null and scsId != ''">
+ and t.scs_id= #{scsId}
+ </if>
+
+ </update>
+
+ <!-- 鏌ヨ鎺掔彮鍛樺伐鏁伴噺 add by wuxw 2018-07-03 -->
+ <select id="queryScheduleClassesStaffsCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from schedule_classes_staff t
+ where 1 =1
+ <if test="staffName !=null and staffName != ''">
+ and t.staff_name= #{staffName}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="scsId !=null and scsId != ''">
+ and t.scs_id= #{scsId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ <if test="staffId !=null and staffId != ''">
+ and t.staff_id= #{staffId}
+ </if>
+
+
+ </select>
+
+ <!-- 鏌ヨ鎺掔彮鍛樺伐淇℃伅 add by wuxw 2018-07-03 -->
+ <select id="getGroupScheduleClassesStaffInfo" parameterType="Map" resultType="Map">
+ select t.schedule_id scheduleId,count(1) staffCount
+ from schedule_classes_staff t
+ where 1 =1
+ and t.status_cd= '0'
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="scsId !=null and scsId != ''">
+ and t.scs_id= #{scsId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ <if test="scheduleIds !=null ">
+ and t.schedule_id in
+ <foreach collection="scheduleIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
+ group by t.schedule_id
+
+ </select>
+
+</mapper>
diff --git a/java110-db/src/main/resources/mapper/store/ScheduleClassesTimeV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ScheduleClassesTimeV1ServiceDaoImplMapper.xml
new file mode 100644
index 0000000..fbc8ed7
--- /dev/null
+++ b/java110-db/src/main/resources/mapper/store/ScheduleClassesTimeV1ServiceDaoImplMapper.xml
@@ -0,0 +1,115 @@
+<?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="scheduleClassesTimeV1ServiceDaoImpl">
+
+
+ <!-- 淇濆瓨鎺掔彮鏃堕棿淇℃伅 add by wuxw 2018-07-03 -->
+ <insert id="saveScheduleClassesTimeInfo" parameterType="Map">
+ insert into schedule_classes_time(
+ time_id,day_id,start_time,end_time,schedule_id
+ ) values (
+ #{timeId},#{dayId},#{startTime},#{endTime},#{scheduleId}
+ )
+ </insert>
+
+
+ <!-- 鏌ヨ鎺掔彮鏃堕棿淇℃伅 add by wuxw 2018-07-03 -->
+ <select id="getScheduleClassesTimeInfo" parameterType="Map" resultType="Map">
+ select t.time_id,t.time_id timeId,t.day_id,t.day_id dayId,t.start_time,t.start_time
+ startTime,t.status_cd,t.status_cd statusCd,t.end_time,t.end_time endTime,t.schedule_id,t.schedule_id scheduleId
+ from schedule_classes_time t
+ where 1 =1
+ <if test="timeId !=null and timeId != ''">
+ and t.time_id= #{timeId}
+ </if>
+ <if test="dayId !=null and dayId != ''">
+ and t.day_id= #{dayId}
+ </if>
+ <if test="dayIds !=null">
+ and t.day_id in
+ <foreach collection="dayIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
+ <if test="startTime !=null and startTime != ''">
+ and t.start_time= #{startTime}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ and t.end_time= #{endTime}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ order by t.start_time
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+
+ </select>
+
+
+ <!-- 淇敼鎺掔彮鏃堕棿淇℃伅 add by wuxw 2018-07-03 -->
+ <update id="updateScheduleClassesTimeInfo" parameterType="Map">
+ update schedule_classes_time t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+ <if test="dayId !=null and dayId != ''">
+ , t.day_id= #{dayId}
+ </if>
+ <if test="startTime !=null and startTime != ''">
+ , t.start_time= #{startTime}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ , t.end_time= #{endTime}
+ </if>
+
+ where 1=1
+ <if test="timeId !=null and timeId != ''">
+ and t.time_id= #{timeId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+
+ </update>
+
+ <!-- 鏌ヨ鎺掔彮鏃堕棿鏁伴噺 add by wuxw 2018-07-03 -->
+ <select id="queryScheduleClassesTimesCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from schedule_classes_time t
+ where 1 =1
+ <if test="timeId !=null and timeId != ''">
+ and t.time_id= #{timeId}
+ </if>
+ <if test="dayId !=null and dayId != ''">
+ and t.day_id= #{dayId}
+ </if>
+ <if test="dayIds !=null">
+ and t.day_id in
+ <foreach collection="dayIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
+ <if test="startTime !=null and startTime != ''">
+ and t.start_time= #{startTime}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ and t.end_time= #{endTime}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+
+
+ </select>
+
+</mapper>
diff --git a/java110-db/src/main/resources/mapper/store/ScheduleClassesV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ScheduleClassesV1ServiceDaoImplMapper.xml
new file mode 100644
index 0000000..1dc57fe
--- /dev/null
+++ b/java110-db/src/main/resources/mapper/store/ScheduleClassesV1ServiceDaoImplMapper.xml
@@ -0,0 +1,139 @@
+<?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="scheduleClassesV1ServiceDaoImpl">
+
+
+ <!-- 淇濆瓨鎺掔彮淇℃伅 add by wuxw 2018-07-03 -->
+ <insert id="saveScheduleClassesInfo" parameterType="Map">
+ insert into schedule_classes(
+ schedule_type,schedule_cycle,compute_time,name,remark,state,store_id,schedule_id
+ ) values (
+ #{scheduleType},#{scheduleCycle},#{computeTime},#{name},#{remark},#{state},#{storeId},#{scheduleId}
+ )
+ </insert>
+
+
+ <!-- 鏌ヨ鎺掔彮淇℃伅 add by wuxw 2018-07-03 -->
+ <select id="getScheduleClassesInfo" parameterType="Map" resultType="Map">
+ select t.schedule_type,t.schedule_type scheduleType,t.schedule_cycle,t.schedule_cycle
+ scheduleCycle,t.compute_time,t.compute_time computeTime,t.name,t.remark,t.status_cd,t.status_cd
+ statusCd,t.state,t.store_id,t.store_id storeId,t.schedule_id,t.schedule_id scheduleId,
+ td.name scheduleTypeName,td1.name stateName,t.create_time createTime
+ from schedule_classes t
+ left join t_dict td on t.schedule_type = td.status_cd and td.table_name = 'schedule_classes' and td.table_columns = 'schedule_type'
+ left join t_dict td1 on t.state = td1.status_cd and td1.table_name = 'schedule_classes' and td1.table_columns = 'state'
+ where 1 =1
+ <if test="scheduleType !=null and scheduleType != ''">
+ and t.schedule_type= #{scheduleType}
+ </if>
+ <if test="scheduleCycle !=null and scheduleCycle != ''">
+ and t.schedule_cycle= #{scheduleCycle}
+ </if>
+ <if test="computeTime !=null and computeTime != ''">
+ and t.compute_time= #{computeTime}
+ </if>
+ <if test="name !=null and name != ''">
+ and t.name= #{name}
+ </if>
+ <if test="nameLike !=null and nameLike != ''">
+ and t.name like concat('%',#{name},'%')
+ </if>
+ <if test="remark !=null and remark != ''">
+ and t.remark= #{remark}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="state !=null and state != ''">
+ and t.state= #{state}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+ order by t.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+
+ </select>
+
+
+ <!-- 淇敼鎺掔彮淇℃伅 add by wuxw 2018-07-03 -->
+ <update id="updateScheduleClassesInfo" parameterType="Map">
+ update schedule_classes t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+ <if test="scheduleType !=null and scheduleType != ''">
+ , t.schedule_type= #{scheduleType}
+ </if>
+ <if test="scheduleCycle !=null and scheduleCycle != ''">
+ , t.schedule_cycle= #{scheduleCycle}
+ </if>
+ <if test="computeTime !=null and computeTime != ''">
+ , t.compute_time= #{computeTime}
+ </if>
+ <if test="name !=null and name != ''">
+ , t.name= #{name}
+ </if>
+ <if test="remark !=null and remark != ''">
+ , t.remark= #{remark}
+ </if>
+ <if test="state !=null and state != ''">
+ , t.state= #{state}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ , t.store_id= #{storeId}
+ </if>
+ where 1=1
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+
+ </update>
+
+ <!-- 鏌ヨ鎺掔彮鏁伴噺 add by wuxw 2018-07-03 -->
+ <select id="queryScheduleClassessCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from schedule_classes t
+ where 1 =1
+ <if test="scheduleType !=null and scheduleType != ''">
+ and t.schedule_type= #{scheduleType}
+ </if>
+ <if test="scheduleCycle !=null and scheduleCycle != ''">
+ and t.schedule_cycle= #{scheduleCycle}
+ </if>
+ <if test="computeTime !=null and computeTime != ''">
+ and t.compute_time= #{computeTime}
+ </if>
+ <if test="name !=null and name != ''">
+ and t.name= #{name}
+ </if>
+ <if test="nameLike !=null and nameLike != ''">
+ and t.name like concat('%',#{name},'%')
+ </if>
+ <if test="remark !=null and remark != ''">
+ and t.remark= #{remark}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="state !=null and state != ''">
+ and t.state= #{state}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="scheduleId !=null and scheduleId != ''">
+ and t.schedule_id= #{scheduleId}
+ </if>
+
+
+ </select>
+
+</mapper>
diff --git a/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesDayV1InnerServiceSMO.java b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesDayV1InnerServiceSMO.java
new file mode 100644
index 0000000..830d9ec
--- /dev/null
+++ b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesDayV1InnerServiceSMO.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.store;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.scheduleClassesDay.ScheduleClassesDayDto;
+import com.java110.po.scheduleClassesDay.ScheduleClassesDayPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙g被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@FeignClient(name = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/scheduleClassesDayV1Api")
+public interface IScheduleClassesDayV1InnerServiceSMO {
+
+
+ @RequestMapping(value = "/saveScheduleClassesDay", method = RequestMethod.POST)
+ public int saveScheduleClassesDay(@RequestBody ScheduleClassesDayPo scheduleClassesDayPo);
+
+ @RequestMapping(value = "/updateScheduleClassesDay", method = RequestMethod.POST)
+ public int updateScheduleClassesDay(@RequestBody ScheduleClassesDayPo scheduleClassesDayPo);
+
+ @RequestMapping(value = "/deleteScheduleClassesDay", method = RequestMethod.POST)
+ public int deleteScheduleClassesDay(@RequestBody ScheduleClassesDayPo scheduleClassesDayPo);
+
+ /**
+ * <p>鏌ヨ灏忓尯妤间俊鎭�</p>
+ *
+ *
+ * @param scheduleClassesDayDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return ScheduleClassesDayDto 瀵硅薄鏁版嵁
+ */
+ @RequestMapping(value = "/queryScheduleClassesDays", method = RequestMethod.POST)
+ List<ScheduleClassesDayDto> queryScheduleClassesDays(@RequestBody ScheduleClassesDayDto scheduleClassesDayDto);
+
+ /**
+ * 鏌ヨ<p>灏忓尯妤�</p>鎬昏褰曟暟
+ *
+ * @param scheduleClassesDayDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return 灏忓尯涓嬬殑灏忓尯妤艰褰曟暟
+ */
+ @RequestMapping(value = "/queryScheduleClassesDaysCount", method = RequestMethod.POST)
+ int queryScheduleClassesDaysCount(@RequestBody ScheduleClassesDayDto scheduleClassesDayDto);
+}
diff --git a/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesStaffV1InnerServiceSMO.java b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesStaffV1InnerServiceSMO.java
new file mode 100644
index 0000000..0481736
--- /dev/null
+++ b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesStaffV1InnerServiceSMO.java
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.store;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.scheduleClassesStaff.ScheduleClassesStaffDto;
+import com.java110.po.scheduleClassesStaff.ScheduleClassesStaffPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙g被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@FeignClient(name = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/scheduleClassesStaffV1Api")
+public interface IScheduleClassesStaffV1InnerServiceSMO {
+
+
+ @RequestMapping(value = "/saveScheduleClassesStaff", method = RequestMethod.POST)
+ public int saveScheduleClassesStaff(@RequestBody ScheduleClassesStaffPo scheduleClassesStaffPo);
+
+ @RequestMapping(value = "/updateScheduleClassesStaff", method = RequestMethod.POST)
+ public int updateScheduleClassesStaff(@RequestBody ScheduleClassesStaffPo scheduleClassesStaffPo);
+
+ @RequestMapping(value = "/deleteScheduleClassesStaff", method = RequestMethod.POST)
+ public int deleteScheduleClassesStaff(@RequestBody ScheduleClassesStaffPo scheduleClassesStaffPo);
+
+ /**
+ * <p>鏌ヨ灏忓尯妤间俊鎭�</p>
+ *
+ *
+ * @param scheduleClassesStaffDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return ScheduleClassesStaffDto 瀵硅薄鏁版嵁
+ */
+ @RequestMapping(value = "/queryScheduleClassesStaffs", method = RequestMethod.POST)
+ List<ScheduleClassesStaffDto> queryScheduleClassesStaffs(@RequestBody ScheduleClassesStaffDto scheduleClassesStaffDto);
+
+ /**
+ * 鏌ヨ<p>灏忓尯妤�</p>鎬昏褰曟暟
+ *
+ * @param scheduleClassesStaffDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return 灏忓尯涓嬬殑灏忓尯妤艰褰曟暟
+ */
+ @RequestMapping(value = "/queryScheduleClassesStaffsCount", method = RequestMethod.POST)
+ int queryScheduleClassesStaffsCount(@RequestBody ScheduleClassesStaffDto scheduleClassesStaffDto);
+
+
+ @RequestMapping(value = "/queryGroupScheduleClassesStaffs", method = RequestMethod.POST)
+ List<ScheduleClassesStaffDto> queryGroupScheduleClassesStaffs(@RequestBody ScheduleClassesStaffDto scheduleClassesStaffDto);
+}
diff --git a/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesTimeV1InnerServiceSMO.java b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesTimeV1InnerServiceSMO.java
new file mode 100644
index 0000000..dc6ac4f
--- /dev/null
+++ b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesTimeV1InnerServiceSMO.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.store;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.scheduleClassesTime.ScheduleClassesTimeDto;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙g被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 15:53:23 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@FeignClient(name = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/scheduleClassesTimeV1Api")
+public interface IScheduleClassesTimeV1InnerServiceSMO {
+
+
+ @RequestMapping(value = "/saveScheduleClassesTime", method = RequestMethod.POST)
+ public int saveScheduleClassesTime(@RequestBody ScheduleClassesTimePo scheduleClassesTimePo);
+
+ @RequestMapping(value = "/updateScheduleClassesTime", method = RequestMethod.POST)
+ public int updateScheduleClassesTime(@RequestBody ScheduleClassesTimePo scheduleClassesTimePo);
+
+ @RequestMapping(value = "/deleteScheduleClassesTime", method = RequestMethod.POST)
+ public int deleteScheduleClassesTime(@RequestBody ScheduleClassesTimePo scheduleClassesTimePo);
+
+ /**
+ * <p>鏌ヨ灏忓尯妤间俊鎭�</p>
+ *
+ *
+ * @param scheduleClassesTimeDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return ScheduleClassesTimeDto 瀵硅薄鏁版嵁
+ */
+ @RequestMapping(value = "/queryScheduleClassesTimes", method = RequestMethod.POST)
+ List<ScheduleClassesTimeDto> queryScheduleClassesTimes(@RequestBody ScheduleClassesTimeDto scheduleClassesTimeDto);
+
+ /**
+ * 鏌ヨ<p>灏忓尯妤�</p>鎬昏褰曟暟
+ *
+ * @param scheduleClassesTimeDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return 灏忓尯涓嬬殑灏忓尯妤艰褰曟暟
+ */
+ @RequestMapping(value = "/queryScheduleClassesTimesCount", method = RequestMethod.POST)
+ int queryScheduleClassesTimesCount(@RequestBody ScheduleClassesTimeDto scheduleClassesTimeDto);
+}
diff --git a/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesV1InnerServiceSMO.java b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesV1InnerServiceSMO.java
new file mode 100644
index 0000000..0cbf134
--- /dev/null
+++ b/java110-interface/src/main/java/com/java110/intf/store/IScheduleClassesV1InnerServiceSMO.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.store;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.scheduleClasses.ScheduleClassesDto;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙g被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@FeignClient(name = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/scheduleClassesV1Api")
+public interface IScheduleClassesV1InnerServiceSMO {
+
+
+ @RequestMapping(value = "/saveScheduleClasses", method = RequestMethod.POST)
+ public int saveScheduleClasses(@RequestBody ScheduleClassesPo scheduleClassesPo);
+
+ @RequestMapping(value = "/updateScheduleClasses", method = RequestMethod.POST)
+ public int updateScheduleClasses(@RequestBody ScheduleClassesPo scheduleClassesPo);
+
+ @RequestMapping(value = "/deleteScheduleClasses", method = RequestMethod.POST)
+ public int deleteScheduleClasses(@RequestBody ScheduleClassesPo scheduleClassesPo);
+
+ /**
+ * <p>鏌ヨ灏忓尯妤间俊鎭�</p>
+ *
+ *
+ * @param scheduleClassesDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return ScheduleClassesDto 瀵硅薄鏁版嵁
+ */
+ @RequestMapping(value = "/queryScheduleClassess", method = RequestMethod.POST)
+ List<ScheduleClassesDto> queryScheduleClassess(@RequestBody ScheduleClassesDto scheduleClassesDto);
+
+ /**
+ * 鏌ヨ<p>灏忓尯妤�</p>鎬昏褰曟暟
+ *
+ * @param scheduleClassesDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return 灏忓尯涓嬬殑灏忓尯妤艰褰曟暟
+ */
+ @RequestMapping(value = "/queryScheduleClassessCount", method = RequestMethod.POST)
+ int queryScheduleClassessCount(@RequestBody ScheduleClassesDto scheduleClassesDto);
+}
diff --git a/service-community/src/main/java/com/java110/community/cmd/ownerRepair/SaveOwnerRepairCmd.java b/service-community/src/main/java/com/java110/community/cmd/ownerRepair/SaveOwnerRepairCmd.java
index 06b2b58..29b7544 100644
--- a/service-community/src/main/java/com/java110/community/cmd/ownerRepair/SaveOwnerRepairCmd.java
+++ b/service-community/src/main/java/com/java110/community/cmd/ownerRepair/SaveOwnerRepairCmd.java
@@ -10,10 +10,12 @@
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.dto.fee.FeeConfigDto;
import com.java110.dto.fee.FeeDto;
+import com.java110.dto.file.FileDto;
import com.java110.dto.file.FileRelDto;
import com.java110.dto.repair.RepairDto;
import com.java110.dto.repair.RepairUserDto;
import com.java110.dto.user.UserDto;
+import com.java110.intf.common.IFileInnerServiceSMO;
import com.java110.intf.common.IFileRelInnerServiceSMO;
import com.java110.intf.community.IRepairPoolV1InnerServiceSMO;
import com.java110.intf.community.IRepairUserV1InnerServiceSMO;
@@ -60,6 +62,9 @@
@Autowired
private IFileRelInnerServiceSMO fileRelInnerServiceSMOImpl;
+
+ @Autowired
+ private IFileInnerServiceSMO fileInnerServiceSMOImpl;
@Autowired
private INotepadV1InnerServiceSMO notepadV1InnerServiceSMOImpl;
@@ -154,9 +159,18 @@
if (reqJson.containsKey("photos") && !StringUtils.isEmpty(reqJson.getString("photos"))) {
JSONArray photos = reqJson.getJSONArray("photos");
for (int _photoIndex = 0; _photoIndex < photos.size(); _photoIndex++) {
- Object _photo = photos.get(_photoIndex);
+ String _photo = photos.getString(_photoIndex);
+ if(_photo.length()> 512){
+ FileDto fileDto = new FileDto();
+ fileDto.setFileId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_file_id));
+ fileDto.setFileName(fileDto.getFileId());
+ fileDto.setContext(_photo);
+ fileDto.setSuffix("jpeg");
+ fileDto.setCommunityId(reqJson.getString("communityId"));
+ _photo = fileInnerServiceSMOImpl.saveFile(fileDto);
+ }
JSONObject businessUnit = new JSONObject();
- businessUnit.put("fileRelId", "-" + (_photoIndex + 1));
+ businessUnit.put("fileRelId", GenerateCodeFactory.getGeneratorId("12"));
businessUnit.put("relTypeCd", FileRelDto.REL_TYPE_CD_REPAIR);
businessUnit.put("saveWay", "ftp");
businessUnit.put("objId", businessOwnerRepair.getString("repairId"));
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesCmd.java
new file mode 100644
index 0000000..da5dcbc
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesCmd.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.store.IScheduleClassesDayV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesTimeV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesV1InnerServiceSMO;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import com.java110.po.scheduleClassesDay.ScheduleClassesDayPo;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 绫昏〃杩帮細鍒犻櫎
+ * 鏈嶅姟缂栫爜锛歴cheduleClasses.deleteScheduleClasses
+ * 璇锋眰璺姴锛�/app/scheduleClasses.DeleteScheduleClasses
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.deleteScheduleClasses")
+public class DeleteScheduleClassesCmd extends Cmd {
+ private static Logger logger = LoggerFactory.getLogger(DeleteScheduleClassesCmd.class);
+
+ @Autowired
+ private IScheduleClassesV1InnerServiceSMO scheduleClassesV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesDayV1InnerServiceSMO scheduleClassesDayV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesTimeV1InnerServiceSMO scheduleClassesTimeV1InnerServiceSMOImpl;
+
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "scheduleId", "scheduleId涓嶈兘涓虹┖");
+
+ }
+
+ @Override
+ @Java110Transactional
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ ScheduleClassesPo scheduleClassesPo = BeanConvertUtil.covertBean(reqJson, ScheduleClassesPo.class);
+ int flag = scheduleClassesV1InnerServiceSMOImpl.deleteScheduleClasses(scheduleClassesPo);
+
+ if (flag < 1) {
+ throw new CmdException("鍒犻櫎鏁版嵁澶辫触");
+ }
+
+ ScheduleClassesDayPo scheduleClassesDayPo = new ScheduleClassesDayPo();
+ scheduleClassesDayPo.setScheduleId(scheduleClassesPo.getScheduleId());
+ flag = scheduleClassesDayV1InnerServiceSMOImpl.deleteScheduleClassesDay(scheduleClassesDayPo);
+
+ if (flag < 1) {
+ throw new CmdException("鏇存柊鏁版嵁澶辫触");
+ }
+
+ ScheduleClassesTimePo scheduleClassesTimePo = new ScheduleClassesTimePo();
+ scheduleClassesTimePo.setScheduleId(scheduleClassesPo.getScheduleId());
+ flag = scheduleClassesTimeV1InnerServiceSMOImpl.deleteScheduleClassesTime(scheduleClassesTimePo);
+
+ if (flag < 1) {
+ throw new CmdException("鏇存柊鏁版嵁澶辫触");
+ }
+
+
+ cmdDataFlowContext.setResponseEntity(ResultVo.success());
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesStaffCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesStaffCmd.java
new file mode 100644
index 0000000..c04d496
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/DeleteScheduleClassesStaffCmd.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.store.IScheduleClassesStaffV1InnerServiceSMO;
+import com.java110.po.scheduleClassesStaff.ScheduleClassesStaffPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+/**
+ * 绫昏〃杩帮細鍒犻櫎
+ * 鏈嶅姟缂栫爜锛歴cheduleClassesStaff.deleteScheduleClassesStaff
+ * 璇锋眰璺姴锛�/app/scheduleClassesStaff.DeleteScheduleClassesStaff
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.deleteScheduleClassesStaff")
+public class DeleteScheduleClassesStaffCmd extends Cmd {
+ private static Logger logger = LoggerFactory.getLogger(DeleteScheduleClassesStaffCmd.class);
+
+ @Autowired
+ private IScheduleClassesStaffV1InnerServiceSMO scheduleClassesStaffV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "scsId", "scsId涓嶈兘涓虹┖");
+ Assert.hasKeyAndValue(reqJson, "scheduleId", "scheduleId涓嶈兘涓虹┖");
+
+ }
+
+ @Override
+ @Java110Transactional
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ ScheduleClassesStaffPo scheduleClassesStaffPo = BeanConvertUtil.covertBean(reqJson, ScheduleClassesStaffPo.class);
+ int flag = scheduleClassesStaffV1InnerServiceSMOImpl.deleteScheduleClassesStaff(scheduleClassesStaffPo);
+
+ if (flag < 1) {
+ throw new CmdException("鍒犻櫎鏁版嵁澶辫触");
+ }
+
+ cmdDataFlowContext.setResponseEntity(ResultVo.success());
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesCmd.java
new file mode 100644
index 0000000..4c8b739
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesCmd.java
@@ -0,0 +1,125 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.dto.scheduleClassesStaff.ScheduleClassesStaffDto;
+import com.java110.intf.store.IScheduleClassesStaffV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesV1InnerServiceSMO;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import com.java110.dto.scheduleClasses.ScheduleClassesDto;
+
+import java.util.List;
+import java.util.ArrayList;
+
+import org.springframework.http.ResponseEntity;
+import org.springframework.http.HttpStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 绫昏〃杩帮細鏌ヨ
+ * 鏈嶅姟缂栫爜锛歴cheduleClasses.listScheduleClasses
+ * 璇锋眰璺姴锛�/app/scheduleClasses.ListScheduleClasses
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.listScheduleClasses")
+public class ListScheduleClassesCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(ListScheduleClassesCmd.class);
+ @Autowired
+ private IScheduleClassesV1InnerServiceSMO scheduleClassesV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesStaffV1InnerServiceSMO scheduleClassesStaffV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ super.validatePageInfo(reqJson);
+ }
+
+ @Override
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ String storeId = cmdDataFlowContext.getReqHeaders().get("store-id");
+
+ ScheduleClassesDto scheduleClassesDto = BeanConvertUtil.covertBean(reqJson, ScheduleClassesDto.class);
+ scheduleClassesDto.setStoreId(storeId);
+
+ int count = scheduleClassesV1InnerServiceSMOImpl.queryScheduleClassessCount(scheduleClassesDto);
+
+ List<ScheduleClassesDto> scheduleClassesDtos = null;
+
+ if (count > 0) {
+ scheduleClassesDtos = scheduleClassesV1InnerServiceSMOImpl.queryScheduleClassess(scheduleClassesDto);
+
+ freshScheduleClassesStaff(scheduleClassesDtos);
+ } else {
+ scheduleClassesDtos = new ArrayList<>();
+ }
+
+ ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, scheduleClassesDtos);
+
+ ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+ cmdDataFlowContext.setResponseEntity(responseEntity);
+ }
+
+ /**
+ * 鍒峰叆鍛樺伐鏁伴噺
+ * @param scheduleClassesDtos
+ */
+ private void freshScheduleClassesStaff(List<ScheduleClassesDto> scheduleClassesDtos) {
+ if(scheduleClassesDtos == null || scheduleClassesDtos.size()< 1){
+ return ;
+ }
+
+ List<String> scheduleIds = new ArrayList<>();
+
+ for(ScheduleClassesDto scheduleClassesDto : scheduleClassesDtos){
+ scheduleIds.add(scheduleClassesDto.getScheduleId());
+ }
+
+
+ ScheduleClassesStaffDto scheduleClassesStaffDto = new ScheduleClassesStaffDto();
+ scheduleClassesStaffDto.setScheduleIds(scheduleIds.toArray(new String[scheduleIds.size()]));
+ List<ScheduleClassesStaffDto> scheduleClassesStaffDtos = scheduleClassesStaffV1InnerServiceSMOImpl.queryGroupScheduleClassesStaffs(scheduleClassesStaffDto);
+
+ for(ScheduleClassesDto scheduleClassesDto : scheduleClassesDtos){
+ for(ScheduleClassesStaffDto scheduleClassesStaffDto1 : scheduleClassesStaffDtos){
+ if(scheduleClassesDto.getScheduleId().equals(scheduleClassesStaffDto1.getScheduleId())){
+ scheduleClassesDto.setStaffCount(scheduleClassesStaffDto1.getStaffCount());
+ }
+ }
+ }
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesDayCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesDayCmd.java
new file mode 100644
index 0000000..1e4296d
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesDayCmd.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.store.IScheduleClassesDayV1InnerServiceSMO;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import com.java110.dto.scheduleClassesDay.ScheduleClassesDayDto;
+import java.util.List;
+import java.util.ArrayList;
+import org.springframework.http.ResponseEntity;
+import org.springframework.http.HttpStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 绫昏〃杩帮細鏌ヨ
+ * 鏈嶅姟缂栫爜锛歴cheduleClassesDay.listScheduleClassesDay
+ * 璇锋眰璺姴锛�/app/scheduleClassesDay.ListScheduleClassesDay
+ * add by 鍚村鏂� at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.listScheduleClassesDay")
+public class ListScheduleClassesDayCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(ListScheduleClassesDayCmd.class);
+ @Autowired
+ private IScheduleClassesDayV1InnerServiceSMO scheduleClassesDayV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ super.validatePageInfo(reqJson);
+ }
+
+ @Override
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ ScheduleClassesDayDto scheduleClassesDayDto = BeanConvertUtil.covertBean(reqJson, ScheduleClassesDayDto.class);
+
+ int count = scheduleClassesDayV1InnerServiceSMOImpl.queryScheduleClassesDaysCount(scheduleClassesDayDto);
+
+ List<ScheduleClassesDayDto> scheduleClassesDayDtos = null;
+
+ if (count > 0) {
+ scheduleClassesDayDtos = scheduleClassesDayV1InnerServiceSMOImpl.queryScheduleClassesDays(scheduleClassesDayDto);
+ } else {
+ scheduleClassesDayDtos = new ArrayList<>();
+ }
+
+ ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, scheduleClassesDayDtos);
+
+ ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+ cmdDataFlowContext.setResponseEntity(responseEntity);
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesStaffCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesStaffCmd.java
new file mode 100644
index 0000000..c2fcbab
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/ListScheduleClassesStaffCmd.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.store.IScheduleClassesStaffV1InnerServiceSMO;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import com.java110.dto.scheduleClassesStaff.ScheduleClassesStaffDto;
+import java.util.List;
+import java.util.ArrayList;
+import org.springframework.http.ResponseEntity;
+import org.springframework.http.HttpStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 绫昏〃杩帮細鏌ヨ
+ * 鏈嶅姟缂栫爜锛歴cheduleClassesStaff.listScheduleClassesStaff
+ * 璇锋眰璺姴锛�/app/scheduleClassesStaff.ListScheduleClassesStaff
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.listScheduleClassesStaff")
+public class ListScheduleClassesStaffCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(ListScheduleClassesStaffCmd.class);
+ @Autowired
+ private IScheduleClassesStaffV1InnerServiceSMO scheduleClassesStaffV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ super.validatePageInfo(reqJson);
+ }
+
+ @Override
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ ScheduleClassesStaffDto scheduleClassesStaffDto = BeanConvertUtil.covertBean(reqJson, ScheduleClassesStaffDto.class);
+
+ int count = scheduleClassesStaffV1InnerServiceSMOImpl.queryScheduleClassesStaffsCount(scheduleClassesStaffDto);
+
+ List<ScheduleClassesStaffDto> scheduleClassesStaffDtos = null;
+
+ if (count > 0) {
+ scheduleClassesStaffDtos = scheduleClassesStaffV1InnerServiceSMOImpl.queryScheduleClassesStaffs(scheduleClassesStaffDto);
+ } else {
+ scheduleClassesStaffDtos = new ArrayList<>();
+ }
+
+ ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, scheduleClassesStaffDtos);
+
+ ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+ cmdDataFlowContext.setResponseEntity(responseEntity);
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesCmd.java
new file mode 100644
index 0000000..4fa37a8
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesCmd.java
@@ -0,0 +1,163 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.dto.scheduleClasses.ScheduleClassesDto;
+import com.java110.dto.scheduleClassesDay.ScheduleClassesDayDto;
+import com.java110.intf.store.IScheduleClassesDayV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesTimeV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesV1InnerServiceSMO;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import com.java110.po.scheduleClassesDay.ScheduleClassesDayPo;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.utils.util.DateUtil;
+import com.java110.utils.util.StringUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 绫昏〃杩帮細淇濆瓨
+ * 鏈嶅姟缂栫爜锛歴cheduleClasses.saveScheduleClasses
+ * 璇锋眰璺姴锛�/app/scheduleClasses.SaveScheduleClasses
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.saveScheduleClasses")
+public class SaveScheduleClassesCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(SaveScheduleClassesCmd.class);
+
+ public static final String CODE_PREFIX_ID = "10";
+
+ @Autowired
+ private IScheduleClassesV1InnerServiceSMO scheduleClassesV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesDayV1InnerServiceSMO scheduleClassesDayV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesTimeV1InnerServiceSMO scheduleClassesTimeV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "name", "璇锋眰鎶ユ枃涓湭鍖呭惈name");
+ Assert.hasKeyAndValue(reqJson, "scheduleType", "璇锋眰鎶ユ枃涓湭鍖呭惈scheduleType");
+ Assert.hasKeyAndValue(reqJson, "scheduleCycle", "璇锋眰鎶ユ枃涓湭鍖呭惈scheduleCycle");
+
+ if(!reqJson.containsKey("days")){
+ throw new CmdException("鏈寘鍚ぉ");
+ }
+
+ JSONArray days = reqJson.getJSONArray("days");
+
+ if(days.size() <1){
+ throw new CmdException("鏈寘鍚ぉ");
+ }
+
+
+ JSONObject day = null;
+ JSONArray times = null;
+ for(int dayIndex = 0 ; dayIndex < days.size(); dayIndex++){
+ day = days.getJSONObject(dayIndex);
+
+ if(!ScheduleClassesDayDto.WORKDAY_NORMAL.equals(day.getString("workday"))){
+ continue;
+ }
+ if(!day.containsKey("times")){
+ throw new CmdException("鏈寘鏃堕棿");
+ }
+ times = day.getJSONArray("times");
+ if(times.size() <1){
+ throw new CmdException("鏈寘鏃堕棿");
+ }
+
+ }
+
+ }
+
+ @Override
+ @Java110Transactional
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ String storeId = cmdDataFlowContext.getReqHeaders().get("store-id");
+
+ ScheduleClassesPo scheduleClassesPo = BeanConvertUtil.covertBean(reqJson, ScheduleClassesPo.class);
+ scheduleClassesPo.setScheduleId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+ scheduleClassesPo.setStoreId(storeId);
+ scheduleClassesPo.setState(ScheduleClassesDto.STATE_START);
+ scheduleClassesPo.setComputeTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_B));
+ int flag = scheduleClassesV1InnerServiceSMOImpl.saveScheduleClasses(scheduleClassesPo);
+
+ if (flag < 1) {
+ throw new CmdException("淇濆瓨鏁版嵁澶辫触");
+ }
+
+ JSONArray days = reqJson.getJSONArray("days");
+
+ JSONObject day = null;
+ ScheduleClassesDayPo scheduleClassesDayPo = null;
+ JSONObject time = null;
+ ScheduleClassesTimePo scheduleClassesTimePo = null;
+ JSONArray times = null;
+ for(int dayIndex = 0 ; dayIndex < days.size(); dayIndex++){
+ day = days.getJSONObject(dayIndex);
+ scheduleClassesDayPo = new ScheduleClassesDayPo();
+ scheduleClassesDayPo.setDayId(GenerateCodeFactory.getGeneratorId("11"));
+ scheduleClassesDayPo.setDay(day.getString("day"));
+ scheduleClassesDayPo.setScheduleId(scheduleClassesPo.getScheduleId());
+ scheduleClassesDayPo.setWeekFlag(StringUtil.isEmpty(day.getString("weekFlag"))?"1":day.getString("weekFlag"));
+ scheduleClassesDayPo.setWorkday(day.getString("workday"));
+ flag = scheduleClassesDayV1InnerServiceSMOImpl.saveScheduleClassesDay(scheduleClassesDayPo);
+ if (flag < 1) {
+ throw new CmdException("淇濆瓨鏁版嵁澶辫触");
+ }
+ times = day.getJSONArray("times");
+ for(int timeIndex = 0 ;timeIndex < times.size();timeIndex++){
+ time = times.getJSONObject(timeIndex);
+ scheduleClassesTimePo = new ScheduleClassesTimePo();
+ scheduleClassesTimePo.setDayId(scheduleClassesDayPo.getDayId());
+ scheduleClassesTimePo.setEndTime(time.getString("endTime"));
+ scheduleClassesTimePo.setScheduleId(scheduleClassesPo.getScheduleId());
+ scheduleClassesTimePo.setStartTime(time.getString("startTime"));
+ scheduleClassesTimePo.setTimeId(GenerateCodeFactory.getGeneratorId("11"));
+ flag = scheduleClassesTimeV1InnerServiceSMOImpl.saveScheduleClassesTime(scheduleClassesTimePo);
+ if (flag < 1) {
+ throw new CmdException("淇濆瓨鏁版嵁澶辫触");
+ }
+ }
+ }
+
+
+
+ cmdDataFlowContext.setResponseEntity(ResultVo.success());
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesStaffCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesStaffCmd.java
new file mode 100644
index 0000000..f30b8fb
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/SaveScheduleClassesStaffCmd.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.store.IScheduleClassesStaffV1InnerServiceSMO;
+import com.java110.po.scheduleClassesStaff.ScheduleClassesStaffPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 绫昏〃杩帮細淇濆瓨
+ * 鏈嶅姟缂栫爜锛歴cheduleClassesStaff.saveScheduleClassesStaff
+ * 璇锋眰璺姴锛�/app/scheduleClassesStaff.SaveScheduleClassesStaff
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.saveScheduleClassesStaff")
+public class SaveScheduleClassesStaffCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(SaveScheduleClassesStaffCmd.class);
+
+ public static final String CODE_PREFIX_ID = "10";
+
+ @Autowired
+ private IScheduleClassesStaffV1InnerServiceSMO scheduleClassesStaffV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "scheduleId", "璇锋眰鎶ユ枃涓湭鍖呭惈scheduleId");
+ Assert.hasKeyAndValue(reqJson, "staffId", "璇锋眰鎶ユ枃涓湭鍖呭惈staffId");
+ Assert.hasKeyAndValue(reqJson, "staffName", "璇锋眰鎶ユ枃涓湭鍖呭惈staffName");
+
+ }
+
+ @Override
+ @Java110Transactional
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ String storeId = cmdDataFlowContext.getReqHeaders().get("store-id");
+
+ ScheduleClassesStaffPo scheduleClassesStaffPo = BeanConvertUtil.covertBean(reqJson, ScheduleClassesStaffPo.class);
+ scheduleClassesStaffPo.setScsId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+ scheduleClassesStaffPo.setStoreId(storeId);
+ int flag = scheduleClassesStaffV1InnerServiceSMOImpl.saveScheduleClassesStaff(scheduleClassesStaffPo);
+
+ if (flag < 1) {
+ throw new CmdException("淇濆瓨鏁版嵁澶辫触");
+ }
+
+ cmdDataFlowContext.setResponseEntity(ResultVo.success());
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesCmd.java
new file mode 100644
index 0000000..24840f4
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesCmd.java
@@ -0,0 +1,167 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.dto.scheduleClassesDay.ScheduleClassesDayDto;
+import com.java110.intf.store.IScheduleClassesDayV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesTimeV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesV1InnerServiceSMO;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import com.java110.po.scheduleClassesDay.ScheduleClassesDayPo;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.utils.util.StringUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 绫昏〃杩帮細鏇存柊
+ * 鏈嶅姟缂栫爜锛歴cheduleClasses.updateScheduleClasses
+ * 璇锋眰璺姴锛�/app/scheduleClasses.UpdateScheduleClasses
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.updateScheduleClasses")
+public class UpdateScheduleClassesCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(UpdateScheduleClassesCmd.class);
+
+
+ @Autowired
+ private IScheduleClassesV1InnerServiceSMO scheduleClassesV1InnerServiceSMOImpl;
+
+
+ @Autowired
+ private IScheduleClassesDayV1InnerServiceSMO scheduleClassesDayV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesTimeV1InnerServiceSMO scheduleClassesTimeV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "scheduleId", "scheduleId涓嶈兘涓虹┖");
+
+ Assert.hasKeyAndValue(reqJson, "name", "璇锋眰鎶ユ枃涓湭鍖呭惈name");
+ Assert.hasKeyAndValue(reqJson, "scheduleType", "璇锋眰鎶ユ枃涓湭鍖呭惈scheduleType");
+ Assert.hasKeyAndValue(reqJson, "scheduleCycle", "璇锋眰鎶ユ枃涓湭鍖呭惈scheduleCycle");
+
+ if(!reqJson.containsKey("days")){
+ throw new CmdException("鏈寘鍚ぉ");
+ }
+
+ JSONArray days = reqJson.getJSONArray("days");
+ if(days.size() <1){
+ throw new CmdException("鏈寘鍚ぉ");
+ }
+
+ JSONObject day = null;
+ JSONArray times = null;
+ for(int dayIndex = 0 ; dayIndex < days.size(); dayIndex++){
+ day = days.getJSONObject(dayIndex);
+
+ if(!ScheduleClassesDayDto.WORKDAY_NORMAL.equals(day.getString("workday"))){
+ continue;
+ }
+ if(!day.containsKey("times")){
+ throw new CmdException("鏈寘鏃堕棿");
+ }
+ times = day.getJSONArray("times");
+ if(times.size() <1){
+ throw new CmdException("鏈寘鏃堕棿");
+ }
+
+ }
+ }
+
+ @Override
+ @Java110Transactional
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ ScheduleClassesPo scheduleClassesPo = BeanConvertUtil.covertBean(reqJson, ScheduleClassesPo.class);
+ int flag = scheduleClassesV1InnerServiceSMOImpl.updateScheduleClasses(scheduleClassesPo);
+
+ if (flag < 1) {
+ throw new CmdException("鏇存柊鏁版嵁澶辫触");
+ }
+
+ ScheduleClassesDayPo scheduleClassesDayPo = new ScheduleClassesDayPo();
+ scheduleClassesDayPo.setScheduleId(scheduleClassesPo.getScheduleId());
+ flag = scheduleClassesDayV1InnerServiceSMOImpl.deleteScheduleClassesDay(scheduleClassesDayPo);
+
+ if (flag < 1) {
+ throw new CmdException("鏇存柊鏁版嵁澶辫触");
+ }
+
+ ScheduleClassesTimePo scheduleClassesTimePo = new ScheduleClassesTimePo();
+ scheduleClassesTimePo.setScheduleId(scheduleClassesPo.getScheduleId());
+ flag = scheduleClassesTimeV1InnerServiceSMOImpl.deleteScheduleClassesTime(scheduleClassesTimePo);
+
+ if (flag < 1) {
+ throw new CmdException("鏇存柊鏁版嵁澶辫触");
+ }
+
+ JSONArray days = reqJson.getJSONArray("days");
+
+ JSONObject day = null;
+ JSONObject time = null;
+ JSONArray times = null;
+ for(int dayIndex = 0 ; dayIndex < days.size(); dayIndex++){
+ day = days.getJSONObject(dayIndex);
+ scheduleClassesDayPo = new ScheduleClassesDayPo();
+ scheduleClassesDayPo.setDayId(GenerateCodeFactory.getGeneratorId("11"));
+ scheduleClassesDayPo.setDay(day.getString("day"));
+ scheduleClassesDayPo.setScheduleId(scheduleClassesPo.getScheduleId());
+ scheduleClassesDayPo.setWeekFlag(StringUtil.isEmpty(day.getString("weekFlag"))?"1":day.getString("weekFlag"));
+ scheduleClassesDayPo.setWorkday(day.getString("workday"));
+ flag = scheduleClassesDayV1InnerServiceSMOImpl.saveScheduleClassesDay(scheduleClassesDayPo);
+ if (flag < 1) {
+ throw new CmdException("淇濆瓨鏁版嵁澶辫触");
+ }
+ times = day.getJSONArray("times");
+ for(int timeIndex = 0 ;timeIndex < times.size();timeIndex++){
+ time = times.getJSONObject(timeIndex);
+ scheduleClassesTimePo = new ScheduleClassesTimePo();
+ scheduleClassesTimePo.setDayId(scheduleClassesDayPo.getDayId());
+ scheduleClassesTimePo.setEndTime(time.getString("endTime"));
+ scheduleClassesTimePo.setScheduleId(scheduleClassesPo.getScheduleId());
+ scheduleClassesTimePo.setStartTime(time.getString("startTime"));
+ scheduleClassesTimePo.setTimeId(GenerateCodeFactory.getGeneratorId("11"));
+ flag = scheduleClassesTimeV1InnerServiceSMOImpl.saveScheduleClassesTime(scheduleClassesTimePo);
+ if (flag < 1) {
+ throw new CmdException("淇濆瓨鏁版嵁澶辫触");
+ }
+ }
+ }
+
+ cmdDataFlowContext.setResponseEntity(ResultVo.success());
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesStateCmd.java b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesStateCmd.java
new file mode 100644
index 0000000..6f6428f
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/cmd/scheduleClasses/UpdateScheduleClassesStateCmd.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.cmd.scheduleClasses;
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.dto.scheduleClassesDay.ScheduleClassesDayDto;
+import com.java110.intf.store.IScheduleClassesDayV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesTimeV1InnerServiceSMO;
+import com.java110.intf.store.IScheduleClassesV1InnerServiceSMO;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import com.java110.po.scheduleClassesDay.ScheduleClassesDayPo;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.utils.util.StringUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+
+/**
+ * 绫昏〃杩帮細鏇存柊
+ * 鏈嶅姟缂栫爜锛歴cheduleClasses.updateScheduleClassesState
+ * 璇锋眰璺姴锛�/app/scheduleClasses.UpdateScheduleClasses
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Java110Cmd(serviceCode = "scheduleClasses.updateScheduleClassesState")
+public class UpdateScheduleClassesStateCmd extends Cmd {
+
+ private static Logger logger = LoggerFactory.getLogger(UpdateScheduleClassesStateCmd.class);
+
+
+ @Autowired
+ private IScheduleClassesV1InnerServiceSMO scheduleClassesV1InnerServiceSMOImpl;
+
+
+ @Autowired
+ private IScheduleClassesDayV1InnerServiceSMO scheduleClassesDayV1InnerServiceSMOImpl;
+
+ @Autowired
+ private IScheduleClassesTimeV1InnerServiceSMO scheduleClassesTimeV1InnerServiceSMOImpl;
+
+ @Override
+ public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "scheduleId", "scheduleId涓嶈兘涓虹┖");
+
+ Assert.hasKeyAndValue(reqJson, "state", "璇锋眰鎶ユ枃涓湭鍖呭惈鐘舵��");
+
+ }
+
+ @Override
+ @Java110Transactional
+ public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+ ScheduleClassesPo scheduleClassesPo = BeanConvertUtil.covertBean(reqJson, ScheduleClassesPo.class);
+ int flag = scheduleClassesV1InnerServiceSMOImpl.updateScheduleClasses(scheduleClassesPo);
+
+ if (flag < 1) {
+ throw new CmdException("鏇存柊鏁版嵁澶辫触");
+ }
+ cmdDataFlowContext.setResponseEntity(ResultVo.success());
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/IScheduleClassesDayV1ServiceDao.java b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesDayV1ServiceDao.java
new file mode 100644
index 0000000..1dbb98d
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesDayV1ServiceDao.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao;
+
+
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.merchant.BoMerchant;
+import com.java110.entity.merchant.BoMerchantAttr;
+import com.java110.entity.merchant.Merchant;
+import com.java110.entity.merchant.MerchantAttr;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public interface IScheduleClassesDayV1ServiceDao {
+
+
+ /**
+ * 淇濆瓨 鎺掔彮澶╀俊鎭�
+ * @param info
+ * @throws DAOException DAO寮傚父
+ */
+ int saveScheduleClassesDayInfo(Map info) throws DAOException;
+
+
+
+
+ /**
+ * 鏌ヨ鎺掔彮澶╀俊鎭紙instance杩囩▼锛�
+ * 鏍规嵁bId 鏌ヨ鎺掔彮澶╀俊鎭�
+ * @param info bId 淇℃伅
+ * @return 鎺掔彮澶╀俊鎭�
+ * @throws DAOException DAO寮傚父
+ */
+ List<Map> getScheduleClassesDayInfo(Map info) throws DAOException;
+
+
+
+ /**
+ * 淇敼鎺掔彮澶╀俊鎭�
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ int updateScheduleClassesDayInfo(Map info) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鎺掔彮澶╂�绘暟
+ *
+ * @param info 鎺掔彮澶╀俊鎭�
+ * @return 鎺掔彮澶╂暟閲�
+ */
+ int queryScheduleClassesDaysCount(Map info);
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/IScheduleClassesStaffV1ServiceDao.java b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesStaffV1ServiceDao.java
new file mode 100644
index 0000000..ffa253b
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesStaffV1ServiceDao.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao;
+
+
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.merchant.BoMerchant;
+import com.java110.entity.merchant.BoMerchantAttr;
+import com.java110.entity.merchant.Merchant;
+import com.java110.entity.merchant.MerchantAttr;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public interface IScheduleClassesStaffV1ServiceDao {
+
+
+ /**
+ * 淇濆瓨 鎺掔彮鍛樺伐淇℃伅
+ * @param info
+ * @throws DAOException DAO寮傚父
+ */
+ int saveScheduleClassesStaffInfo(Map info) throws DAOException;
+
+
+
+
+ /**
+ * 鏌ヨ鎺掔彮鍛樺伐淇℃伅锛坕nstance杩囩▼锛�
+ * 鏍规嵁bId 鏌ヨ鎺掔彮鍛樺伐淇℃伅
+ * @param info bId 淇℃伅
+ * @return 鎺掔彮鍛樺伐淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ List<Map> getScheduleClassesStaffInfo(Map info) throws DAOException;
+
+
+
+ /**
+ * 淇敼鎺掔彮鍛樺伐淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ int updateScheduleClassesStaffInfo(Map info) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鎺掔彮鍛樺伐鎬绘暟
+ *
+ * @param info 鎺掔彮鍛樺伐淇℃伅
+ * @return 鎺掔彮鍛樺伐鏁伴噺
+ */
+ int queryScheduleClassesStaffsCount(Map info);
+
+
+
+ /**
+ * 鏌ヨ鎺掔彮鍛樺伐淇℃伅锛坕nstance杩囩▼锛�
+ * 鏍规嵁bId 鏌ヨ鎺掔彮鍛樺伐淇℃伅
+ * @param info bId 淇℃伅
+ * @return 鎺掔彮鍛樺伐淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ List<Map> getGroupScheduleClassesStaffInfo(Map info) throws DAOException;
+
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/IScheduleClassesTimeV1ServiceDao.java b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesTimeV1ServiceDao.java
new file mode 100644
index 0000000..aac3ab0
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesTimeV1ServiceDao.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao;
+
+
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.merchant.BoMerchant;
+import com.java110.entity.merchant.BoMerchantAttr;
+import com.java110.entity.merchant.Merchant;
+import com.java110.entity.merchant.MerchantAttr;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 15:53:23 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public interface IScheduleClassesTimeV1ServiceDao {
+
+
+ /**
+ * 淇濆瓨 鎺掔彮鏃堕棿淇℃伅
+ * @param info
+ * @throws DAOException DAO寮傚父
+ */
+ int saveScheduleClassesTimeInfo(Map info) throws DAOException;
+
+
+
+
+ /**
+ * 鏌ヨ鎺掔彮鏃堕棿淇℃伅锛坕nstance杩囩▼锛�
+ * 鏍规嵁bId 鏌ヨ鎺掔彮鏃堕棿淇℃伅
+ * @param info bId 淇℃伅
+ * @return 鎺掔彮鏃堕棿淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ List<Map> getScheduleClassesTimeInfo(Map info) throws DAOException;
+
+
+
+ /**
+ * 淇敼鎺掔彮鏃堕棿淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ int updateScheduleClassesTimeInfo(Map info) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鎺掔彮鏃堕棿鎬绘暟
+ *
+ * @param info 鎺掔彮鏃堕棿淇℃伅
+ * @return 鎺掔彮鏃堕棿鏁伴噺
+ */
+ int queryScheduleClassesTimesCount(Map info);
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/IScheduleClassesV1ServiceDao.java b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesV1ServiceDao.java
new file mode 100644
index 0000000..dfc53ad
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/IScheduleClassesV1ServiceDao.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao;
+
+
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.merchant.BoMerchant;
+import com.java110.entity.merchant.BoMerchantAttr;
+import com.java110.entity.merchant.Merchant;
+import com.java110.entity.merchant.MerchantAttr;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+public interface IScheduleClassesV1ServiceDao {
+
+
+ /**
+ * 淇濆瓨 鎺掔彮淇℃伅
+ * @param info
+ * @throws DAOException DAO寮傚父
+ */
+ int saveScheduleClassesInfo(Map info) throws DAOException;
+
+
+
+
+ /**
+ * 鏌ヨ鎺掔彮淇℃伅锛坕nstance杩囩▼锛�
+ * 鏍规嵁bId 鏌ヨ鎺掔彮淇℃伅
+ * @param info bId 淇℃伅
+ * @return 鎺掔彮淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ List<Map> getScheduleClassesInfo(Map info) throws DAOException;
+
+
+
+ /**
+ * 淇敼鎺掔彮淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ int updateScheduleClassesInfo(Map info) throws DAOException;
+
+
+ /**
+ * 鏌ヨ鎺掔彮鎬绘暟
+ *
+ * @param info 鎺掔彮淇℃伅
+ * @return 鎺掔彮鏁伴噺
+ */
+ int queryScheduleClassessCount(Map info);
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesDayV1ServiceDaoImpl.java b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesDayV1ServiceDaoImpl.java
new file mode 100644
index 0000000..2426b7f
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesDayV1ServiceDaoImpl.java
@@ -0,0 +1,112 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.store.dao.IScheduleClassesDayV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Service("scheduleClassesDayV1ServiceDaoImpl")
+public class ScheduleClassesDayV1ServiceDaoImpl extends BaseServiceDao implements IScheduleClassesDayV1ServiceDao {
+
+ private static Logger logger = LoggerFactory.getLogger(ScheduleClassesDayV1ServiceDaoImpl.class);
+
+
+
+
+
+ /**
+ * 淇濆瓨鎺掔彮澶╀俊鎭� 鍒� instance
+ * @param info bId 淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int saveScheduleClassesDayInfo(Map info) throws DAOException {
+ logger.debug("淇濆瓨 saveScheduleClassesDayInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.insert("scheduleClassesDayV1ServiceDaoImpl.saveScheduleClassesDayInfo",info);
+
+ return saveFlag;
+ }
+
+
+ /**
+ * 鏌ヨ鎺掔彮澶╀俊鎭紙instance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> getScheduleClassesDayInfo(Map info) throws DAOException {
+ logger.debug("鏌ヨ getScheduleClassesDayInfo 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesDayInfos = sqlSessionTemplate.selectList("scheduleClassesDayV1ServiceDaoImpl.getScheduleClassesDayInfo",info);
+
+ return businessScheduleClassesDayInfos;
+ }
+
+
+ /**
+ * 淇敼鎺掔彮澶╀俊鎭�
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int updateScheduleClassesDayInfo(Map info) throws DAOException {
+ logger.debug("淇敼 updateScheduleClassesDayInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.update("scheduleClassesDayV1ServiceDaoImpl.updateScheduleClassesDayInfo",info);
+
+ return saveFlag;
+ }
+
+ /**
+ * 鏌ヨ鎺掔彮澶╂暟閲�
+ * @param info 鎺掔彮澶╀俊鎭�
+ * @return 鎺掔彮澶╂暟閲�
+ */
+ @Override
+ public int queryScheduleClassesDaysCount(Map info) {
+ logger.debug("鏌ヨ queryScheduleClassesDaysCount 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesDayInfos = sqlSessionTemplate.selectList("scheduleClassesDayV1ServiceDaoImpl.queryScheduleClassesDaysCount", info);
+ if (businessScheduleClassesDayInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessScheduleClassesDayInfos.get(0).get("count").toString());
+ }
+
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesStaffV1ServiceDaoImpl.java b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesStaffV1ServiceDaoImpl.java
new file mode 100644
index 0000000..1c6d29e
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesStaffV1ServiceDaoImpl.java
@@ -0,0 +1,126 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.store.dao.IScheduleClassesStaffV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Service("scheduleClassesStaffV1ServiceDaoImpl")
+public class ScheduleClassesStaffV1ServiceDaoImpl extends BaseServiceDao implements IScheduleClassesStaffV1ServiceDao {
+
+ private static Logger logger = LoggerFactory.getLogger(ScheduleClassesStaffV1ServiceDaoImpl.class);
+
+
+
+
+
+ /**
+ * 淇濆瓨鎺掔彮鍛樺伐淇℃伅 鍒� instance
+ * @param info bId 淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int saveScheduleClassesStaffInfo(Map info) throws DAOException {
+ logger.debug("淇濆瓨 saveScheduleClassesStaffInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.insert("scheduleClassesStaffV1ServiceDaoImpl.saveScheduleClassesStaffInfo",info);
+
+ return saveFlag;
+ }
+
+
+ /**
+ * 鏌ヨ鎺掔彮鍛樺伐淇℃伅锛坕nstance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> getScheduleClassesStaffInfo(Map info) throws DAOException {
+ logger.debug("鏌ヨ getScheduleClassesStaffInfo 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesStaffInfos = sqlSessionTemplate.selectList("scheduleClassesStaffV1ServiceDaoImpl.getScheduleClassesStaffInfo",info);
+
+ return businessScheduleClassesStaffInfos;
+ }
+
+
+ /**
+ * 淇敼鎺掔彮鍛樺伐淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int updateScheduleClassesStaffInfo(Map info) throws DAOException {
+ logger.debug("淇敼 updateScheduleClassesStaffInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.update("scheduleClassesStaffV1ServiceDaoImpl.updateScheduleClassesStaffInfo",info);
+
+ return saveFlag;
+ }
+
+ /**
+ * 鏌ヨ鎺掔彮鍛樺伐鏁伴噺
+ * @param info 鎺掔彮鍛樺伐淇℃伅
+ * @return 鎺掔彮鍛樺伐鏁伴噺
+ */
+ @Override
+ public int queryScheduleClassesStaffsCount(Map info) {
+ logger.debug("鏌ヨ queryScheduleClassesStaffsCount 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesStaffInfos = sqlSessionTemplate.selectList("scheduleClassesStaffV1ServiceDaoImpl.queryScheduleClassesStaffsCount", info);
+ if (businessScheduleClassesStaffInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessScheduleClassesStaffInfos.get(0).get("count").toString());
+ }
+
+ /**
+ * 鏌ヨ鎺掔彮鍛樺伐淇℃伅锛坕nstance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> getGroupScheduleClassesStaffInfo(Map info) throws DAOException {
+ logger.debug("鏌ヨ getGroupScheduleClassesStaffInfo 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesStaffInfos = sqlSessionTemplate.selectList("scheduleClassesStaffV1ServiceDaoImpl.getGroupScheduleClassesStaffInfo",info);
+
+ return businessScheduleClassesStaffInfos;
+ }
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesTimeV1ServiceDaoImpl.java b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesTimeV1ServiceDaoImpl.java
new file mode 100644
index 0000000..376205a
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesTimeV1ServiceDaoImpl.java
@@ -0,0 +1,112 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.store.dao.IScheduleClassesTimeV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 15:53:23 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Service("scheduleClassesTimeV1ServiceDaoImpl")
+public class ScheduleClassesTimeV1ServiceDaoImpl extends BaseServiceDao implements IScheduleClassesTimeV1ServiceDao {
+
+ private static Logger logger = LoggerFactory.getLogger(ScheduleClassesTimeV1ServiceDaoImpl.class);
+
+
+
+
+
+ /**
+ * 淇濆瓨鎺掔彮鏃堕棿淇℃伅 鍒� instance
+ * @param info bId 淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int saveScheduleClassesTimeInfo(Map info) throws DAOException {
+ logger.debug("淇濆瓨 saveScheduleClassesTimeInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.insert("scheduleClassesTimeV1ServiceDaoImpl.saveScheduleClassesTimeInfo",info);
+
+ return saveFlag;
+ }
+
+
+ /**
+ * 鏌ヨ鎺掔彮鏃堕棿淇℃伅锛坕nstance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> getScheduleClassesTimeInfo(Map info) throws DAOException {
+ logger.debug("鏌ヨ getScheduleClassesTimeInfo 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesTimeInfos = sqlSessionTemplate.selectList("scheduleClassesTimeV1ServiceDaoImpl.getScheduleClassesTimeInfo",info);
+
+ return businessScheduleClassesTimeInfos;
+ }
+
+
+ /**
+ * 淇敼鎺掔彮鏃堕棿淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int updateScheduleClassesTimeInfo(Map info) throws DAOException {
+ logger.debug("淇敼 updateScheduleClassesTimeInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.update("scheduleClassesTimeV1ServiceDaoImpl.updateScheduleClassesTimeInfo",info);
+
+ return saveFlag;
+ }
+
+ /**
+ * 鏌ヨ鎺掔彮鏃堕棿鏁伴噺
+ * @param info 鎺掔彮鏃堕棿淇℃伅
+ * @return 鎺掔彮鏃堕棿鏁伴噺
+ */
+ @Override
+ public int queryScheduleClassesTimesCount(Map info) {
+ logger.debug("鏌ヨ queryScheduleClassesTimesCount 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesTimeInfos = sqlSessionTemplate.selectList("scheduleClassesTimeV1ServiceDaoImpl.queryScheduleClassesTimesCount", info);
+ if (businessScheduleClassesTimeInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessScheduleClassesTimeInfos.get(0).get("count").toString());
+ }
+
+
+}
diff --git a/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesV1ServiceDaoImpl.java b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesV1ServiceDaoImpl.java
new file mode 100644
index 0000000..21de92d
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/dao/impl/ScheduleClassesV1ServiceDaoImpl.java
@@ -0,0 +1,112 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.store.dao.IScheduleClassesV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 绫昏〃杩帮細
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@Service("scheduleClassesV1ServiceDaoImpl")
+public class ScheduleClassesV1ServiceDaoImpl extends BaseServiceDao implements IScheduleClassesV1ServiceDao {
+
+ private static Logger logger = LoggerFactory.getLogger(ScheduleClassesV1ServiceDaoImpl.class);
+
+
+
+
+
+ /**
+ * 淇濆瓨鎺掔彮淇℃伅 鍒� instance
+ * @param info bId 淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int saveScheduleClassesInfo(Map info) throws DAOException {
+ logger.debug("淇濆瓨 saveScheduleClassesInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.insert("scheduleClassesV1ServiceDaoImpl.saveScheduleClassesInfo",info);
+
+ return saveFlag;
+ }
+
+
+ /**
+ * 鏌ヨ鎺掔彮淇℃伅锛坕nstance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> getScheduleClassesInfo(Map info) throws DAOException {
+ logger.debug("鏌ヨ getScheduleClassesInfo 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesInfos = sqlSessionTemplate.selectList("scheduleClassesV1ServiceDaoImpl.getScheduleClassesInfo",info);
+
+ return businessScheduleClassesInfos;
+ }
+
+
+ /**
+ * 淇敼鎺掔彮淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public int updateScheduleClassesInfo(Map info) throws DAOException {
+ logger.debug("淇敼 updateScheduleClassesInfo 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.update("scheduleClassesV1ServiceDaoImpl.updateScheduleClassesInfo",info);
+
+ return saveFlag;
+ }
+
+ /**
+ * 鏌ヨ鎺掔彮鏁伴噺
+ * @param info 鎺掔彮淇℃伅
+ * @return 鎺掔彮鏁伴噺
+ */
+ @Override
+ public int queryScheduleClassessCount(Map info) {
+ logger.debug("鏌ヨ queryScheduleClassessCount 鍏ュ弬 info : {}",info);
+
+ List<Map> businessScheduleClassesInfos = sqlSessionTemplate.selectList("scheduleClassesV1ServiceDaoImpl.queryScheduleClassessCount", info);
+ if (businessScheduleClassesInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessScheduleClassesInfos.get(0).get("count").toString());
+ }
+
+
+}
diff --git a/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesDayV1InnerServiceSMOImpl.java b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesDayV1InnerServiceSMOImpl.java
new file mode 100644
index 0000000..2726eaa
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesDayV1InnerServiceSMOImpl.java
@@ -0,0 +1,119 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.smo.impl;
+
+
+import com.java110.dto.scheduleClassesTime.ScheduleClassesTimeDto;
+import com.java110.intf.store.IScheduleClassesTimeV1InnerServiceSMO;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import com.java110.store.dao.IScheduleClassesDayV1ServiceDao;
+import com.java110.intf.store.IScheduleClassesDayV1InnerServiceSMO;
+import com.java110.dto.scheduleClassesDay.ScheduleClassesDayDto;
+import com.java110.po.scheduleClassesDay.ScheduleClassesDayPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.user.UserDto;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙e疄鐜扮被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@RestController
+public class ScheduleClassesDayV1InnerServiceSMOImpl extends BaseServiceSMO implements IScheduleClassesDayV1InnerServiceSMO {
+
+ @Autowired
+ private IScheduleClassesDayV1ServiceDao scheduleClassesDayV1ServiceDaoImpl;
+
+ @Autowired
+ private IScheduleClassesTimeV1InnerServiceSMO scheduleClassesTimeV1InnerServiceSMOImpl;
+
+
+ @Override
+ public int saveScheduleClassesDay(@RequestBody ScheduleClassesDayPo scheduleClassesDayPo) {
+ int saveFlag = scheduleClassesDayV1ServiceDaoImpl.saveScheduleClassesDayInfo(BeanConvertUtil.beanCovertMap(scheduleClassesDayPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int updateScheduleClassesDay(@RequestBody ScheduleClassesDayPo scheduleClassesDayPo) {
+ int saveFlag = scheduleClassesDayV1ServiceDaoImpl.updateScheduleClassesDayInfo(BeanConvertUtil.beanCovertMap(scheduleClassesDayPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int deleteScheduleClassesDay(@RequestBody ScheduleClassesDayPo scheduleClassesDayPo) {
+ scheduleClassesDayPo.setStatusCd("1");
+ int saveFlag = scheduleClassesDayV1ServiceDaoImpl.updateScheduleClassesDayInfo(BeanConvertUtil.beanCovertMap(scheduleClassesDayPo));
+ return saveFlag;
+ }
+
+ @Override
+ public List<ScheduleClassesDayDto> queryScheduleClassesDays(@RequestBody ScheduleClassesDayDto scheduleClassesDayDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = scheduleClassesDayDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ scheduleClassesDayDto.setPage((page - 1) * scheduleClassesDayDto.getRow());
+ }
+
+ List<ScheduleClassesDayDto> scheduleClassesDays = BeanConvertUtil.covertBeanList(scheduleClassesDayV1ServiceDaoImpl.getScheduleClassesDayInfo(BeanConvertUtil.beanCovertMap(scheduleClassesDayDto)), ScheduleClassesDayDto.class);
+
+ if(scheduleClassesDays == null || scheduleClassesDays.size() <1){
+ return scheduleClassesDays;
+ }
+
+ List<String> dayIds = new ArrayList<>();
+ for(ScheduleClassesDayDto scheduleClassesDayDto1 : scheduleClassesDays){
+ dayIds.add(scheduleClassesDayDto1.getDayId());
+ }
+
+ ScheduleClassesTimeDto scheduleClassesTimeDto = new ScheduleClassesTimeDto();
+ scheduleClassesTimeDto.setDayIds(dayIds.toArray(new String[dayIds.size()]));
+ List<ScheduleClassesTimeDto> scheduleClassesTimeDtos = scheduleClassesTimeV1InnerServiceSMOImpl.queryScheduleClassesTimes(scheduleClassesTimeDto);
+ List<ScheduleClassesTimeDto> scheduleClassesTimeDtos1 = null;
+ for(ScheduleClassesDayDto scheduleClassesDayDto1 : scheduleClassesDays){
+ scheduleClassesTimeDtos1 = new ArrayList<>();
+ for(ScheduleClassesTimeDto scheduleClassesTimeDto1 : scheduleClassesTimeDtos){
+ if(scheduleClassesDayDto1.getDayId().equals(scheduleClassesTimeDto1.getDayId())) {
+ scheduleClassesTimeDtos1.add(scheduleClassesTimeDto1);
+ }
+ }
+ scheduleClassesDayDto1.setTimes(scheduleClassesTimeDtos1);
+ }
+
+
+ return scheduleClassesDays;
+ }
+
+
+ @Override
+ public int queryScheduleClassesDaysCount(@RequestBody ScheduleClassesDayDto scheduleClassesDayDto) {
+ return scheduleClassesDayV1ServiceDaoImpl.queryScheduleClassesDaysCount(BeanConvertUtil.beanCovertMap(scheduleClassesDayDto)); }
+
+}
diff --git a/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesStaffV1InnerServiceSMOImpl.java b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesStaffV1InnerServiceSMOImpl.java
new file mode 100644
index 0000000..f689d7c
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesStaffV1InnerServiceSMOImpl.java
@@ -0,0 +1,104 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.smo.impl;
+
+
+import com.java110.store.dao.IScheduleClassesStaffV1ServiceDao;
+import com.java110.intf.store.IScheduleClassesStaffV1InnerServiceSMO;
+import com.java110.dto.scheduleClassesStaff.ScheduleClassesStaffDto;
+import com.java110.po.scheduleClassesStaff.ScheduleClassesStaffPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.user.UserDto;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙e疄鐜扮被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 16:16:44 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@RestController
+public class ScheduleClassesStaffV1InnerServiceSMOImpl extends BaseServiceSMO implements IScheduleClassesStaffV1InnerServiceSMO {
+
+ @Autowired
+ private IScheduleClassesStaffV1ServiceDao scheduleClassesStaffV1ServiceDaoImpl;
+
+
+ @Override
+ public int saveScheduleClassesStaff(@RequestBody ScheduleClassesStaffPo scheduleClassesStaffPo) {
+ int saveFlag = scheduleClassesStaffV1ServiceDaoImpl.saveScheduleClassesStaffInfo(BeanConvertUtil.beanCovertMap(scheduleClassesStaffPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int updateScheduleClassesStaff(@RequestBody ScheduleClassesStaffPo scheduleClassesStaffPo) {
+ int saveFlag = scheduleClassesStaffV1ServiceDaoImpl.updateScheduleClassesStaffInfo(BeanConvertUtil.beanCovertMap(scheduleClassesStaffPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int deleteScheduleClassesStaff(@RequestBody ScheduleClassesStaffPo scheduleClassesStaffPo) {
+ scheduleClassesStaffPo.setStatusCd("1");
+ int saveFlag = scheduleClassesStaffV1ServiceDaoImpl.updateScheduleClassesStaffInfo(BeanConvertUtil.beanCovertMap(scheduleClassesStaffPo));
+ return saveFlag;
+ }
+
+ @Override
+ public List<ScheduleClassesStaffDto> queryScheduleClassesStaffs(@RequestBody ScheduleClassesStaffDto scheduleClassesStaffDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = scheduleClassesStaffDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ scheduleClassesStaffDto.setPage((page - 1) * scheduleClassesStaffDto.getRow());
+ }
+
+ List<ScheduleClassesStaffDto> scheduleClassesStaffs = BeanConvertUtil.covertBeanList(scheduleClassesStaffV1ServiceDaoImpl.getScheduleClassesStaffInfo(BeanConvertUtil.beanCovertMap(scheduleClassesStaffDto)), ScheduleClassesStaffDto.class);
+
+ return scheduleClassesStaffs;
+ }
+
+
+ @Override
+ public int queryScheduleClassesStaffsCount(@RequestBody ScheduleClassesStaffDto scheduleClassesStaffDto) {
+ return scheduleClassesStaffV1ServiceDaoImpl.queryScheduleClassesStaffsCount(BeanConvertUtil.beanCovertMap(scheduleClassesStaffDto)); }
+
+ @Override
+ public List<ScheduleClassesStaffDto> queryGroupScheduleClassesStaffs(@RequestBody ScheduleClassesStaffDto scheduleClassesStaffDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = scheduleClassesStaffDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ scheduleClassesStaffDto.setPage((page - 1) * scheduleClassesStaffDto.getRow());
+ }
+
+ List<ScheduleClassesStaffDto> scheduleClassesStaffs = BeanConvertUtil.covertBeanList(scheduleClassesStaffV1ServiceDaoImpl.getGroupScheduleClassesStaffInfo(BeanConvertUtil.beanCovertMap(scheduleClassesStaffDto)), ScheduleClassesStaffDto.class);
+
+ return scheduleClassesStaffs;
+ }
+}
diff --git a/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesTimeV1InnerServiceSMOImpl.java b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesTimeV1InnerServiceSMOImpl.java
new file mode 100644
index 0000000..c22a721
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesTimeV1InnerServiceSMOImpl.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.smo.impl;
+
+
+import com.java110.store.dao.IScheduleClassesTimeV1ServiceDao;
+import com.java110.intf.store.IScheduleClassesTimeV1InnerServiceSMO;
+import com.java110.dto.scheduleClassesTime.ScheduleClassesTimeDto;
+import com.java110.po.scheduleClassesTime.ScheduleClassesTimePo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.user.UserDto;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙e疄鐜扮被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 15:53:23 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@RestController
+public class ScheduleClassesTimeV1InnerServiceSMOImpl extends BaseServiceSMO implements IScheduleClassesTimeV1InnerServiceSMO {
+
+ @Autowired
+ private IScheduleClassesTimeV1ServiceDao scheduleClassesTimeV1ServiceDaoImpl;
+
+
+ @Override
+ public int saveScheduleClassesTime(@RequestBody ScheduleClassesTimePo scheduleClassesTimePo) {
+ int saveFlag = scheduleClassesTimeV1ServiceDaoImpl.saveScheduleClassesTimeInfo(BeanConvertUtil.beanCovertMap(scheduleClassesTimePo));
+ return saveFlag;
+ }
+
+ @Override
+ public int updateScheduleClassesTime(@RequestBody ScheduleClassesTimePo scheduleClassesTimePo) {
+ int saveFlag = scheduleClassesTimeV1ServiceDaoImpl.updateScheduleClassesTimeInfo(BeanConvertUtil.beanCovertMap(scheduleClassesTimePo));
+ return saveFlag;
+ }
+
+ @Override
+ public int deleteScheduleClassesTime(@RequestBody ScheduleClassesTimePo scheduleClassesTimePo) {
+ scheduleClassesTimePo.setStatusCd("1");
+ int saveFlag = scheduleClassesTimeV1ServiceDaoImpl.updateScheduleClassesTimeInfo(BeanConvertUtil.beanCovertMap(scheduleClassesTimePo));
+ return saveFlag;
+ }
+
+ @Override
+ public List<ScheduleClassesTimeDto> queryScheduleClassesTimes(@RequestBody ScheduleClassesTimeDto scheduleClassesTimeDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = scheduleClassesTimeDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ scheduleClassesTimeDto.setPage((page - 1) * scheduleClassesTimeDto.getRow());
+ }
+
+ List<ScheduleClassesTimeDto> scheduleClassesTimes = BeanConvertUtil.covertBeanList(scheduleClassesTimeV1ServiceDaoImpl.getScheduleClassesTimeInfo(BeanConvertUtil.beanCovertMap(scheduleClassesTimeDto)), ScheduleClassesTimeDto.class);
+
+ return scheduleClassesTimes;
+ }
+
+
+ @Override
+ public int queryScheduleClassesTimesCount(@RequestBody ScheduleClassesTimeDto scheduleClassesTimeDto) {
+ return scheduleClassesTimeV1ServiceDaoImpl.queryScheduleClassesTimesCount(BeanConvertUtil.beanCovertMap(scheduleClassesTimeDto)); }
+
+}
diff --git a/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesV1InnerServiceSMOImpl.java b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesV1InnerServiceSMOImpl.java
new file mode 100644
index 0000000..08c8728
--- /dev/null
+++ b/service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesV1InnerServiceSMOImpl.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 鍚村鏂� and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.store.smo.impl;
+
+
+import com.java110.store.dao.IScheduleClassesV1ServiceDao;
+import com.java110.intf.store.IScheduleClassesV1InnerServiceSMO;
+import com.java110.dto.scheduleClasses.ScheduleClassesDto;
+import com.java110.po.scheduleClasses.ScheduleClassesPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.user.UserDto;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 绫昏〃杩帮細 鏈嶅姟涔嬪墠璋冪敤鐨勬帴鍙e疄鐜扮被锛屼笉瀵瑰鎻愪緵鎺ュ彛鑳藉姏 鍙敤浜庢帴鍙e缓璋冪敤
+ * add by 鍚村鏂� at 2022-10-29 15:29:19 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 瀹樼綉锛歨ttp://www.homecommunity.cn
+ * 娓╅Θ鎻愮ず锛氬鏋滄偍瀵规鏂囦欢杩涜淇敼 璇蜂笉瑕佸垹闄ゅ師鏈変綔鑰呭強娉ㄩ噴淇℃伅锛岃琛ュ厖鎮ㄧ殑 淇敼鐨勫師鍥犱互鍙婅仈绯婚偖绠卞涓�
+ * // modify by 寮犱笁 at 2021-09-12 绗�10琛屽湪鏌愮鍦烘櫙涓嬪瓨鍦ㄦ煇绉峛ug 闇�瑕佷慨澶嶏紝娉ㄩ噴10鑷�20琛� 鍔犲叆 20琛岃嚦30琛�
+ */
+@RestController
+public class ScheduleClassesV1InnerServiceSMOImpl extends BaseServiceSMO implements IScheduleClassesV1InnerServiceSMO {
+
+ @Autowired
+ private IScheduleClassesV1ServiceDao scheduleClassesV1ServiceDaoImpl;
+
+
+ @Override
+ public int saveScheduleClasses(@RequestBody ScheduleClassesPo scheduleClassesPo) {
+ int saveFlag = scheduleClassesV1ServiceDaoImpl.saveScheduleClassesInfo(BeanConvertUtil.beanCovertMap(scheduleClassesPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int updateScheduleClasses(@RequestBody ScheduleClassesPo scheduleClassesPo) {
+ int saveFlag = scheduleClassesV1ServiceDaoImpl.updateScheduleClassesInfo(BeanConvertUtil.beanCovertMap(scheduleClassesPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int deleteScheduleClasses(@RequestBody ScheduleClassesPo scheduleClassesPo) {
+ scheduleClassesPo.setStatusCd("1");
+ int saveFlag = scheduleClassesV1ServiceDaoImpl.updateScheduleClassesInfo(BeanConvertUtil.beanCovertMap(scheduleClassesPo));
+ return saveFlag;
+ }
+
+ @Override
+ public List<ScheduleClassesDto> queryScheduleClassess(@RequestBody ScheduleClassesDto scheduleClassesDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = scheduleClassesDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ scheduleClassesDto.setPage((page - 1) * scheduleClassesDto.getRow());
+ }
+
+ List<ScheduleClassesDto> scheduleClassess = BeanConvertUtil.covertBeanList(scheduleClassesV1ServiceDaoImpl.getScheduleClassesInfo(BeanConvertUtil.beanCovertMap(scheduleClassesDto)), ScheduleClassesDto.class);
+
+ return scheduleClassess;
+ }
+
+
+ @Override
+ public int queryScheduleClassessCount(@RequestBody ScheduleClassesDto scheduleClassesDto) {
+ return scheduleClassesV1ServiceDaoImpl.queryScheduleClassessCount(BeanConvertUtil.beanCovertMap(scheduleClassesDto)); }
+
+}
diff --git a/springboot/src/main/java/com/java110/boot/smo/login/impl/PropertyAppLoginSMOImpl.java b/springboot/src/main/java/com/java110/boot/smo/login/impl/PropertyAppLoginSMOImpl.java
index fcc0840..79666fa 100644
--- a/springboot/src/main/java/com/java110/boot/smo/login/impl/PropertyAppLoginSMOImpl.java
+++ b/springboot/src/main/java/com/java110/boot/smo/login/impl/PropertyAppLoginSMOImpl.java
@@ -82,6 +82,9 @@
userInfo.put("storeTypeCd", storeInfo.getString("storeTypeCd"));
JSONObject paramOut = new JSONObject();
paramOut.put("result", 0);
+
+ paramOut.put("code", 0);
+ paramOut.put("msg", "鎴愬姛");
paramOut.put("userInfo", userInfo);
paramOut.put("token", userInfo.getString("token"));
//pd.setToken(JSONObject.parseObject(responseEntity.getBody()).getString("token"));
--
Gitblit v1.8.0