wuxw лет назад: 3
Родитель
Сommit
595135a310

+ 76 - 0
java110-bean/src/main/java/com/java110/dto/scheduleClassesDay/ScheduleClassesDayDto.java

@@ -0,0 +1,76 @@
+package com.java110.dto.scheduleClassesDay;
+
+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 ScheduleClassesDayDto extends PageDto implements Serializable {
+
+    private String workday;
+private String dayId;
+private String day;
+private String scheduleId;
+private String weekFlag;
+
+
+    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;
+    }
+}

+ 75 - 0
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
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释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;
+    }
+
+
+
+}

+ 106 - 0
java110-db/src/main/resources/mapper/store/ScheduleClassesDayV1ServiceDaoImplMapper.xml

@@ -0,0 +1,106 @@
+<?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.create_time desc
+<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="dayId !=null and dayId != ''">
+, t.day_id= #{dayId}
+</if> 
+<if test="day !=null and day != ''">
+, t.day= #{day}
+</if> 
+<if test="scheduleId !=null and scheduleId != ''">
+, t.schedule_id= #{scheduleId}
+</if> 
+<if test="weekFlag !=null and weekFlag != ''">
+, t.week_flag= #{weekFlag}
+</if> 
+ where 1=1 
+    </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>

+ 101 - 104
java110-db/src/main/resources/mapper/store/ScheduleClassesV1ServiceDaoImplMapper.xml

@@ -5,129 +5,126 @@
 <mapper namespace="scheduleClassesV1ServiceDaoImpl">
 <mapper namespace="scheduleClassesV1ServiceDaoImpl">
 
 
 
 
-
-
-
     <!-- 保存排班信息 add by wuxw 2018-07-03 -->
     <!-- 保存排班信息 add by wuxw 2018-07-03 -->
     <insert id="saveScheduleClassesInfo" parameterType="Map">
     <insert id="saveScheduleClassesInfo" parameterType="Map">
         insert into schedule_classes(
         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}
-)
+        schedule_type,schedule_cycle,compute_time,name,remark,state,store_id,schedule_id
+        ) values (
+        #{scheduleType},#{scheduleCycle},#{computeTime},#{name},#{remark},#{state},#{storeId},#{scheduleId}
+        )
     </insert>
     </insert>
 
 
 
 
-
     <!-- 查询排班信息 add by wuxw 2018-07-03 -->
     <!-- 查询排班信息 add by wuxw 2018-07-03 -->
     <select id="getScheduleClassesInfo" parameterType="Map" resultType="Map">
     <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 
-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="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 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
+        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="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>
     </select>
 
 
 
 
-
-
     <!-- 修改排班信息 add by wuxw 2018-07-03 -->
     <!-- 修改排班信息 add by wuxw 2018-07-03 -->
     <update id="updateScheduleClassesInfo" parameterType="Map">
     <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 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>
     </update>
 
 
     <!-- 查询排班数量 add by wuxw 2018-07-03 -->
     <!-- 查询排班数量 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="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 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="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>
+    </select>
 
 
 </mapper>
 </mapper>

+ 68 - 0
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;
+
+/**
+ * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释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);
+}

+ 80 - 0
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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:scheduleClassesDay.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
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释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);
+    }
+}

+ 77 - 0
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
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释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);
+
+}

+ 112 - 0
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
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释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());
+    }
+
+
+}

+ 89 - 0
service-store/src/main/java/com/java110/store/smo/impl/ScheduleClassesDayV1InnerServiceSMOImpl.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.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;
+
+/**
+ * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2022-10-29 15:42:28 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@RestController
+public class ScheduleClassesDayV1InnerServiceSMOImpl extends BaseServiceSMO implements IScheduleClassesDayV1InnerServiceSMO {
+
+    @Autowired
+    private IScheduleClassesDayV1ServiceDao scheduleClassesDayV1ServiceDaoImpl;
+
+
+    @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);
+
+        return scheduleClassesDays;
+    }
+
+
+    @Override
+    public int queryScheduleClassesDaysCount(@RequestBody ScheduleClassesDayDto scheduleClassesDayDto) {
+        return scheduleClassesDayV1ServiceDaoImpl.queryScheduleClassesDaysCount(BeanConvertUtil.beanCovertMap(scheduleClassesDayDto));    }
+
+}