| New file |
| | |
| | | package com.java110.dto.examineProject; |
| | | |
| | | 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 ExamineProjectDto extends PageDto implements Serializable { |
| | | |
| | | private String postCd; |
| | | private String post; |
| | | private String name; |
| | | private String weight; |
| | | private String state; |
| | | private String communityId; |
| | | private String projectId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getPostCd() { |
| | | return postCd; |
| | | } |
| | | public void setPostCd(String postCd) { |
| | | this.postCd = postCd; |
| | | } |
| | | public String getPost() { |
| | | return post; |
| | | } |
| | | public void setPost(String post) { |
| | | this.post = post; |
| | | } |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public String getWeight() { |
| | | return weight; |
| | | } |
| | | public void setWeight(String weight) { |
| | | this.weight = weight; |
| | | } |
| | | 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 String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | |
| | | 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.examineStaff; |
| | | |
| | | 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 ExamineStaffDto extends PageDto implements Serializable { |
| | | |
| | | private String esId; |
| | | private String staffName; |
| | | private String communityId; |
| | | private String staffId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getEsId() { |
| | | return esId; |
| | | } |
| | | public void setEsId(String esId) { |
| | | this.esId = esId; |
| | | } |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | 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 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.examineStaffProject; |
| | | |
| | | 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 ExamineStaffProjectDto extends PageDto implements Serializable { |
| | | |
| | | private String esId; |
| | | private String espId; |
| | | private String communityId; |
| | | private String projectId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getEsId() { |
| | | return esId; |
| | | } |
| | | public void setEsId(String esId) { |
| | | this.esId = esId; |
| | | } |
| | | public String getEspId() { |
| | | return espId; |
| | | } |
| | | public void setEspId(String espId) { |
| | | this.espId = espId; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | |
| | | 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.examineStaffValue; |
| | | |
| | | 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 ExamineStaffValueDto extends PageDto implements Serializable { |
| | | |
| | | private String ownerName; |
| | | private String esvId; |
| | | private String esId; |
| | | private String staffName; |
| | | private String ownerId; |
| | | private String communityId; |
| | | private String projectId; |
| | | private String examineValue; |
| | | private String staffId; |
| | | private String roomId; |
| | | private String roomName; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getOwnerName() { |
| | | return ownerName; |
| | | } |
| | | public void setOwnerName(String ownerName) { |
| | | this.ownerName = ownerName; |
| | | } |
| | | public String getEsvId() { |
| | | return esvId; |
| | | } |
| | | public void setEsvId(String esvId) { |
| | | this.esvId = esvId; |
| | | } |
| | | public String getEsId() { |
| | | return esId; |
| | | } |
| | | public void setEsId(String esId) { |
| | | this.esId = esId; |
| | | } |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | public String getOwnerId() { |
| | | return ownerId; |
| | | } |
| | | public void setOwnerId(String ownerId) { |
| | | this.ownerId = ownerId; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | public String getExamineValue() { |
| | | return examineValue; |
| | | } |
| | | public void setExamineValue(String examineValue) { |
| | | this.examineValue = examineValue; |
| | | } |
| | | public String getStaffId() { |
| | | return staffId; |
| | | } |
| | | public void setStaffId(String staffId) { |
| | | this.staffId = staffId; |
| | | } |
| | | public String getRoomId() { |
| | | return roomId; |
| | | } |
| | | public void setRoomId(String roomId) { |
| | | this.roomId = roomId; |
| | | } |
| | | public String getRoomName() { |
| | | return roomName; |
| | | } |
| | | public void setRoomName(String roomName) { |
| | | this.roomName = roomName; |
| | | } |
| | | |
| | | |
| | | 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.examineProject; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-07 15:13:15 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 ExamineProjectPo implements Serializable { |
| | | |
| | | private String postCd; |
| | | private String post; |
| | | private String name; |
| | | private String weight; |
| | | private String statusCd = "0"; |
| | | private String state; |
| | | private String communityId; |
| | | private String projectId; |
| | | public String getPostCd() { |
| | | return postCd; |
| | | } |
| | | public void setPostCd(String postCd) { |
| | | this.postCd = postCd; |
| | | } |
| | | public String getPost() { |
| | | return post; |
| | | } |
| | | public void setPost(String post) { |
| | | this.post = post; |
| | | } |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public String getWeight() { |
| | | return weight; |
| | | } |
| | | public void setWeight(String weight) { |
| | | this.weight = weight; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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.examineStaff; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-07 15:57:29 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 ExamineStaffPo implements Serializable { |
| | | |
| | | private String esId; |
| | | private String staffName; |
| | | private String statusCd = "0"; |
| | | private String communityId; |
| | | private String staffId; |
| | | public String getEsId() { |
| | | return esId; |
| | | } |
| | | public void setEsId(String esId) { |
| | | this.esId = esId; |
| | | } |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getStaffId() { |
| | | return staffId; |
| | | } |
| | | public void setStaffId(String staffId) { |
| | | this.staffId = staffId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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.examineStaffProject; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-07 16:09:46 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 ExamineStaffProjectPo implements Serializable { |
| | | |
| | | private String esId; |
| | | private String espId; |
| | | private String statusCd = "0"; |
| | | private String communityId; |
| | | private String projectId; |
| | | public String getEsId() { |
| | | return esId; |
| | | } |
| | | public void setEsId(String esId) { |
| | | this.esId = esId; |
| | | } |
| | | public String getEspId() { |
| | | return espId; |
| | | } |
| | | public void setEspId(String espId) { |
| | | this.espId = espId; |
| | | } |
| | | 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 getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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.examineStaffValue; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | /** |
| | | * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体 |
| | | * add by 吴学文 at 2023-03-07 16:34:48 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 ExamineStaffValuePo implements Serializable { |
| | | |
| | | private String ownerName; |
| | | private String esvId; |
| | | private String esId; |
| | | private String staffName; |
| | | private String statusCd = "0"; |
| | | private String ownerId; |
| | | private String communityId; |
| | | private String projectId; |
| | | private String examineValue; |
| | | private String staffId; |
| | | private String roomId; |
| | | private String roomName; |
| | | public String getOwnerName() { |
| | | return ownerName; |
| | | } |
| | | public void setOwnerName(String ownerName) { |
| | | this.ownerName = ownerName; |
| | | } |
| | | public String getEsvId() { |
| | | return esvId; |
| | | } |
| | | public void setEsvId(String esvId) { |
| | | this.esvId = esvId; |
| | | } |
| | | public String getEsId() { |
| | | return esId; |
| | | } |
| | | public void setEsId(String esId) { |
| | | this.esId = esId; |
| | | } |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getOwnerId() { |
| | | return ownerId; |
| | | } |
| | | public void setOwnerId(String ownerId) { |
| | | this.ownerId = ownerId; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | public String getExamineValue() { |
| | | return examineValue; |
| | | } |
| | | public void setExamineValue(String examineValue) { |
| | | this.examineValue = examineValue; |
| | | } |
| | | public String getStaffId() { |
| | | return staffId; |
| | | } |
| | | public void setStaffId(String staffId) { |
| | | this.staffId = staffId; |
| | | } |
| | | public String getRoomId() { |
| | | return roomId; |
| | | } |
| | | public void setRoomId(String roomId) { |
| | | this.roomId = roomId; |
| | | } |
| | | public String getRoomName() { |
| | | return roomName; |
| | | } |
| | | public void setRoomName(String roomName) { |
| | | this.roomName = roomName; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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="examineProjectV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存考核项目信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveExamineProjectInfo" parameterType="Map"> |
| | | insert into examine_project( |
| | | post_cd,post,name,weight,state,community_id,project_id |
| | | ) values ( |
| | | #{postCd},#{post},#{name},#{weight},#{state},#{communityId},#{projectId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询考核项目信息 add by wuxw 2018-07-03 --> |
| | | <select id="getExamineProjectInfo" parameterType="Map" resultType="Map"> |
| | | select t.post_cd,t.post_cd postCd,t.post,t.name,t.weight,t.status_cd,t.status_cd statusCd,t.state,t.community_id,t.community_id communityId,t.project_id,t.project_id projectId |
| | | from examine_project t |
| | | where 1 =1 |
| | | <if test="postCd !=null and postCd != ''"> |
| | | and t.post_cd= #{postCd} |
| | | </if> |
| | | <if test="post !=null and post != ''"> |
| | | and t.post= #{post} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | </if> |
| | | <if test="weight !=null and weight != ''"> |
| | | and t.weight= #{weight} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </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="updateExamineProjectInfo" parameterType="Map"> |
| | | update examine_project t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="postCd !=null and postCd != ''"> |
| | | , t.post_cd= #{postCd} |
| | | </if> |
| | | <if test="post !=null and post != ''"> |
| | | , t.post= #{post} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | , t.name= #{name} |
| | | </if> |
| | | <if test="weight !=null and weight != ''"> |
| | | , t.weight= #{weight} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | where 1=1 <if test="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询考核项目数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryExamineProjectsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from examine_project t |
| | | where 1 =1 |
| | | <if test="postCd !=null and postCd != ''"> |
| | | and t.post_cd= #{postCd} |
| | | </if> |
| | | <if test="post !=null and post != ''"> |
| | | and t.post= #{post} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | </if> |
| | | <if test="weight !=null and weight != ''"> |
| | | and t.weight= #{weight} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </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="examineStaffProjectV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存员工考核项目信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveExamineStaffProjectInfo" parameterType="Map"> |
| | | insert into examine_staff_project( |
| | | es_id,esp_id,community_id,project_id |
| | | ) values ( |
| | | #{esId},#{espId},#{communityId},#{projectId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询员工考核项目信息 add by wuxw 2018-07-03 --> |
| | | <select id="getExamineStaffProjectInfo" parameterType="Map" resultType="Map"> |
| | | select t.es_id,t.es_id esId,t.esp_id,t.esp_id espId,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.project_id,t.project_id projectId |
| | | from examine_staff_project t |
| | | where 1 =1 |
| | | <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | <if test="espId !=null and espId != ''"> |
| | | and t.esp_id= #{espId} |
| | | </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="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </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="updateExamineStaffProjectInfo" parameterType="Map"> |
| | | update examine_staff_project t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="esId !=null and esId != ''"> |
| | | , t.es_id= #{esId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | <if test="projectId !=null and projectId != ''"> |
| | | , t.project_id= #{projectId} |
| | | </if> |
| | | where 1=1 <if test="espId !=null and espId != ''"> |
| | | and t.esp_id= #{espId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询员工考核项目数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryExamineStaffProjectsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from examine_staff_project t |
| | | where 1 =1 |
| | | <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | <if test="espId !=null and espId != ''"> |
| | | and t.esp_id= #{espId} |
| | | </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="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </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="examineStaffV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存考核员工信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveExamineStaffInfo" parameterType="Map"> |
| | | insert into examine_staff( |
| | | es_id,staff_name,community_id,staff_id |
| | | ) values ( |
| | | #{esId},#{staffName},#{communityId},#{staffId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询考核员工信息 add by wuxw 2018-07-03 --> |
| | | <select id="getExamineStaffInfo" parameterType="Map" resultType="Map"> |
| | | select t.es_id,t.es_id esId,t.staff_name,t.staff_name staffName,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.staff_id,t.staff_id staffId |
| | | from examine_staff t |
| | | where 1 =1 |
| | | <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 修改考核员工信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateExamineStaffInfo" parameterType="Map"> |
| | | update examine_staff t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | , t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | , t.staff_id= #{staffId} |
| | | </if> |
| | | where 1=1 <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询考核员工数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryExamineStaffsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from examine_staff t |
| | | where 1 =1 |
| | | <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </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="examineStaffValueV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存考核评分信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveExamineStaffValueInfo" parameterType="Map"> |
| | | insert into examine_staff_value( |
| | | owner_name,esv_id,es_id,staff_name,owner_id,community_id,project_id,examine_value,staff_id,room_id,room_name |
| | | ) values ( |
| | | #{ownerName},#{esvId},#{esId},#{staffName},#{ownerId},#{communityId},#{projectId},#{examineValue},#{staffId},#{roomId},#{roomName} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询考核评分信息 add by wuxw 2018-07-03 --> |
| | | <select id="getExamineStaffValueInfo" parameterType="Map" resultType="Map"> |
| | | select t.owner_name,t.owner_name ownerName,t.esv_id,t.esv_id esvId,t.es_id,t.es_id esId,t.staff_name,t.staff_name staffName,t.status_cd,t.status_cd statusCd,t.owner_id,t.owner_id ownerId,t.community_id,t.community_id communityId,t.project_id,t.project_id projectId,t.examine_value,t.examine_value examineValue,t.staff_id,t.staff_id staffId,t.room_id,t.room_id roomId,t.room_name,t.room_name roomName |
| | | from examine_staff_value t |
| | | where 1 =1 |
| | | <if test="ownerName !=null and ownerName != ''"> |
| | | and t.owner_name= #{ownerName} |
| | | </if> |
| | | <if test="esvId !=null and esvId != ''"> |
| | | and t.esv_id= #{esvId} |
| | | </if> |
| | | <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="ownerId !=null and ownerId != ''"> |
| | | and t.owner_id= #{ownerId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </if> |
| | | <if test="examineValue !=null and examineValue != ''"> |
| | | and t.examine_value= #{examineValue} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="roomId !=null and roomId != ''"> |
| | | and t.room_id= #{roomId} |
| | | </if> |
| | | <if test="roomName !=null and roomName != ''"> |
| | | and t.room_name= #{roomName} |
| | | </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="updateExamineStaffValueInfo" parameterType="Map"> |
| | | update examine_staff_value t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="ownerName !=null and ownerName != ''"> |
| | | , t.owner_name= #{ownerName} |
| | | </if> |
| | | <if test="esId !=null and esId != ''"> |
| | | , t.es_id= #{esId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | , t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="ownerId !=null and ownerId != ''"> |
| | | , t.owner_id= #{ownerId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | <if test="projectId !=null and projectId != ''"> |
| | | , t.project_id= #{projectId} |
| | | </if> |
| | | <if test="examineValue !=null and examineValue != ''"> |
| | | , t.examine_value= #{examineValue} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | , t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="roomId !=null and roomId != ''"> |
| | | , t.room_id= #{roomId} |
| | | </if> |
| | | <if test="roomName !=null and roomName != ''"> |
| | | , t.room_name= #{roomName} |
| | | </if> |
| | | where 1=1 <if test="esvId !=null and esvId != ''"> |
| | | and t.esv_id= #{esvId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询考核评分数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryExamineStaffValuesCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from examine_staff_value t |
| | | where 1 =1 |
| | | <if test="ownerName !=null and ownerName != ''"> |
| | | and t.owner_name= #{ownerName} |
| | | </if> |
| | | <if test="esvId !=null and esvId != ''"> |
| | | and t.esv_id= #{esvId} |
| | | </if> |
| | | <if test="esId !=null and esId != ''"> |
| | | and t.es_id= #{esId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="ownerId !=null and ownerId != ''"> |
| | | and t.owner_id= #{ownerId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="projectId !=null and projectId != ''"> |
| | | and t.project_id= #{projectId} |
| | | </if> |
| | | <if test="examineValue !=null and examineValue != ''"> |
| | | and t.examine_value= #{examineValue} |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="roomId !=null and roomId != ''"> |
| | | and t.room_id= #{roomId} |
| | | </if> |
| | | <if test="roomName !=null and roomName != ''"> |
| | | and t.room_name= #{roomName} |
| | | </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.user; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.examineProject.ExamineProjectDto; |
| | | import com.java110.po.examineProject.ExamineProjectPo; |
| | | 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-03-07 15:13:14 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 = "user-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/examineProjectV1Api") |
| | | public interface IExamineProjectV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveExamineProject", method = RequestMethod.POST) |
| | | public int saveExamineProject(@RequestBody ExamineProjectPo examineProjectPo); |
| | | |
| | | @RequestMapping(value = "/updateExamineProject", method = RequestMethod.POST) |
| | | public int updateExamineProject(@RequestBody ExamineProjectPo examineProjectPo); |
| | | |
| | | @RequestMapping(value = "/deleteExamineProject", method = RequestMethod.POST) |
| | | public int deleteExamineProject(@RequestBody ExamineProjectPo examineProjectPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param examineProjectDto 数据对象分享 |
| | | * @return ExamineProjectDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineProjects", method = RequestMethod.POST) |
| | | List<ExamineProjectDto> queryExamineProjects(@RequestBody ExamineProjectDto examineProjectDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param examineProjectDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineProjectsCount", method = RequestMethod.POST) |
| | | int queryExamineProjectsCount(@RequestBody ExamineProjectDto examineProjectDto); |
| | | } |
| 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.user; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.examineStaffProject.ExamineStaffProjectDto; |
| | | import com.java110.po.examineStaffProject.ExamineStaffProjectPo; |
| | | 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-03-07 16:09:46 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 = "user-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/examineStaffProjectV1Api") |
| | | public interface IExamineStaffProjectV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveExamineStaffProject", method = RequestMethod.POST) |
| | | public int saveExamineStaffProject(@RequestBody ExamineStaffProjectPo examineStaffProjectPo); |
| | | |
| | | @RequestMapping(value = "/updateExamineStaffProject", method = RequestMethod.POST) |
| | | public int updateExamineStaffProject(@RequestBody ExamineStaffProjectPo examineStaffProjectPo); |
| | | |
| | | @RequestMapping(value = "/deleteExamineStaffProject", method = RequestMethod.POST) |
| | | public int deleteExamineStaffProject(@RequestBody ExamineStaffProjectPo examineStaffProjectPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param examineStaffProjectDto 数据对象分享 |
| | | * @return ExamineStaffProjectDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineStaffProjects", method = RequestMethod.POST) |
| | | List<ExamineStaffProjectDto> queryExamineStaffProjects(@RequestBody ExamineStaffProjectDto examineStaffProjectDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param examineStaffProjectDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineStaffProjectsCount", method = RequestMethod.POST) |
| | | int queryExamineStaffProjectsCount(@RequestBody ExamineStaffProjectDto examineStaffProjectDto); |
| | | } |
| 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.user; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.examineStaff.ExamineStaffDto; |
| | | import com.java110.po.examineStaff.ExamineStaffPo; |
| | | 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-03-07 15:57:29 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 = "user-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/examineStaffV1Api") |
| | | public interface IExamineStaffV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveExamineStaff", method = RequestMethod.POST) |
| | | public int saveExamineStaff(@RequestBody ExamineStaffPo examineStaffPo); |
| | | |
| | | @RequestMapping(value = "/updateExamineStaff", method = RequestMethod.POST) |
| | | public int updateExamineStaff(@RequestBody ExamineStaffPo examineStaffPo); |
| | | |
| | | @RequestMapping(value = "/deleteExamineStaff", method = RequestMethod.POST) |
| | | public int deleteExamineStaff(@RequestBody ExamineStaffPo examineStaffPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param examineStaffDto 数据对象分享 |
| | | * @return ExamineStaffDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineStaffs", method = RequestMethod.POST) |
| | | List<ExamineStaffDto> queryExamineStaffs(@RequestBody ExamineStaffDto examineStaffDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param examineStaffDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineStaffsCount", method = RequestMethod.POST) |
| | | int queryExamineStaffsCount(@RequestBody ExamineStaffDto examineStaffDto); |
| | | } |
| 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.user; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.examineStaffValue.ExamineStaffValueDto; |
| | | import com.java110.po.examineStaffValue.ExamineStaffValuePo; |
| | | 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-03-07 16:34:48 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 = "user-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/examineStaffValueV1Api") |
| | | public interface IExamineStaffValueV1InnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveExamineStaffValue", method = RequestMethod.POST) |
| | | public int saveExamineStaffValue(@RequestBody ExamineStaffValuePo examineStaffValuePo); |
| | | |
| | | @RequestMapping(value = "/updateExamineStaffValue", method = RequestMethod.POST) |
| | | public int updateExamineStaffValue(@RequestBody ExamineStaffValuePo examineStaffValuePo); |
| | | |
| | | @RequestMapping(value = "/deleteExamineStaffValue", method = RequestMethod.POST) |
| | | public int deleteExamineStaffValue(@RequestBody ExamineStaffValuePo examineStaffValuePo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param examineStaffValueDto 数据对象分享 |
| | | * @return ExamineStaffValueDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineStaffValues", method = RequestMethod.POST) |
| | | List<ExamineStaffValueDto> queryExamineStaffValues(@RequestBody ExamineStaffValueDto examineStaffValueDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param examineStaffValueDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryExamineStaffValuesCount", method = RequestMethod.POST) |
| | | int queryExamineStaffValuesCount(@RequestBody ExamineStaffValueDto examineStaffValueDto); |
| | | } |
| 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineProjectV1InnerServiceSMO; |
| | | import com.java110.po.examineProject.ExamineProjectPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:examineProject.deleteExamineProject |
| | | * 请求路劲:/app/examineProject.DeleteExamineProject |
| | | * add by 吴学文 at 2023-03-07 15:13:15 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 = "examine.deleteExamineProject") |
| | | public class DeleteExamineProjectCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteExamineProjectCmd.class); |
| | | |
| | | @Autowired |
| | | private IExamineProjectV1InnerServiceSMO examineProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "projectId", "projectId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineProjectPo examineProjectPo = BeanConvertUtil.covertBean(reqJson, ExamineProjectPo.class); |
| | | int flag = examineProjectV1InnerServiceSMOImpl.deleteExamineProject(examineProjectPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineStaffV1InnerServiceSMO; |
| | | import com.java110.po.examineStaff.ExamineStaffPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:examineStaff.deleteExamineStaff |
| | | * 请求路劲:/app/examineStaff.DeleteExamineStaff |
| | | * add by 吴学文 at 2023-03-07 15:57:29 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 = "examine.deleteExamineStaff") |
| | | public class DeleteExamineStaffCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteExamineStaffCmd.class); |
| | | |
| | | @Autowired |
| | | private IExamineStaffV1InnerServiceSMO examineStaffV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "esId", "esId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffPo examineStaffPo = BeanConvertUtil.covertBean(reqJson, ExamineStaffPo.class); |
| | | int flag = examineStaffV1InnerServiceSMOImpl.deleteExamineStaff(examineStaffPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineStaffProjectV1InnerServiceSMO; |
| | | import com.java110.po.examineStaffProject.ExamineStaffProjectPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:examineStaffProject.deleteExamineStaffProject |
| | | * 请求路劲:/app/examineStaffProject.DeleteExamineStaffProject |
| | | * add by 吴学文 at 2023-03-07 16:09:46 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 = "examine.deleteExamineStaffProject") |
| | | public class DeleteExamineStaffProjectCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteExamineStaffProjectCmd.class); |
| | | |
| | | @Autowired |
| | | private IExamineStaffProjectV1InnerServiceSMO examineStaffProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "espId", "espId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffProjectPo examineStaffProjectPo = BeanConvertUtil.covertBean(reqJson, ExamineStaffProjectPo.class); |
| | | int flag = examineStaffProjectV1InnerServiceSMOImpl.deleteExamineStaffProject(examineStaffProjectPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineStaffValueV1InnerServiceSMO; |
| | | import com.java110.po.examineStaffValue.ExamineStaffValuePo; |
| | | 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; |
| | | /** |
| | | * 类表述:删除 |
| | | * 服务编码:examineStaffValue.deleteExamineStaffValue |
| | | * 请求路劲:/app/examineStaffValue.DeleteExamineStaffValue |
| | | * add by 吴学文 at 2023-03-07 16:34:48 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 = "examine.deleteExamineStaffValue") |
| | | public class DeleteExamineStaffValueCmd extends Cmd { |
| | | private static Logger logger = LoggerFactory.getLogger(DeleteExamineStaffValueCmd.class); |
| | | |
| | | @Autowired |
| | | private IExamineStaffValueV1InnerServiceSMO examineStaffValueV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "esvId", "esvId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffValuePo examineStaffValuePo = BeanConvertUtil.covertBean(reqJson, ExamineStaffValuePo.class); |
| | | int flag = examineStaffValueV1InnerServiceSMOImpl.deleteExamineStaffValue(examineStaffValuePo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineProjectV1InnerServiceSMO; |
| | | 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.examineProject.ExamineProjectDto; |
| | | |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:examineProject.listExamineProject |
| | | * 请求路劲:/app/examineProject.ListExamineProject |
| | | * add by 吴学文 at 2023-03-07 15:13:15 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 = "examine.listExamineProject") |
| | | public class ListExamineProjectCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListExamineProjectCmd.class); |
| | | @Autowired |
| | | private IExamineProjectV1InnerServiceSMO examineProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineProjectDto examineProjectDto = BeanConvertUtil.covertBean(reqJson, ExamineProjectDto.class); |
| | | |
| | | int count = examineProjectV1InnerServiceSMOImpl.queryExamineProjectsCount(examineProjectDto); |
| | | |
| | | List<ExamineProjectDto> examineProjectDtos = null; |
| | | |
| | | if (count > 0) { |
| | | examineProjectDtos = examineProjectV1InnerServiceSMOImpl.queryExamineProjects(examineProjectDto); |
| | | } else { |
| | | examineProjectDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, examineProjectDtos); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineStaffV1InnerServiceSMO; |
| | | 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.examineStaff.ExamineStaffDto; |
| | | |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:examineStaff.listExamineStaff |
| | | * 请求路劲:/app/examineStaff.ListExamineStaff |
| | | * add by 吴学文 at 2023-03-07 15:57:29 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 = "examine.listExamineStaff") |
| | | public class ListExamineStaffCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListExamineStaffCmd.class); |
| | | @Autowired |
| | | private IExamineStaffV1InnerServiceSMO examineStaffV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffDto examineStaffDto = BeanConvertUtil.covertBean(reqJson, ExamineStaffDto.class); |
| | | |
| | | int count = examineStaffV1InnerServiceSMOImpl.queryExamineStaffsCount(examineStaffDto); |
| | | |
| | | List<ExamineStaffDto> examineStaffDtos = null; |
| | | |
| | | if (count > 0) { |
| | | examineStaffDtos = examineStaffV1InnerServiceSMOImpl.queryExamineStaffs(examineStaffDto); |
| | | } else { |
| | | examineStaffDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, examineStaffDtos); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineStaffProjectV1InnerServiceSMO; |
| | | 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.examineStaffProject.ExamineStaffProjectDto; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:examineStaffProject.listExamineStaffProject |
| | | * 请求路劲:/app/examineStaffProject.ListExamineStaffProject |
| | | * add by 吴学文 at 2023-03-07 16:09:46 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 = "examine.listExamineStaffProject") |
| | | public class ListExamineStaffProjectCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListExamineStaffProjectCmd.class); |
| | | @Autowired |
| | | private IExamineStaffProjectV1InnerServiceSMO examineStaffProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffProjectDto examineStaffProjectDto = BeanConvertUtil.covertBean(reqJson, ExamineStaffProjectDto.class); |
| | | |
| | | int count = examineStaffProjectV1InnerServiceSMOImpl.queryExamineStaffProjectsCount(examineStaffProjectDto); |
| | | |
| | | List<ExamineStaffProjectDto> examineStaffProjectDtos = null; |
| | | |
| | | if (count > 0) { |
| | | examineStaffProjectDtos = examineStaffProjectV1InnerServiceSMOImpl.queryExamineStaffProjects(examineStaffProjectDto); |
| | | } else { |
| | | examineStaffProjectDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, examineStaffProjectDtos); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineStaffValueV1InnerServiceSMO; |
| | | 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.examineStaffValue.ExamineStaffValueDto; |
| | | |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:examineStaffValue.listExamineStaffValue |
| | | * 请求路劲:/app/examineStaffValue.ListExamineStaffValue |
| | | * add by 吴学文 at 2023-03-07 16:34:48 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 = "examine.listExamineStaffValue") |
| | | public class ListExamineStaffValueCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListExamineStaffValueCmd.class); |
| | | @Autowired |
| | | private IExamineStaffValueV1InnerServiceSMO examineStaffValueV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffValueDto examineStaffValueDto = BeanConvertUtil.covertBean(reqJson, ExamineStaffValueDto.class); |
| | | |
| | | int count = examineStaffValueV1InnerServiceSMOImpl.queryExamineStaffValuesCount(examineStaffValueDto); |
| | | |
| | | List<ExamineStaffValueDto> examineStaffValueDtos = null; |
| | | |
| | | if (count > 0) { |
| | | examineStaffValueDtos = examineStaffValueV1InnerServiceSMOImpl.queryExamineStaffValues(examineStaffValueDto); |
| | | } else { |
| | | examineStaffValueDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, examineStaffValueDtos); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineProjectV1InnerServiceSMO; |
| | | import com.java110.po.examineProject.ExamineProjectPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:examineProject.saveExamineProject |
| | | * 请求路劲:/app/examineProject.SaveExamineProject |
| | | * add by 吴学文 at 2023-03-07 15:13:15 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 = "examine.saveExamineProject") |
| | | public class SaveExamineProjectCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveExamineProjectCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IExamineProjectV1InnerServiceSMO examineProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "projectId", "请求报文中未包含projectId"); |
| | | Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name"); |
| | | Assert.hasKeyAndValue(reqJson, "postCd", "请求报文中未包含postCd"); |
| | | Assert.hasKeyAndValue(reqJson, "post", "请求报文中未包含post"); |
| | | Assert.hasKeyAndValue(reqJson, "weight", "请求报文中未包含weight"); |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineProjectPo examineProjectPo = BeanConvertUtil.covertBean(reqJson, ExamineProjectPo.class); |
| | | examineProjectPo.setProjectId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = examineProjectV1InnerServiceSMOImpl.saveExamineProject(examineProjectPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineStaffV1InnerServiceSMO; |
| | | import com.java110.po.examineStaff.ExamineStaffPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:examineStaff.saveExamineStaff |
| | | * 请求路劲:/app/examineStaff.SaveExamineStaff |
| | | * add by 吴学文 at 2023-03-07 15:57:29 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 = "examine.saveExamineStaff") |
| | | public class SaveExamineStaffCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveExamineStaffCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IExamineStaffV1InnerServiceSMO examineStaffV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "staffId", "请求报文中未包含staffId"); |
| | | Assert.hasKeyAndValue(reqJson, "staffName", "请求报文中未包含staffName"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffPo examineStaffPo = BeanConvertUtil.covertBean(reqJson, ExamineStaffPo.class); |
| | | examineStaffPo.setEsId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = examineStaffV1InnerServiceSMOImpl.saveExamineStaff(examineStaffPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineStaffProjectV1InnerServiceSMO; |
| | | import com.java110.po.examineStaffProject.ExamineStaffProjectPo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:examineStaffProject.saveExamineStaffProject |
| | | * 请求路劲:/app/examineStaffProject.SaveExamineStaffProject |
| | | * add by 吴学文 at 2023-03-07 16:09:46 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 = "examine.saveExamineStaffProject") |
| | | public class SaveExamineStaffProjectCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveExamineStaffProjectCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IExamineStaffProjectV1InnerServiceSMO examineStaffProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "esId", "请求报文中未包含esId"); |
| | | Assert.hasKeyAndValue(reqJson, "projectId", "请求报文中未包含projectId"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffProjectPo examineStaffProjectPo = BeanConvertUtil.covertBean(reqJson, ExamineStaffProjectPo.class); |
| | | examineStaffProjectPo.setEspId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = examineStaffProjectV1InnerServiceSMOImpl.saveExamineStaffProject(examineStaffProjectPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | 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.user.IExamineStaffValueV1InnerServiceSMO; |
| | | import com.java110.po.examineStaffValue.ExamineStaffValuePo; |
| | | 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; |
| | | |
| | | /** |
| | | * 类表述:保存 |
| | | * 服务编码:examineStaffValue.saveExamineStaffValue |
| | | * 请求路劲:/app/examineStaffValue.SaveExamineStaffValue |
| | | * add by 吴学文 at 2023-03-07 16:34:48 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 = "examine.saveExamineStaffValue") |
| | | public class SaveExamineStaffValueCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveExamineStaffValueCmd.class); |
| | | |
| | | public static final String CODE_PREFIX_ID = "10"; |
| | | |
| | | @Autowired |
| | | private IExamineStaffValueV1InnerServiceSMO examineStaffValueV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "esId", "请求报文中未包含esId"); |
| | | Assert.hasKeyAndValue(reqJson, "staffId", "请求报文中未包含staffId"); |
| | | Assert.hasKeyAndValue(reqJson, "projectId", "请求报文中未包含projectId"); |
| | | Assert.hasKeyAndValue(reqJson, "examineValue", "请求报文中未包含examineValue"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffValuePo examineStaffValuePo = BeanConvertUtil.covertBean(reqJson, ExamineStaffValuePo.class); |
| | | examineStaffValuePo.setEsvId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | int flag = examineStaffValueV1InnerServiceSMOImpl.saveExamineStaffValue(examineStaffValuePo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineProjectV1InnerServiceSMO; |
| | | import com.java110.po.examineProject.ExamineProjectPo; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:examineProject.updateExamineProject |
| | | * 请求路劲:/app/examineProject.UpdateExamineProject |
| | | * add by 吴学文 at 2023-03-07 15:13:15 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 = "examine.updateExamineProject") |
| | | public class UpdateExamineProjectCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateExamineProjectCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IExamineProjectV1InnerServiceSMO examineProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "projectId", "projectId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineProjectPo examineProjectPo = BeanConvertUtil.covertBean(reqJson, ExamineProjectPo.class); |
| | | int flag = examineProjectV1InnerServiceSMOImpl.updateExamineProject(examineProjectPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineStaffV1InnerServiceSMO; |
| | | import com.java110.po.examineStaff.ExamineStaffPo; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:examineStaff.updateExamineStaff |
| | | * 请求路劲:/app/examineStaff.UpdateExamineStaff |
| | | * add by 吴学文 at 2023-03-07 15:57:29 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 = "examine.updateExamineStaff") |
| | | public class UpdateExamineStaffCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateExamineStaffCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IExamineStaffV1InnerServiceSMO examineStaffV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "esId", "esId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffPo examineStaffPo = BeanConvertUtil.covertBean(reqJson, ExamineStaffPo.class); |
| | | int flag = examineStaffV1InnerServiceSMOImpl.updateExamineStaff(examineStaffPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineStaffProjectV1InnerServiceSMO; |
| | | import com.java110.po.examineStaffProject.ExamineStaffProjectPo; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:examineStaffProject.updateExamineStaffProject |
| | | * 请求路劲:/app/examineStaffProject.UpdateExamineStaffProject |
| | | * add by 吴学文 at 2023-03-07 16:09:46 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 = "examine.updateExamineStaffProject") |
| | | public class UpdateExamineStaffProjectCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateExamineStaffProjectCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IExamineStaffProjectV1InnerServiceSMO examineStaffProjectV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "espId", "espId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffProjectPo examineStaffProjectPo = BeanConvertUtil.covertBean(reqJson, ExamineStaffProjectPo.class); |
| | | int flag = examineStaffProjectV1InnerServiceSMOImpl.updateExamineStaffProject(examineStaffProjectPo); |
| | | |
| | | 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.user.cmd.examine; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.user.IExamineStaffValueV1InnerServiceSMO; |
| | | import com.java110.po.examineStaffValue.ExamineStaffValuePo; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 类表述:更新 |
| | | * 服务编码:examineStaffValue.updateExamineStaffValue |
| | | * 请求路劲:/app/examineStaffValue.UpdateExamineStaffValue |
| | | * add by 吴学文 at 2023-03-07 16:34:48 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 = "examine.updateExamineStaffValue") |
| | | public class UpdateExamineStaffValueCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UpdateExamineStaffValueCmd.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IExamineStaffValueV1InnerServiceSMO examineStaffValueV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "esvId", "esvId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | ExamineStaffValuePo examineStaffValuePo = BeanConvertUtil.covertBean(reqJson, ExamineStaffValuePo.class); |
| | | int flag = examineStaffValueV1InnerServiceSMOImpl.updateExamineStaffValue(examineStaffValuePo); |
| | | |
| | | 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.user.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-07 15:13:14 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 IExamineProjectV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 考核项目信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveExamineProjectInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询考核项目信息(instance过程) |
| | | * 根据bId 查询考核项目信息 |
| | | * @param info bId 信息 |
| | | * @return 考核项目信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getExamineProjectInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改考核项目信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateExamineProjectInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询考核项目总数 |
| | | * |
| | | * @param info 考核项目信息 |
| | | * @return 考核项目数量 |
| | | */ |
| | | int queryExamineProjectsCount(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.user.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-07 16:09:46 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 IExamineStaffProjectV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 员工考核项目信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveExamineStaffProjectInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询员工考核项目信息(instance过程) |
| | | * 根据bId 查询员工考核项目信息 |
| | | * @param info bId 信息 |
| | | * @return 员工考核项目信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getExamineStaffProjectInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改员工考核项目信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateExamineStaffProjectInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询员工考核项目总数 |
| | | * |
| | | * @param info 员工考核项目信息 |
| | | * @return 员工考核项目数量 |
| | | */ |
| | | int queryExamineStaffProjectsCount(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.user.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-07 15:57:29 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 IExamineStaffV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 考核员工信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveExamineStaffInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询考核员工信息(instance过程) |
| | | * 根据bId 查询考核员工信息 |
| | | * @param info bId 信息 |
| | | * @return 考核员工信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getExamineStaffInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改考核员工信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateExamineStaffInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询考核员工总数 |
| | | * |
| | | * @param info 考核员工信息 |
| | | * @return 考核员工数量 |
| | | */ |
| | | int queryExamineStaffsCount(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.user.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.entity.merchant.BoMerchant; |
| | | import com.java110.entity.merchant.BoMerchantAttr; |
| | | import com.java110.entity.merchant.Merchant; |
| | | import com.java110.entity.merchant.MerchantAttr; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 类表述: |
| | | * add by 吴学文 at 2023-03-07 16:34:47 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 IExamineStaffValueV1ServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 考核评分信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int saveExamineStaffValueInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询考核评分信息(instance过程) |
| | | * 根据bId 查询考核评分信息 |
| | | * @param info bId 信息 |
| | | * @return 考核评分信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getExamineStaffValueInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改考核评分信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | int updateExamineStaffValueInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询考核评分总数 |
| | | * |
| | | * @param info 考核评分信息 |
| | | * @return 考核评分数量 |
| | | */ |
| | | int queryExamineStaffValuesCount(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.user.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.user.dao.IExamineProjectV1ServiceDao; |
| | | 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-03-07 15:13:14 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("examineProjectV1ServiceDaoImpl") |
| | | public class ExamineProjectV1ServiceDaoImpl extends BaseServiceDao implements IExamineProjectV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ExamineProjectV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存考核项目信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveExamineProjectInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveExamineProjectInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("examineProjectV1ServiceDaoImpl.saveExamineProjectInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询考核项目信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getExamineProjectInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getExamineProjectInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineProjectInfos = sqlSessionTemplate.selectList("examineProjectV1ServiceDaoImpl.getExamineProjectInfo",info); |
| | | |
| | | return businessExamineProjectInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改考核项目信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateExamineProjectInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateExamineProjectInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("examineProjectV1ServiceDaoImpl.updateExamineProjectInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询考核项目数量 |
| | | * @param info 考核项目信息 |
| | | * @return 考核项目数量 |
| | | */ |
| | | @Override |
| | | public int queryExamineProjectsCount(Map info) { |
| | | logger.debug("查询 queryExamineProjectsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineProjectInfos = sqlSessionTemplate.selectList("examineProjectV1ServiceDaoImpl.queryExamineProjectsCount", info); |
| | | if (businessExamineProjectInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessExamineProjectInfos.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.user.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.user.dao.IExamineStaffProjectV1ServiceDao; |
| | | 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-03-07 16:09:46 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("examineStaffProjectV1ServiceDaoImpl") |
| | | public class ExamineStaffProjectV1ServiceDaoImpl extends BaseServiceDao implements IExamineStaffProjectV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ExamineStaffProjectV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存员工考核项目信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveExamineStaffProjectInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveExamineStaffProjectInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("examineStaffProjectV1ServiceDaoImpl.saveExamineStaffProjectInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询员工考核项目信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getExamineStaffProjectInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getExamineStaffProjectInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineStaffProjectInfos = sqlSessionTemplate.selectList("examineStaffProjectV1ServiceDaoImpl.getExamineStaffProjectInfo",info); |
| | | |
| | | return businessExamineStaffProjectInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改员工考核项目信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateExamineStaffProjectInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateExamineStaffProjectInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("examineStaffProjectV1ServiceDaoImpl.updateExamineStaffProjectInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询员工考核项目数量 |
| | | * @param info 员工考核项目信息 |
| | | * @return 员工考核项目数量 |
| | | */ |
| | | @Override |
| | | public int queryExamineStaffProjectsCount(Map info) { |
| | | logger.debug("查询 queryExamineStaffProjectsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineStaffProjectInfos = sqlSessionTemplate.selectList("examineStaffProjectV1ServiceDaoImpl.queryExamineStaffProjectsCount", info); |
| | | if (businessExamineStaffProjectInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessExamineStaffProjectInfos.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.user.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.user.dao.IExamineStaffV1ServiceDao; |
| | | 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-03-07 15:57:29 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("examineStaffV1ServiceDaoImpl") |
| | | public class ExamineStaffV1ServiceDaoImpl extends BaseServiceDao implements IExamineStaffV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ExamineStaffV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存考核员工信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveExamineStaffInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveExamineStaffInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("examineStaffV1ServiceDaoImpl.saveExamineStaffInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询考核员工信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getExamineStaffInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getExamineStaffInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineStaffInfos = sqlSessionTemplate.selectList("examineStaffV1ServiceDaoImpl.getExamineStaffInfo",info); |
| | | |
| | | return businessExamineStaffInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改考核员工信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateExamineStaffInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateExamineStaffInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("examineStaffV1ServiceDaoImpl.updateExamineStaffInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询考核员工数量 |
| | | * @param info 考核员工信息 |
| | | * @return 考核员工数量 |
| | | */ |
| | | @Override |
| | | public int queryExamineStaffsCount(Map info) { |
| | | logger.debug("查询 queryExamineStaffsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineStaffInfos = sqlSessionTemplate.selectList("examineStaffV1ServiceDaoImpl.queryExamineStaffsCount", info); |
| | | if (businessExamineStaffInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessExamineStaffInfos.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.user.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.user.dao.IExamineStaffValueV1ServiceDao; |
| | | 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-03-07 16:34:48 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("examineStaffValueV1ServiceDaoImpl") |
| | | public class ExamineStaffValueV1ServiceDaoImpl extends BaseServiceDao implements IExamineStaffValueV1ServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ExamineStaffValueV1ServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存考核评分信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int saveExamineStaffValueInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveExamineStaffValueInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("examineStaffValueV1ServiceDaoImpl.saveExamineStaffValueInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询考核评分信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getExamineStaffValueInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getExamineStaffValueInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineStaffValueInfos = sqlSessionTemplate.selectList("examineStaffValueV1ServiceDaoImpl.getExamineStaffValueInfo",info); |
| | | |
| | | return businessExamineStaffValueInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改考核评分信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int updateExamineStaffValueInfo(Map info) throws DAOException { |
| | | logger.debug("修改 updateExamineStaffValueInfo 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("examineStaffValueV1ServiceDaoImpl.updateExamineStaffValueInfo",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询考核评分数量 |
| | | * @param info 考核评分信息 |
| | | * @return 考核评分数量 |
| | | */ |
| | | @Override |
| | | public int queryExamineStaffValuesCount(Map info) { |
| | | logger.debug("查询 queryExamineStaffValuesCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessExamineStaffValueInfos = sqlSessionTemplate.selectList("examineStaffValueV1ServiceDaoImpl.queryExamineStaffValuesCount", info); |
| | | if (businessExamineStaffValueInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessExamineStaffValueInfos.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.user.smo.impl; |
| | | |
| | | |
| | | import com.java110.user.dao.IExamineProjectV1ServiceDao; |
| | | import com.java110.intf.user.IExamineProjectV1InnerServiceSMO; |
| | | import com.java110.dto.examineProject.ExamineProjectDto; |
| | | import com.java110.po.examineProject.ExamineProjectPo; |
| | | 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-03-07 15:13:14 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 ExamineProjectV1InnerServiceSMOImpl extends BaseServiceSMO implements IExamineProjectV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IExamineProjectV1ServiceDao examineProjectV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveExamineProject(@RequestBody ExamineProjectPo examineProjectPo) { |
| | | int saveFlag = examineProjectV1ServiceDaoImpl.saveExamineProjectInfo(BeanConvertUtil.beanCovertMap(examineProjectPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateExamineProject(@RequestBody ExamineProjectPo examineProjectPo) { |
| | | int saveFlag = examineProjectV1ServiceDaoImpl.updateExamineProjectInfo(BeanConvertUtil.beanCovertMap(examineProjectPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteExamineProject(@RequestBody ExamineProjectPo examineProjectPo) { |
| | | examineProjectPo.setStatusCd("1"); |
| | | int saveFlag = examineProjectV1ServiceDaoImpl.updateExamineProjectInfo(BeanConvertUtil.beanCovertMap(examineProjectPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ExamineProjectDto> queryExamineProjects(@RequestBody ExamineProjectDto examineProjectDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = examineProjectDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | examineProjectDto.setPage((page - 1) * examineProjectDto.getRow()); |
| | | } |
| | | |
| | | List<ExamineProjectDto> examineProjects = BeanConvertUtil.covertBeanList(examineProjectV1ServiceDaoImpl.getExamineProjectInfo(BeanConvertUtil.beanCovertMap(examineProjectDto)), ExamineProjectDto.class); |
| | | |
| | | return examineProjects; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryExamineProjectsCount(@RequestBody ExamineProjectDto examineProjectDto) { |
| | | return examineProjectV1ServiceDaoImpl.queryExamineProjectsCount(BeanConvertUtil.beanCovertMap(examineProjectDto)); } |
| | | |
| | | } |
| 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.user.smo.impl; |
| | | |
| | | |
| | | import com.java110.user.dao.IExamineStaffProjectV1ServiceDao; |
| | | import com.java110.intf.user.IExamineStaffProjectV1InnerServiceSMO; |
| | | import com.java110.dto.examineStaffProject.ExamineStaffProjectDto; |
| | | import com.java110.po.examineStaffProject.ExamineStaffProjectPo; |
| | | 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-03-07 16:09:46 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 ExamineStaffProjectV1InnerServiceSMOImpl extends BaseServiceSMO implements IExamineStaffProjectV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IExamineStaffProjectV1ServiceDao examineStaffProjectV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveExamineStaffProject(@RequestBody ExamineStaffProjectPo examineStaffProjectPo) { |
| | | int saveFlag = examineStaffProjectV1ServiceDaoImpl.saveExamineStaffProjectInfo(BeanConvertUtil.beanCovertMap(examineStaffProjectPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateExamineStaffProject(@RequestBody ExamineStaffProjectPo examineStaffProjectPo) { |
| | | int saveFlag = examineStaffProjectV1ServiceDaoImpl.updateExamineStaffProjectInfo(BeanConvertUtil.beanCovertMap(examineStaffProjectPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteExamineStaffProject(@RequestBody ExamineStaffProjectPo examineStaffProjectPo) { |
| | | examineStaffProjectPo.setStatusCd("1"); |
| | | int saveFlag = examineStaffProjectV1ServiceDaoImpl.updateExamineStaffProjectInfo(BeanConvertUtil.beanCovertMap(examineStaffProjectPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ExamineStaffProjectDto> queryExamineStaffProjects(@RequestBody ExamineStaffProjectDto examineStaffProjectDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = examineStaffProjectDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | examineStaffProjectDto.setPage((page - 1) * examineStaffProjectDto.getRow()); |
| | | } |
| | | |
| | | List<ExamineStaffProjectDto> examineStaffProjects = BeanConvertUtil.covertBeanList(examineStaffProjectV1ServiceDaoImpl.getExamineStaffProjectInfo(BeanConvertUtil.beanCovertMap(examineStaffProjectDto)), ExamineStaffProjectDto.class); |
| | | |
| | | return examineStaffProjects; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryExamineStaffProjectsCount(@RequestBody ExamineStaffProjectDto examineStaffProjectDto) { |
| | | return examineStaffProjectV1ServiceDaoImpl.queryExamineStaffProjectsCount(BeanConvertUtil.beanCovertMap(examineStaffProjectDto)); } |
| | | |
| | | } |
| 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.user.smo.impl; |
| | | |
| | | |
| | | import com.java110.user.dao.IExamineStaffV1ServiceDao; |
| | | import com.java110.intf.user.IExamineStaffV1InnerServiceSMO; |
| | | import com.java110.dto.examineStaff.ExamineStaffDto; |
| | | import com.java110.po.examineStaff.ExamineStaffPo; |
| | | 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-03-07 15:57:29 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 ExamineStaffV1InnerServiceSMOImpl extends BaseServiceSMO implements IExamineStaffV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IExamineStaffV1ServiceDao examineStaffV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveExamineStaff(@RequestBody ExamineStaffPo examineStaffPo) { |
| | | int saveFlag = examineStaffV1ServiceDaoImpl.saveExamineStaffInfo(BeanConvertUtil.beanCovertMap(examineStaffPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateExamineStaff(@RequestBody ExamineStaffPo examineStaffPo) { |
| | | int saveFlag = examineStaffV1ServiceDaoImpl.updateExamineStaffInfo(BeanConvertUtil.beanCovertMap(examineStaffPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteExamineStaff(@RequestBody ExamineStaffPo examineStaffPo) { |
| | | examineStaffPo.setStatusCd("1"); |
| | | int saveFlag = examineStaffV1ServiceDaoImpl.updateExamineStaffInfo(BeanConvertUtil.beanCovertMap(examineStaffPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ExamineStaffDto> queryExamineStaffs(@RequestBody ExamineStaffDto examineStaffDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = examineStaffDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | examineStaffDto.setPage((page - 1) * examineStaffDto.getRow()); |
| | | } |
| | | |
| | | List<ExamineStaffDto> examineStaffs = BeanConvertUtil.covertBeanList(examineStaffV1ServiceDaoImpl.getExamineStaffInfo(BeanConvertUtil.beanCovertMap(examineStaffDto)), ExamineStaffDto.class); |
| | | |
| | | return examineStaffs; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryExamineStaffsCount(@RequestBody ExamineStaffDto examineStaffDto) { |
| | | return examineStaffV1ServiceDaoImpl.queryExamineStaffsCount(BeanConvertUtil.beanCovertMap(examineStaffDto)); } |
| | | |
| | | } |
| 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.user.smo.impl; |
| | | |
| | | |
| | | import com.java110.user.dao.IExamineStaffValueV1ServiceDao; |
| | | import com.java110.intf.user.IExamineStaffValueV1InnerServiceSMO; |
| | | import com.java110.dto.examineStaffValue.ExamineStaffValueDto; |
| | | import com.java110.po.examineStaffValue.ExamineStaffValuePo; |
| | | 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-03-07 16:34:48 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 ExamineStaffValueV1InnerServiceSMOImpl extends BaseServiceSMO implements IExamineStaffValueV1InnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IExamineStaffValueV1ServiceDao examineStaffValueV1ServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveExamineStaffValue(@RequestBody ExamineStaffValuePo examineStaffValuePo) { |
| | | int saveFlag = examineStaffValueV1ServiceDaoImpl.saveExamineStaffValueInfo(BeanConvertUtil.beanCovertMap(examineStaffValuePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateExamineStaffValue(@RequestBody ExamineStaffValuePo examineStaffValuePo) { |
| | | int saveFlag = examineStaffValueV1ServiceDaoImpl.updateExamineStaffValueInfo(BeanConvertUtil.beanCovertMap(examineStaffValuePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteExamineStaffValue(@RequestBody ExamineStaffValuePo examineStaffValuePo) { |
| | | examineStaffValuePo.setStatusCd("1"); |
| | | int saveFlag = examineStaffValueV1ServiceDaoImpl.updateExamineStaffValueInfo(BeanConvertUtil.beanCovertMap(examineStaffValuePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ExamineStaffValueDto> queryExamineStaffValues(@RequestBody ExamineStaffValueDto examineStaffValueDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = examineStaffValueDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | examineStaffValueDto.setPage((page - 1) * examineStaffValueDto.getRow()); |
| | | } |
| | | |
| | | List<ExamineStaffValueDto> examineStaffValues = BeanConvertUtil.covertBeanList(examineStaffValueV1ServiceDaoImpl.getExamineStaffValueInfo(BeanConvertUtil.beanCovertMap(examineStaffValueDto)), ExamineStaffValueDto.class); |
| | | |
| | | return examineStaffValues; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryExamineStaffValuesCount(@RequestBody ExamineStaffValueDto examineStaffValueDto) { |
| | | return examineStaffValueV1ServiceDaoImpl.queryExamineStaffValuesCount(BeanConvertUtil.beanCovertMap(examineStaffValueDto)); } |
| | | |
| | | } |