| New file |
| | |
| | | package com.java110.dto.workCycle; |
| | | |
| | | 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 WorkCycleDto extends PageDto implements Serializable { |
| | | |
| | | private String workCycle; |
| | | private String period; |
| | | private String beforeTime; |
| | | private String cycleId; |
| | | private String periodWorkday; |
| | | private String cycleStartTime; |
| | | private String storeId; |
| | | private String workId; |
| | | private String cycleEndTime; |
| | | private String staffName; |
| | | private String periodMonth; |
| | | private String communityId; |
| | | private String staffId; |
| | | private String periodDay; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getWorkCycle() { |
| | | return workCycle; |
| | | } |
| | | public void setWorkCycle(String workCycle) { |
| | | this.workCycle = workCycle; |
| | | } |
| | | public String getPeriod() { |
| | | return period; |
| | | } |
| | | public void setPeriod(String period) { |
| | | this.period = period; |
| | | } |
| | | public String getBeforeTime() { |
| | | return beforeTime; |
| | | } |
| | | public void setBeforeTime(String beforeTime) { |
| | | this.beforeTime = beforeTime; |
| | | } |
| | | public String getCycleId() { |
| | | return cycleId; |
| | | } |
| | | public void setCycleId(String cycleId) { |
| | | this.cycleId = cycleId; |
| | | } |
| | | public String getPeriodWorkday() { |
| | | return periodWorkday; |
| | | } |
| | | public void setPeriodWorkday(String periodWorkday) { |
| | | this.periodWorkday = periodWorkday; |
| | | } |
| | | public String getCycleStartTime() { |
| | | return cycleStartTime; |
| | | } |
| | | public void setCycleStartTime(String cycleStartTime) { |
| | | this.cycleStartTime = cycleStartTime; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getWorkId() { |
| | | return workId; |
| | | } |
| | | public void setWorkId(String workId) { |
| | | this.workId = workId; |
| | | } |
| | | public String getCycleEndTime() { |
| | | return cycleEndTime; |
| | | } |
| | | public void setCycleEndTime(String cycleEndTime) { |
| | | this.cycleEndTime = cycleEndTime; |
| | | } |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | public String getPeriodMonth() { |
| | | return periodMonth; |
| | | } |
| | | public void setPeriodMonth(String periodMonth) { |
| | | this.periodMonth = periodMonth; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getStaffId() { |
| | | return staffId; |
| | | } |
| | | public void setStaffId(String staffId) { |
| | | this.staffId = staffId; |
| | | } |
| | | public String getPeriodDay() { |
| | | return periodDay; |
| | | } |
| | | public void setPeriodDay(String periodDay) { |
| | | this.periodDay = periodDay; |
| | | } |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.workPool; |
| | | |
| | | 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 WorkPoolDto extends PageDto implements Serializable { |
| | | |
| | | private String workCycle; |
| | | private String createUserId; |
| | | private String createUserName; |
| | | private String storeId; |
| | | private String workName; |
| | | private String workId; |
| | | private String wtId; |
| | | private String createUserTel; |
| | | private String startTime; |
| | | private String endTime; |
| | | private String state; |
| | | private String communityId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getWorkCycle() { |
| | | return workCycle; |
| | | } |
| | | public void setWorkCycle(String workCycle) { |
| | | this.workCycle = workCycle; |
| | | } |
| | | public String getCreateUserId() { |
| | | return createUserId; |
| | | } |
| | | public void setCreateUserId(String createUserId) { |
| | | this.createUserId = createUserId; |
| | | } |
| | | public String getCreateUserName() { |
| | | return createUserName; |
| | | } |
| | | public void setCreateUserName(String createUserName) { |
| | | this.createUserName = createUserName; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getWorkName() { |
| | | return workName; |
| | | } |
| | | public void setWorkName(String workName) { |
| | | this.workName = workName; |
| | | } |
| | | public String getWorkId() { |
| | | return workId; |
| | | } |
| | | public void setWorkId(String workId) { |
| | | this.workId = workId; |
| | | } |
| | | public String getWtId() { |
| | | return wtId; |
| | | } |
| | | public void setWtId(String wtId) { |
| | | this.wtId = wtId; |
| | | } |
| | | public String getCreateUserTel() { |
| | | return createUserTel; |
| | | } |
| | | public void setCreateUserTel(String createUserTel) { |
| | | this.createUserTel = createUserTel; |
| | | } |
| | | 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 getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.workPoolContent; |
| | | |
| | | 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 WorkPoolContentDto extends PageDto implements Serializable { |
| | | |
| | | private String contentId; |
| | | private String communityId; |
| | | private String storeId; |
| | | private String workId; |
| | | private String content; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getContentId() { |
| | | return contentId; |
| | | } |
| | | public void setContentId(String contentId) { |
| | | this.contentId = contentId; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getWorkId() { |
| | | return workId; |
| | | } |
| | | public void setWorkId(String workId) { |
| | | this.workId = workId; |
| | | } |
| | | public String getContent() { |
| | | return content; |
| | | } |
| | | public void setContent(String content) { |
| | | this.content = content; |
| | | } |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.workCycle; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-12-25 15:38:11 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 WorkCyclePo implements Serializable { |
| | | |
| | | private String workCycle; |
| | | private String period; |
| | | private String beforeTime; |
| | | private String cycleId; |
| | | private String periodWorkday; |
| | | private String statusCd = "0"; |
| | | private String cycleStartTime; |
| | | private String storeId; |
| | | private String workId; |
| | | private String cycleEndTime; |
| | | private String staffName; |
| | | private String periodMonth; |
| | | private String communityId; |
| | | private String staffId; |
| | | private String periodDay; |
| | | public String getWorkCycle() { |
| | | return workCycle; |
| | | } |
| | | public void setWorkCycle(String workCycle) { |
| | | this.workCycle = workCycle; |
| | | } |
| | | public String getPeriod() { |
| | | return period; |
| | | } |
| | | public void setPeriod(String period) { |
| | | this.period = period; |
| | | } |
| | | public String getBeforeTime() { |
| | | return beforeTime; |
| | | } |
| | | public void setBeforeTime(String beforeTime) { |
| | | this.beforeTime = beforeTime; |
| | | } |
| | | public String getCycleId() { |
| | | return cycleId; |
| | | } |
| | | public void setCycleId(String cycleId) { |
| | | this.cycleId = cycleId; |
| | | } |
| | | public String getPeriodWorkday() { |
| | | return periodWorkday; |
| | | } |
| | | public void setPeriodWorkday(String periodWorkday) { |
| | | this.periodWorkday = periodWorkday; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getCycleStartTime() { |
| | | return cycleStartTime; |
| | | } |
| | | public void setCycleStartTime(String cycleStartTime) { |
| | | this.cycleStartTime = cycleStartTime; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getWorkId() { |
| | | return workId; |
| | | } |
| | | public void setWorkId(String workId) { |
| | | this.workId = workId; |
| | | } |
| | | public String getCycleEndTime() { |
| | | return cycleEndTime; |
| | | } |
| | | public void setCycleEndTime(String cycleEndTime) { |
| | | this.cycleEndTime = cycleEndTime; |
| | | } |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | public String getPeriodMonth() { |
| | | return periodMonth; |
| | | } |
| | | public void setPeriodMonth(String periodMonth) { |
| | | this.periodMonth = periodMonth; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getStaffId() { |
| | | return staffId; |
| | | } |
| | | public void setStaffId(String staffId) { |
| | | this.staffId = staffId; |
| | | } |
| | | public String getPeriodDay() { |
| | | return periodDay; |
| | | } |
| | | public void setPeriodDay(String periodDay) { |
| | | this.periodDay = periodDay; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.workPool; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-12-25 15:31:02 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 WorkPoolPo implements Serializable { |
| | | |
| | | private String workCycle; |
| | | private String createUserId; |
| | | private String createUserName; |
| | | private String statusCd = "0"; |
| | | private String storeId; |
| | | private String workName; |
| | | private String workId; |
| | | private String wtId; |
| | | private String createUserTel; |
| | | private String startTime; |
| | | private String endTime; |
| | | private String state; |
| | | private String communityId; |
| | | public String getWorkCycle() { |
| | | return workCycle; |
| | | } |
| | | public void setWorkCycle(String workCycle) { |
| | | this.workCycle = workCycle; |
| | | } |
| | | public String getCreateUserId() { |
| | | return createUserId; |
| | | } |
| | | public void setCreateUserId(String createUserId) { |
| | | this.createUserId = createUserId; |
| | | } |
| | | public String getCreateUserName() { |
| | | return createUserName; |
| | | } |
| | | public void setCreateUserName(String createUserName) { |
| | | this.createUserName = createUserName; |
| | | } |
| | | 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 getWorkName() { |
| | | return workName; |
| | | } |
| | | public void setWorkName(String workName) { |
| | | this.workName = workName; |
| | | } |
| | | public String getWorkId() { |
| | | return workId; |
| | | } |
| | | public void setWorkId(String workId) { |
| | | this.workId = workId; |
| | | } |
| | | public String getWtId() { |
| | | return wtId; |
| | | } |
| | | public void setWtId(String wtId) { |
| | | this.wtId = wtId; |
| | | } |
| | | public String getCreateUserTel() { |
| | | return createUserTel; |
| | | } |
| | | public void setCreateUserTel(String createUserTel) { |
| | | this.createUserTel = createUserTel; |
| | | } |
| | | 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 getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.workPoolContent; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-12-25 15:45:56 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 WorkPoolContentPo implements Serializable { |
| | | |
| | | private String contentId; |
| | | private String statusCd = "0"; |
| | | private String communityId; |
| | | private String storeId; |
| | | private String workId; |
| | | private String content; |
| | | public String getContentId() { |
| | | return contentId; |
| | | } |
| | | public void setContentId(String contentId) { |
| | | this.contentId = contentId; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getWorkId() { |
| | | return workId; |
| | | } |
| | | public void setWorkId(String workId) { |
| | | this.workId = workId; |
| | | } |
| | | public String getContent() { |
| | | return content; |
| | | } |
| | | public void setContent(String content) { |
| | | this.content = content; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | <?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="workCycleV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存工作单周期信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveWorkCycleInfo" parameterType="Map"> |
| | | insert into work_cycle( |
| | | work_cycle,period,before_time,cycle_id,period_workday,cycle_start_time,store_id,work_id,cycle_end_time,staff_name,period_month,community_id,staff_id,period_day |
| | | ) values ( |
| | | #{workCycle},#{period},#{beforeTime},#{cycleId},#{periodWorkday},#{cycleStartTime},#{storeId},#{workId},#{cycleEndTime},#{staffName},#{periodMonth},#{communityId},#{staffId},#{periodDay} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询工作单周期信息 add by wuxw 2018-07-03 --> |
| | | <select id="getWorkCycleInfo" parameterType="Map" resultType="Map"> |
| | | select t.work_cycle,t.work_cycle workCycle,t.period,t.before_time,t.before_time beforeTime,t.cycle_id,t.cycle_id cycleId,t.period_workday,t.period_workday periodWorkday,t.status_cd,t.status_cd statusCd,t.cycle_start_time,t.cycle_start_time cycleStartTime,t.store_id,t.store_id storeId,t.work_id,t.work_id workId,t.cycle_end_time,t.cycle_end_time cycleEndTime,t.staff_name,t.staff_name staffName,t.period_month,t.period_month periodMonth,t.community_id,t.community_id communityId,t.staff_id,t.staff_id staffId,t.period_day,t.period_day periodDay |
| | | from work_cycle t |
| | | where 1 =1 |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | | <if test="period !=null and period != ''"> |
| | | and t.period= #{period} |
| | | </if> |
| | | <if test="beforeTime !=null and beforeTime != ''"> |
| | | and t.before_time= #{beforeTime} |
| | | </if> |
| | | <if test="cycleId !=null and cycleId != ''"> |
| | | and t.cycle_id= #{cycleId} |
| | | </if> |
| | | <if test="periodWorkday !=null and periodWorkday != ''"> |
| | | and t.period_workday= #{periodWorkday} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="cycleStartTime !=null and cycleStartTime != ''"> |
| | | and t.cycle_start_time= #{cycleStartTime} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="cycleEndTime !=null and cycleEndTime != ''"> |
| | | and t.cycle_end_time= #{cycleEndTime} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="periodMonth !=null and periodMonth != ''"> |
| | | and t.period_month= #{periodMonth} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="periodDay !=null and periodDay != ''"> |
| | | and t.period_day= #{periodDay} |
| | | </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="updateWorkCycleInfo" parameterType="Map"> |
| | | update work_cycle t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | , t.work_cycle= #{workCycle} |
| | | </if> |
| | | <if test="period !=null and period != ''"> |
| | | , t.period= #{period} |
| | | </if> |
| | | <if test="beforeTime !=null and beforeTime != ''"> |
| | | , t.before_time= #{beforeTime} |
| | | </if> |
| | | <if test="periodWorkday !=null and periodWorkday != ''"> |
| | | , t.period_workday= #{periodWorkday} |
| | | </if> |
| | | <if test="cycleStartTime !=null and cycleStartTime != ''"> |
| | | , t.cycle_start_time= #{cycleStartTime} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | , t.store_id= #{storeId} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | , t.work_id= #{workId} |
| | | </if> |
| | | <if test="cycleEndTime !=null and cycleEndTime != ''"> |
| | | , t.cycle_end_time= #{cycleEndTime} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | , t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="periodMonth !=null and periodMonth != ''"> |
| | | , t.period_month= #{periodMonth} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | , t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="periodDay !=null and periodDay != ''"> |
| | | , t.period_day= #{periodDay} |
| | | </if> |
| | | where 1=1 <if test="cycleId !=null and cycleId != ''"> |
| | | and t.cycle_id= #{cycleId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询工作单周期数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryWorkCyclesCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from work_cycle t |
| | | where 1 =1 |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | | <if test="period !=null and period != ''"> |
| | | and t.period= #{period} |
| | | </if> |
| | | <if test="beforeTime !=null and beforeTime != ''"> |
| | | and t.before_time= #{beforeTime} |
| | | </if> |
| | | <if test="cycleId !=null and cycleId != ''"> |
| | | and t.cycle_id= #{cycleId} |
| | | </if> |
| | | <if test="periodWorkday !=null and periodWorkday != ''"> |
| | | and t.period_workday= #{periodWorkday} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="cycleStartTime !=null and cycleStartTime != ''"> |
| | | and t.cycle_start_time= #{cycleStartTime} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="cycleEndTime !=null and cycleEndTime != ''"> |
| | | and t.cycle_end_time= #{cycleEndTime} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="periodMonth !=null and periodMonth != ''"> |
| | | and t.period_month= #{periodMonth} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="periodDay !=null and periodDay != ''"> |
| | | and t.period_day= #{periodDay} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?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="workPoolContentV1ServiceDaoImpl"> |
| | | |
| | | |
| | | <!-- 保存工作单内容信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveWorkPoolContentInfo" parameterType="Map"> |
| | | insert into work_pool_content( |
| | | content_id,community_id,store_id,work_id,content |
| | | ) values ( |
| | | #{contentId},#{communityId},#{storeId},#{workId},#{content} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | <!-- 查询工作单内容信息 add by wuxw 2018-07-03 --> |
| | | <select id="getWorkPoolContentInfo" parameterType="Map" resultType="Map"> |
| | | select t.content_id,t.content_id contentId,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id |
| | | communityId,t.store_id,t.store_id storeId,t.work_id,t.work_id workId,t.content |
| | | from work_pool_content t |
| | | where 1 =1 |
| | | <if test="contentId !=null and contentId != ''"> |
| | | and t.content_id= #{contentId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="content !=null and content != ''"> |
| | | and t.content= #{content} |
| | | </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="updateWorkPoolContentInfo" parameterType="Map"> |
| | | update work_pool_content t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | |
| | | <if test="content !=null and content != ''"> |
| | | , t.content= #{content} |
| | | </if> |
| | | where 1=1 |
| | | <if test="contentId !=null and contentId != ''"> |
| | | and t.content_id= #{contentId} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询工作单内容数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryWorkPoolContentsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from work_pool_content t |
| | | where 1 =1 |
| | | <if test="contentId !=null and contentId != ''"> |
| | | and t.content_id= #{contentId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="content !=null and content != ''"> |
| | | and t.content= #{content} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?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="workPoolV1ServiceDaoImpl"> |
| | | |
| | | |
| | | <!-- 保存工作单信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveWorkPoolInfo" parameterType="Map"> |
| | | insert into work_pool( |
| | | work_cycle,create_user_id,create_user_name,store_id,work_name,work_id,wt_id,create_user_tel,start_time,end_time,state,community_id |
| | | ) values ( |
| | | #{workCycle},#{createUserId},#{createUserName},#{storeId},#{workName},#{workId},#{wtId},#{createUserTel},#{startTime},#{endTime},#{state},#{communityId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | <!-- 查询工作单信息 add by wuxw 2018-07-03 --> |
| | | <select id="getWorkPoolInfo" parameterType="Map" resultType="Map"> |
| | | select t.work_cycle,t.work_cycle workCycle,t.create_user_id,t.create_user_id |
| | | createUserId,t.create_user_name,t.create_user_name createUserName,t.status_cd,t.status_cd |
| | | statusCd,t.store_id,t.store_id storeId,t.work_name,t.work_name workName,t.work_id,t.work_id |
| | | workId,t.wt_id,t.wt_id wtId,t.create_user_tel,t.create_user_tel createUserTel,t.start_time,t.start_time |
| | | startTime,t.end_time,t.end_time endTime,t.state,t.community_id,t.community_id communityId |
| | | from work_pool t |
| | | where 1 =1 |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | | <if test="createUserId !=null and createUserId != ''"> |
| | | and t.create_user_id= #{createUserId} |
| | | </if> |
| | | <if test="createUserName !=null and createUserName != ''"> |
| | | and t.create_user_name= #{createUserName} |
| | | </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="workName !=null and workName != ''"> |
| | | and t.work_name= #{workName} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="wtId !=null and wtId != ''"> |
| | | and t.wt_id= #{wtId} |
| | | </if> |
| | | <if test="createUserTel !=null and createUserTel != ''"> |
| | | and t.create_user_tel= #{createUserTel} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </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="updateWorkPoolInfo" parameterType="Map"> |
| | | update work_pool t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | , t.work_cycle= #{workCycle} |
| | | </if> |
| | | <if test="createUserId !=null and createUserId != ''"> |
| | | , t.create_user_id= #{createUserId} |
| | | </if> |
| | | <if test="createUserName !=null and createUserName != ''"> |
| | | , t.create_user_name= #{createUserName} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | , t.store_id= #{storeId} |
| | | </if> |
| | | <if test="workName !=null and workName != ''"> |
| | | , t.work_name= #{workName} |
| | | </if> |
| | | <if test="wtId !=null and wtId != ''"> |
| | | , t.wt_id= #{wtId} |
| | | </if> |
| | | <if test="createUserTel !=null and createUserTel != ''"> |
| | | , t.create_user_tel= #{createUserTel} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | , t.start_time= #{startTime} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | , t.end_time= #{endTime} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | where 1=1 |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询工作单数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryWorkPoolsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from work_pool t |
| | | where 1 =1 |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | | <if test="createUserId !=null and createUserId != ''"> |
| | | and t.create_user_id= #{createUserId} |
| | | </if> |
| | | <if test="createUserName !=null and createUserName != ''"> |
| | | and t.create_user_name= #{createUserName} |
| | | </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="workName !=null and workName != ''"> |
| | | and t.work_name= #{workName} |
| | | </if> |
| | | <if test="workId !=null and workId != ''"> |
| | | and t.work_id= #{workId} |
| | | </if> |
| | | <if test="wtId !=null and wtId != ''"> |
| | | and t.wt_id= #{wtId} |
| | | </if> |
| | | <if test="createUserTel !=null and createUserTel != ''"> |
| | | and t.create_user_tel= #{createUserTel} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | /* |
| | | * 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.oa; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.workCycle.WorkCycleDto; |
| | | import com.java110.po.workCycle.WorkCyclePo; |
| | | 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 2023-12-25 15:38:11 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 = "oa-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/workCycleV1Api") |
| | | public interface IWorkCycleV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveWorkCycle", method = RequestMethod.POST) |
| | | public int saveWorkCycle(@RequestBody WorkCyclePo workCyclePo); |
| | | |
| | | @RequestMapping(value = "/updateWorkCycle", method = RequestMethod.POST) |
| | | public int updateWorkCycle(@RequestBody WorkCyclePo workCyclePo); |
| | | |
| | | @RequestMapping(value = "/deleteWorkCycle", method = RequestMethod.POST) |
| | | public int deleteWorkCycle(@RequestBody WorkCyclePo workCyclePo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param workCycleDto 数据对象分享 |
| | | * @return WorkCycleDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryWorkCycles", method = RequestMethod.POST) |
| | | List<WorkCycleDto> queryWorkCycles(@RequestBody WorkCycleDto workCycleDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param workCycleDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryWorkCyclesCount", method = RequestMethod.POST) |
| | | int queryWorkCyclesCount(@RequestBody WorkCycleDto workCycleDto); |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.workPoolContent.WorkPoolContentDto; |
| | | import com.java110.po.workPoolContent.WorkPoolContentPo; |
| | | 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 2023-12-25 15:45:56 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 = "oa-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/workPoolContentV1Api") |
| | | public interface IWorkPoolContentV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveWorkPoolContent", method = RequestMethod.POST) |
| | | public int saveWorkPoolContent(@RequestBody WorkPoolContentPo workPoolContentPo); |
| | | |
| | | @RequestMapping(value = "/updateWorkPoolContent", method = RequestMethod.POST) |
| | | public int updateWorkPoolContent(@RequestBody WorkPoolContentPo workPoolContentPo); |
| | | |
| | | @RequestMapping(value = "/deleteWorkPoolContent", method = RequestMethod.POST) |
| | | public int deleteWorkPoolContent(@RequestBody WorkPoolContentPo workPoolContentPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param workPoolContentDto 数据对象分享 |
| | | * @return WorkPoolContentDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryWorkPoolContents", method = RequestMethod.POST) |
| | | List<WorkPoolContentDto> queryWorkPoolContents(@RequestBody WorkPoolContentDto workPoolContentDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param workPoolContentDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryWorkPoolContentsCount", method = RequestMethod.POST) |
| | | int queryWorkPoolContentsCount(@RequestBody WorkPoolContentDto workPoolContentDto); |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.workPool.WorkPoolDto; |
| | | import com.java110.po.workPool.WorkPoolPo; |
| | | 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 2023-12-25 15:31:02 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 = "oa-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/workPoolV1Api") |
| | | public interface IWorkPoolV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveWorkPool", method = RequestMethod.POST) |
| | | int saveWorkPool(@RequestBody WorkPoolPo workPoolPo); |
| | | |
| | | @RequestMapping(value = "/updateWorkPool", method = RequestMethod.POST) |
| | | int updateWorkPool(@RequestBody WorkPoolPo workPoolPo); |
| | | |
| | | @RequestMapping(value = "/deleteWorkPool", method = RequestMethod.POST) |
| | | int deleteWorkPool(@RequestBody WorkPoolPo workPoolPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param workPoolDto 数据对象分享 |
| | | * @return WorkPoolDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryWorkPools", method = RequestMethod.POST) |
| | | List<WorkPoolDto> queryWorkPools(@RequestBody WorkPoolDto workPoolDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param workPoolDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryWorkPoolsCount", method = RequestMethod.POST) |
| | | int queryWorkPoolsCount(@RequestBody WorkPoolDto workPoolDto); |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workCycle; |
| | | |
| | | 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.oa.IWorkCycleV1InnerServiceSMO; |
| | | import com.java110.po.workCycle.WorkCyclePo; |
| | | 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; |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:workCycle.deleteWorkCycle |
| | | * 请求路劲:/app/workCycle.DeleteWorkCycle |
| | | * add by 吴学文 at 2023-12-25 15:38:11 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 = "workCycle.deleteWorkCycle") |
| | | public class DeleteWorkCycleCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteWorkCycleCmd.class); |
| | | |
| | | @Autowired |
| | | private IWorkCycleV1InnerServiceSMO workCycleV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "cycleId", "cycleId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | WorkCyclePo workCyclePo = BeanConvertUtil.covertBean(reqJson, WorkCyclePo.class); |
| | | int flag = workCycleV1InnerServiceSMOImpl.deleteWorkCycle(workCyclePo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("删除数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workCycle; |
| | | |
| | | 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.oa.IWorkCycleV1InnerServiceSMO; |
| | | import com.java110.po.workCycle.WorkCyclePo; |
| | | 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.workCycle.WorkCycleDto; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:workCycle.listWorkCycle |
| | | * 请求路劲:/app/workCycle.ListWorkCycle |
| | | * add by 吴学文 at 2023-12-25 15:38:11 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 = "workCycle.listWorkCycle") |
| | | public class ListWorkCycleCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListWorkCycleCmd.class); |
| | | @Autowired |
| | | private IWorkCycleV1InnerServiceSMO workCycleV1InnerServiceSMOImpl; |
| | | |
| | | @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 { |
| | | |
| | | WorkCycleDto workCycleDto = BeanConvertUtil.covertBean(reqJson, WorkCycleDto.class); |
| | | |
| | | int count = workCycleV1InnerServiceSMOImpl.queryWorkCyclesCount(workCycleDto); |
| | | |
| | | List<WorkCycleDto> workCycleDtos = null; |
| | | |
| | | if (count > 0) { |
| | | workCycleDtos = workCycleV1InnerServiceSMOImpl.queryWorkCycles(workCycleDto); |
| | | } else { |
| | | workCycleDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, workCycleDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workCycle; |
| | | |
| | | 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.oa.IWorkCycleV1InnerServiceSMO; |
| | | import com.java110.po.workCycle.WorkCyclePo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:workCycle.saveWorkCycle |
| | | * 请求路劲:/app/workCycle.SaveWorkCycle |
| | | * add by 吴学文 at 2023-12-25 15:38:11 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 = "workCycle.saveWorkCycle") |
| | | public class SaveWorkCycleCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveWorkCycleCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IWorkCycleV1InnerServiceSMO workCycleV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "workId", "请求报文中未包含workId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "请求报文中未包含storeId"); |
| | | Assert.hasKeyAndValue(reqJson, "staffId", "请求报文中未包含staffId"); |
| | | Assert.hasKeyAndValue(reqJson, "staffName", "请求报文中未包含staffName"); |
| | | Assert.hasKeyAndValue(reqJson, "workCycle", "请求报文中未包含workCycle"); |
| | | Assert.hasKeyAndValue(reqJson, "cycleStartTime", "请求报文中未包含cycleStartTime"); |
| | | Assert.hasKeyAndValue(reqJson, "cycleEndTime", "请求报文中未包含cycleEndTime"); |
| | | Assert.hasKeyAndValue(reqJson, "beforeTime", "请求报文中未包含beforeTime"); |
| | | Assert.hasKeyAndValue(reqJson, "period", "请求报文中未包含period"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | WorkCyclePo workCyclePo = BeanConvertUtil.covertBean(reqJson, WorkCyclePo.class); |
| | | workCyclePo.setCycleId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = workCycleV1InnerServiceSMOImpl.saveWorkCycle(workCyclePo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("保存数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workCycle; |
| | | |
| | | 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.oa.IWorkCycleV1InnerServiceSMO; |
| | | import com.java110.po.workCycle.WorkCyclePo; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:workCycle.updateWorkCycle |
| | | * 请求路劲:/app/workCycle.UpdateWorkCycle |
| | | * add by 吴学文 at 2023-12-25 15:38:11 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 = "workCycle.updateWorkCycle") |
| | | public class UpdateWorkCycleCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateWorkCycleCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IWorkCycleV1InnerServiceSMO workCycleV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "cycleId", "cycleId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | WorkCyclePo workCyclePo = BeanConvertUtil.covertBean(reqJson, WorkCyclePo.class); |
| | | int flag = workCycleV1InnerServiceSMOImpl.updateWorkCycle(workCyclePo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("更新数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workPool; |
| | | |
| | | 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.oa.IWorkPoolV1InnerServiceSMO; |
| | | import com.java110.po.workPool.WorkPoolPo; |
| | | 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; |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:workPool.deleteWorkPool |
| | | * 请求路劲:/app/workPool.DeleteWorkPool |
| | | * add by 吴学文 at 2023-12-25 15:31:02 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 = "workPool.deleteWorkPool") |
| | | public class DeleteWorkPoolCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteWorkPoolCmd.class); |
| | | |
| | | @Autowired |
| | | private IWorkPoolV1InnerServiceSMO workPoolV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "workId", "workId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | WorkPoolPo workPoolPo = BeanConvertUtil.covertBean(reqJson, WorkPoolPo.class); |
| | | int flag = workPoolV1InnerServiceSMOImpl.deleteWorkPool(workPoolPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("删除数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workPool; |
| | | |
| | | 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.oa.IWorkPoolV1InnerServiceSMO; |
| | | import com.java110.po.workPool.WorkPoolPo; |
| | | 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.workPool.WorkPoolDto; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:workPool.listWorkPool |
| | | * 请求路劲:/app/workPool.ListWorkPool |
| | | * add by 吴学文 at 2023-12-25 15:31:02 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 = "workPool.listWorkPool") |
| | | public class ListWorkPoolCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListWorkPoolCmd.class); |
| | | @Autowired |
| | | private IWorkPoolV1InnerServiceSMO workPoolV1InnerServiceSMOImpl; |
| | | |
| | | @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 { |
| | | |
| | | WorkPoolDto workPoolDto = BeanConvertUtil.covertBean(reqJson, WorkPoolDto.class); |
| | | |
| | | int count = workPoolV1InnerServiceSMOImpl.queryWorkPoolsCount(workPoolDto); |
| | | |
| | | List<WorkPoolDto> workPoolDtos = null; |
| | | |
| | | if (count > 0) { |
| | | workPoolDtos = workPoolV1InnerServiceSMOImpl.queryWorkPools(workPoolDto); |
| | | } else { |
| | | workPoolDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, workPoolDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workPool; |
| | | |
| | | 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.oa.IWorkPoolContentV1InnerServiceSMO; |
| | | 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.workPoolContent.WorkPoolContentDto; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:workPoolContent.listWorkPoolContent |
| | | * 请求路劲:/app/workPoolContent.ListWorkPoolContent |
| | | * add by 吴学文 at 2023-12-25 15:45:56 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 = "workPoolContent.listWorkPoolContent") |
| | | public class ListWorkPoolContentCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListWorkPoolContentCmd.class); |
| | | @Autowired |
| | | private IWorkPoolContentV1InnerServiceSMO workPoolContentV1InnerServiceSMOImpl; |
| | | |
| | | @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 { |
| | | |
| | | WorkPoolContentDto workPoolContentDto = BeanConvertUtil.covertBean(reqJson, WorkPoolContentDto.class); |
| | | |
| | | int count = workPoolContentV1InnerServiceSMOImpl.queryWorkPoolContentsCount(workPoolContentDto); |
| | | |
| | | List<WorkPoolContentDto> workPoolContentDtos = null; |
| | | |
| | | if (count > 0) { |
| | | workPoolContentDtos = workPoolContentV1InnerServiceSMOImpl.queryWorkPoolContents(workPoolContentDto); |
| | | } else { |
| | | workPoolContentDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, workPoolContentDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workPool; |
| | | |
| | | 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.oa.IWorkPoolV1InnerServiceSMO; |
| | | import com.java110.po.workPool.WorkPoolPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:workPool.saveWorkPool |
| | | * 请求路劲:/app/workPool.SaveWorkPool |
| | | * add by 吴学文 at 2023-12-25 15:31:02 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 = "workPool.saveWorkPool") |
| | | public class SaveWorkPoolCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveWorkPoolCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IWorkPoolV1InnerServiceSMO workPoolV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "wtId", "请求报文中未包含wtId"); |
| | | Assert.hasKeyAndValue(reqJson, "workName", "请求报文中未包含workName"); |
| | | Assert.hasKeyAndValue(reqJson, "workCycle", "请求报文中未包含workCycle"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | WorkPoolPo workPoolPo = BeanConvertUtil.covertBean(reqJson, WorkPoolPo.class); |
| | | workPoolPo.setWorkId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = workPoolV1InnerServiceSMOImpl.saveWorkPool(workPoolPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("保存数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.cmd.workPool; |
| | | |
| | | 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.oa.IWorkPoolV1InnerServiceSMO; |
| | | import com.java110.po.workPool.WorkPoolPo; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:workPool.updateWorkPool |
| | | * 请求路劲:/app/workPool.UpdateWorkPool |
| | | * add by 吴学文 at 2023-12-25 15:31:02 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 = "workPool.updateWorkPool") |
| | | public class UpdateWorkPoolCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateWorkPoolCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IWorkPoolV1InnerServiceSMO workPoolV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "workId", "workId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | WorkPoolPo workPoolPo = BeanConvertUtil.covertBean(reqJson, WorkPoolPo.class); |
| | | int flag = workPoolV1InnerServiceSMOImpl.updateWorkPool(workPoolPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new CmdException("更新数据失败"); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-12-25 15:38:11 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 IWorkCycleV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 工作单周期信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveWorkCycleInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询工作单周期信息(instance过程) |
| | | * 根据bId 查询工作单周期信息 |
| | | * @param info bId 信息 |
| | | * @return 工作单周期信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getWorkCycleInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改工作单周期信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateWorkCycleInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询工作单周期总数 |
| | | * |
| | | * @param info 工作单周期信息 |
| | | * @return 工作单周期数量 |
| | | */ |
| | | int queryWorkCyclesCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-12-25 15:45:56 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 IWorkPoolContentV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 工作单内容信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveWorkPoolContentInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询工作单内容信息(instance过程) |
| | | * 根据bId 查询工作单内容信息 |
| | | * @param info bId 信息 |
| | | * @return 工作单内容信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getWorkPoolContentInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改工作单内容信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateWorkPoolContentInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询工作单内容总数 |
| | | * |
| | | * @param info 工作单内容信息 |
| | | * @return 工作单内容数量 |
| | | */ |
| | | int queryWorkPoolContentsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-12-25 15:31:02 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 IWorkPoolV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 工作单信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveWorkPoolInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询工作单信息(instance过程) |
| | | * 根据bId 查询工作单信息 |
| | | * @param info bId 信息 |
| | | * @return 工作单信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getWorkPoolInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改工作单信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateWorkPoolInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询工作单总数 |
| | | * |
| | | * @param info 工作单信息 |
| | | * @return 工作单数量 |
| | | */ |
| | | int queryWorkPoolsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.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.oa.dao.IWorkCycleV1ServiceDao; |
| | | 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 2023-12-25 15:38:11 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("workCycleV1ServiceDaoImpl") |
| | | public class WorkCycleV1ServiceDaoImpl extends BaseServiceDao implements IWorkCycleV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(WorkCycleV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存工作单周期信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveWorkCycleInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveWorkCycleInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("workCycleV1ServiceDaoImpl.saveWorkCycleInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询工作单周期信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getWorkCycleInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getWorkCycleInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessWorkCycleInfos = sqlSessionTemplate.selectList("workCycleV1ServiceDaoImpl.getWorkCycleInfo",info); |
| | | |
| | | return businessWorkCycleInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改工作单周期信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateWorkCycleInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateWorkCycleInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("workCycleV1ServiceDaoImpl.updateWorkCycleInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询工作单周期数量 |
| | | * @param info 工作单周期信息 |
| | | * @return 工作单周期数量 |
| | | */ |
| | | @Override |
| | | public int queryWorkCyclesCount(Map info) { |
| | | logger.debug("查询 queryWorkCyclesCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessWorkCycleInfos = sqlSessionTemplate.selectList("workCycleV1ServiceDaoImpl.queryWorkCyclesCount", info); |
| | | if (businessWorkCycleInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessWorkCycleInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.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.oa.dao.IWorkPoolContentV1ServiceDao; |
| | | 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 2023-12-25 15:45:56 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("workPoolContentV1ServiceDaoImpl") |
| | | public class WorkPoolContentV1ServiceDaoImpl extends BaseServiceDao implements IWorkPoolContentV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(WorkPoolContentV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存工作单内容信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveWorkPoolContentInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveWorkPoolContentInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("workPoolContentV1ServiceDaoImpl.saveWorkPoolContentInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询工作单内容信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getWorkPoolContentInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getWorkPoolContentInfo 入参 info : {}",info); |
| | | |
| | | List<Map> infos = sqlSessionTemplate.selectList("workPoolContentV1ServiceDaoImpl.getWorkPoolContentInfo",info); |
| | | |
| | | return infos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改工作单内容信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateWorkPoolContentInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateWorkPoolContentInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("workPoolContentV1ServiceDaoImpl.updateWorkPoolContentInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询工作单内容数量 |
| | | * @param info 工作单内容信息 |
| | | * @return 工作单内容数量 |
| | | */ |
| | | @Override |
| | | public int queryWorkPoolContentsCount(Map info) { |
| | | logger.debug("查询 queryWorkPoolContentsCount 入参 info : {}",info); |
| | | |
| | | List<Map> infos = sqlSessionTemplate.selectList("workPoolContentV1ServiceDaoImpl.queryWorkPoolContentsCount", info); |
| | | if (infos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(infos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.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.oa.dao.IWorkPoolV1ServiceDao; |
| | | 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 2023-12-25 15:31:02 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("workPoolV1ServiceDaoImpl") |
| | | public class WorkPoolV1ServiceDaoImpl extends BaseServiceDao implements IWorkPoolV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(WorkPoolV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存工作单信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveWorkPoolInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveWorkPoolInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("workPoolV1ServiceDaoImpl.saveWorkPoolInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询工作单信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getWorkPoolInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getWorkPoolInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessWorkPoolInfos = sqlSessionTemplate.selectList("workPoolV1ServiceDaoImpl.getWorkPoolInfo",info); |
| | | |
| | | return businessWorkPoolInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改工作单信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateWorkPoolInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateWorkPoolInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("workPoolV1ServiceDaoImpl.updateWorkPoolInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询工作单数量 |
| | | * @param info 工作单信息 |
| | | * @return 工作单数量 |
| | | */ |
| | | @Override |
| | | public int queryWorkPoolsCount(Map info) { |
| | | logger.debug("查询 queryWorkPoolsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessWorkPoolInfos = sqlSessionTemplate.selectList("workPoolV1ServiceDaoImpl.queryWorkPoolsCount", info); |
| | | if (businessWorkPoolInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessWorkPoolInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.smo.impl; |
| | | |
| | | |
| | | import com.java110.oa.dao.IWorkCycleV1ServiceDao; |
| | | import com.java110.intf.oa.IWorkCycleV1InnerServiceSMO; |
| | | import com.java110.dto.workCycle.WorkCycleDto; |
| | | import com.java110.po.workCycle.WorkCyclePo; |
| | | 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 2023-12-25 15:38:11 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 WorkCycleV1InnerServiceSMOImpl extends BaseServiceSMO implements IWorkCycleV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IWorkCycleV1ServiceDao workCycleV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveWorkCycle(@RequestBody WorkCyclePo workCyclePo) { |
| | | int saveFlag = workCycleV1ServiceDaoImpl.saveWorkCycleInfo(BeanConvertUtil.beanCovertMap(workCyclePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateWorkCycle(@RequestBody WorkCyclePo workCyclePo) { |
| | | int saveFlag = workCycleV1ServiceDaoImpl.updateWorkCycleInfo(BeanConvertUtil.beanCovertMap(workCyclePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteWorkCycle(@RequestBody WorkCyclePo workCyclePo) { |
| | | workCyclePo.setStatusCd("1"); |
| | | int saveFlag = workCycleV1ServiceDaoImpl.updateWorkCycleInfo(BeanConvertUtil.beanCovertMap(workCyclePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<WorkCycleDto> queryWorkCycles(@RequestBody WorkCycleDto workCycleDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = workCycleDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | workCycleDto.setPage((page - 1) * workCycleDto.getRow()); |
| | | } |
| | | |
| | | List<WorkCycleDto> workCycles = BeanConvertUtil.covertBeanList(workCycleV1ServiceDaoImpl.getWorkCycleInfo(BeanConvertUtil.beanCovertMap(workCycleDto)), WorkCycleDto.class); |
| | | |
| | | return workCycles; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryWorkCyclesCount(@RequestBody WorkCycleDto workCycleDto) { |
| | | return workCycleV1ServiceDaoImpl.queryWorkCyclesCount(BeanConvertUtil.beanCovertMap(workCycleDto)); } |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.smo.impl; |
| | | |
| | | |
| | | import com.java110.oa.dao.IWorkPoolContentV1ServiceDao; |
| | | import com.java110.intf.oa.IWorkPoolContentV1InnerServiceSMO; |
| | | import com.java110.dto.workPoolContent.WorkPoolContentDto; |
| | | import com.java110.po.workPoolContent.WorkPoolContentPo; |
| | | 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 2023-12-25 15:45:56 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 WorkPoolContentV1InnerServiceSMOImpl extends BaseServiceSMO implements IWorkPoolContentV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IWorkPoolContentV1ServiceDao workPoolContentV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveWorkPoolContent(@RequestBody WorkPoolContentPo workPoolContentPo) { |
| | | int saveFlag = workPoolContentV1ServiceDaoImpl.saveWorkPoolContentInfo(BeanConvertUtil.beanCovertMap(workPoolContentPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateWorkPoolContent(@RequestBody WorkPoolContentPo workPoolContentPo) { |
| | | int saveFlag = workPoolContentV1ServiceDaoImpl.updateWorkPoolContentInfo(BeanConvertUtil.beanCovertMap(workPoolContentPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteWorkPoolContent(@RequestBody WorkPoolContentPo workPoolContentPo) { |
| | | workPoolContentPo.setStatusCd("1"); |
| | | int saveFlag = workPoolContentV1ServiceDaoImpl.updateWorkPoolContentInfo(BeanConvertUtil.beanCovertMap(workPoolContentPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<WorkPoolContentDto> queryWorkPoolContents(@RequestBody WorkPoolContentDto workPoolContentDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = workPoolContentDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | workPoolContentDto.setPage((page - 1) * workPoolContentDto.getRow()); |
| | | } |
| | | |
| | | List<WorkPoolContentDto> workPoolContents = BeanConvertUtil.covertBeanList(workPoolContentV1ServiceDaoImpl.getWorkPoolContentInfo(BeanConvertUtil.beanCovertMap(workPoolContentDto)), WorkPoolContentDto.class); |
| | | |
| | | return workPoolContents; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryWorkPoolContentsCount(@RequestBody WorkPoolContentDto workPoolContentDto) { |
| | | return workPoolContentV1ServiceDaoImpl.queryWorkPoolContentsCount(BeanConvertUtil.beanCovertMap(workPoolContentDto)); } |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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.oa.smo.impl; |
| | | |
| | | |
| | | import com.java110.oa.dao.IWorkPoolV1ServiceDao; |
| | | import com.java110.intf.oa.IWorkPoolV1InnerServiceSMO; |
| | | import com.java110.dto.workPool.WorkPoolDto; |
| | | import com.java110.po.workPool.WorkPoolPo; |
| | | 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 2023-12-25 15:31:02 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 WorkPoolV1InnerServiceSMOImpl extends BaseServiceSMO implements IWorkPoolV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IWorkPoolV1ServiceDao workPoolV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveWorkPool(@RequestBody WorkPoolPo workPoolPo) { |
| | | int saveFlag = workPoolV1ServiceDaoImpl.saveWorkPoolInfo(BeanConvertUtil.beanCovertMap(workPoolPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateWorkPool(@RequestBody WorkPoolPo workPoolPo) { |
| | | int saveFlag = workPoolV1ServiceDaoImpl.updateWorkPoolInfo(BeanConvertUtil.beanCovertMap(workPoolPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteWorkPool(@RequestBody WorkPoolPo workPoolPo) { |
| | | workPoolPo.setStatusCd("1"); |
| | | int saveFlag = workPoolV1ServiceDaoImpl.updateWorkPoolInfo(BeanConvertUtil.beanCovertMap(workPoolPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<WorkPoolDto> queryWorkPools(@RequestBody WorkPoolDto workPoolDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = workPoolDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | workPoolDto.setPage((page - 1) * workPoolDto.getRow()); |
| | | } |
| | | |
| | | List<WorkPoolDto> workPools = BeanConvertUtil.covertBeanList(workPoolV1ServiceDaoImpl.getWorkPoolInfo(BeanConvertUtil.beanCovertMap(workPoolDto)), WorkPoolDto.class); |
| | | |
| | | return workPools; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryWorkPoolsCount(@RequestBody WorkPoolDto workPoolDto) { |
| | | return workPoolV1ServiceDaoImpl.queryWorkPoolsCount(BeanConvertUtil.beanCovertMap(workPoolDto)); } |
| | | |
| | | } |