From d87757a16403222893101da1312dc03dee0c8e0b Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 31 Mar 2021 11:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dutylistform/DutyListFormController.java | 135 +++++++ .../dao/dutylistform/IDutyListFormDao.java | 85 +++++ .../pojo/dtos/dutylistform/HeartTalkDTO.java | 173 +++++++++ .../dutylistform/PartyCleanMeetingDTO.java | 163 ++++++++ .../vos/dutylistform/PartyCleanMeetingVO.java | 13 + .../dutylistform/IDutyListFormService.java | 83 ++++ .../impl/DutyListFormServiceImpl.java | 103 +++++ .../dutylistform/dutylistform-mapper.xml | 252 ++++++++++++ .../route/hearttalk/edit-heart-talk.html | 357 +++++++++++++++++ .../route/hearttalk/list-heart-talk.html | 358 ++++++++++++++++++ .../route/hearttalk/save-heart-talk.html | 342 +++++++++++++++++ .../edit-party-clean-meeting.html | 228 +++++++++++ .../list-party-clean-meeting.html | 340 +++++++++++++++++ .../save-party-clean-meeting.html | 213 +++++++++++ 14 files changed, 2845 insertions(+) create mode 100644 src/main/java/com/tenlion/twoduty/controller/api/dutylistform/DutyListFormController.java create mode 100644 src/main/java/com/tenlion/twoduty/dao/dutylistform/IDutyListFormDao.java create mode 100644 src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/HeartTalkDTO.java create mode 100644 src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/PartyCleanMeetingDTO.java create mode 100644 src/main/java/com/tenlion/twoduty/pojo/vos/dutylistform/PartyCleanMeetingVO.java create mode 100644 src/main/java/com/tenlion/twoduty/service/dutylistform/IDutyListFormService.java create mode 100644 src/main/java/com/tenlion/twoduty/service/dutylistform/impl/DutyListFormServiceImpl.java create mode 100644 src/main/resources/mybatis/mapper/dutylistform/dutylistform-mapper.xml create mode 100644 src/main/resources/static/route/hearttalk/edit-heart-talk.html create mode 100644 src/main/resources/static/route/hearttalk/list-heart-talk.html create mode 100644 src/main/resources/static/route/hearttalk/save-heart-talk.html create mode 100644 src/main/resources/static/route/partycleanmeeting/edit-party-clean-meeting.html create mode 100644 src/main/resources/static/route/partycleanmeeting/list-party-clean-meeting.html create mode 100644 src/main/resources/static/route/partycleanmeeting/save-party-clean-meeting.html diff --git a/src/main/java/com/tenlion/twoduty/controller/api/dutylistform/DutyListFormController.java b/src/main/java/com/tenlion/twoduty/controller/api/dutylistform/DutyListFormController.java new file mode 100644 index 0000000..4847e7a --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/controller/api/dutylistform/DutyListFormController.java @@ -0,0 +1,135 @@ +package com.tenlion.twoduty.controller.api.dutylistform; + +import com.tenlion.twoduty.pojo.dtos.dutylistform.HeartTalkDTO; +import com.tenlion.twoduty.pojo.dtos.dutylistform.PartyCleanMeetingDTO; +import com.tenlion.twoduty.pojo.vos.dutylistform.PartyCleanMeetingVO; +import com.tenlion.twoduty.service.dutylistform.IDutyListFormService; +import ink.wgink.annotation.CheckRequestBodyAnnotation; +import ink.wgink.common.base.DefaultBaseController; +import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.result.ErrorResult; +import ink.wgink.pojo.result.SuccessResult; +import ink.wgink.pojo.result.SuccessResultList; +import io.swagger.annotations.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 责任清单表单接口 + * @author xwangs + * @create 2021-03-29 15:31 + * @description + */ +@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "责任清单表单接口") +@RestController +@RequestMapping(ISystemConstant.API_PREFIX + "/dutylistform") +public class DutyListFormController extends DefaultBaseController { + + @Autowired + private IDutyListFormService dutyListFormService; + + @ApiOperation(value = "党风廉政大会分页列表", notes = "党风廉政大会分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpagepartycleanmeeting") + public SuccessResultList> listPagePartyCleanMeeting(ListPage page) { + Map params = requestParams(); + page.setParams(params); + return dutyListFormService.listPagePartyCleanMeeting(page); + } + + @ApiOperation(value = "党风廉政大会详情", notes = "党风廉政大会详情接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("getpartycleanmeeting/{id}") + public PartyCleanMeetingDTO getPartyCleanMeeting(@PathVariable("id") String reportId) { + Map params = requestParams(); + params.put("reportId",reportId); + return dutyListFormService.getPartyCleanMeeting(params); + } + + @ApiOperation(value = "新增党风廉政大会", notes = "新增党风廉政大会接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @PostMapping("savepartycleanmeeting") + public SuccessResult savePartyCleanMeeting(@RequestBody PartyCleanMeetingVO partyCleanMeetingVO) throws Exception{ + dutyListFormService.savePartyCleanMeeting(partyCleanMeetingVO); + return new SuccessResult(); + } + + @ApiOperation(value = "党风廉政大会修改", notes = "党风廉政大会修改接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @PutMapping("updatepartycleanmeeting/{id}") + public SuccessResult updatePartyCleanMeeting(@PathVariable("id") String id, @RequestBody PartyCleanMeetingVO partyCleanMeetingVO) { + partyCleanMeetingVO.setReportId(id); + dutyListFormService.updatePartyCleanMeeting(partyCleanMeetingVO); + return new SuccessResult(); + } + + @ApiOperation(value = "党风廉政大会删除", notes = "党风廉政大会删除接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @DeleteMapping("removepartycleanmeeting/{ids}") + public SuccessResult removePartyCleanMeeting(@PathVariable("ids") String ids) { + dutyListFormService.removePartyCleanMeeting(Arrays.asList(ids.split("\\_"))); + return new SuccessResult(); + } + + @ApiOperation(value = "谈心谈话分页列表", notes = "谈心谈话分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "谈话时间开始", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "谈话时间结束", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpagehearttalk") + public SuccessResultList> listPageHeartTalk(ListPage page) { + Map params = requestParams(); + page.setParams(params); + return dutyListFormService.listPageHeartTalk(page); + } + + @ApiOperation(value = "谈心谈话详情", notes = "谈心谈话详情接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("gethearttalk/{id}") + public HeartTalkDTO getHeartTalk(@PathVariable("id") String reportId) { + Map params = requestParams(); + params.put("reportId",reportId); + return dutyListFormService.getHeartTalk(params); + } + + @ApiOperation(value = "新增谈心谈话", notes = "新增谈心谈话接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @PostMapping("savehearttalk") + public SuccessResult saveHeartTalk(@RequestBody HeartTalkDTO heartTalkDTO) throws Exception{ + dutyListFormService.saveHeartTalk(heartTalkDTO); + return new SuccessResult(); + } + + @ApiOperation(value = "谈心谈话修改", notes = "谈心谈话修改接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @PutMapping("updatehearttalk/{id}") + public SuccessResult updateHeartTalk(@PathVariable("id") String id, @RequestBody HeartTalkDTO heartTalkDTO) { + heartTalkDTO.setReportId(id); + dutyListFormService.updateHeartTalk(heartTalkDTO); + return new SuccessResult(); + } + + @ApiOperation(value = "谈心谈话删除", notes = "谈心谈话删除接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @DeleteMapping("removehearttalk/{ids}") + public SuccessResult removeHeartTalk(@PathVariable("ids") String ids) { + dutyListFormService.removeHeartTalk(Arrays.asList(ids.split("\\_"))); + return new SuccessResult(); + } +} diff --git a/src/main/java/com/tenlion/twoduty/dao/dutylistform/IDutyListFormDao.java b/src/main/java/com/tenlion/twoduty/dao/dutylistform/IDutyListFormDao.java new file mode 100644 index 0000000..c9e0e32 --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/dao/dutylistform/IDutyListFormDao.java @@ -0,0 +1,85 @@ +package com.tenlion.twoduty.dao.dutylistform; + +import com.tenlion.twoduty.pojo.dtos.dutylistform.HeartTalkDTO; +import com.tenlion.twoduty.pojo.dtos.dutylistform.PartyCleanMeetingDTO; +import ink.wgink.pojo.result.SuccessResultData; +import org.springframework.stereotype.Repository; + +import java.util.List; +import java.util.Map; + +/** + * @author xwangs + * @create 2021-03-29 15:35 + * @description + */ +@Repository +public interface IDutyListFormDao { + + /** + * 党风廉政大会列表 + * @param params + * @return + */ + List listPartyCleanMeeting(Map params); + + /** + * 党风廉政大会详情 + * @param params + * @return + */ + PartyCleanMeetingDTO getPartyCleanMeeting(Map params); + + /** + * 党风廉政大会新增 + * @param params + * @return + */ + void savePartyCleanMeeting(Map params); + + /** + * 党风廉政大会修改 + * @param params + * @return + */ + void updatePartyCleanMeeting(Map params); + + /** + * 党风廉政大会删除 + * @param params + * @return + */ + void removePartyCleanMeeting(Map params); + + /** + * 谈心谈话列表 + * @param params + * @return + */ + List listHeartTalk(Map params); + + /** + * 谈心谈话详情 + * @param params + * @return + */ + HeartTalkDTO getHeartTalk(Map params); + + /** + * 谈心谈话新增 + * @param params + */ + void saveHeartTalk(Map params); + + /** + * 谈心谈话修改 + * @param params + */ + void updateHeartTalk(Map params); + + /** + * 谈心谈话删除 + * @param params + */ + void removeHeartTalk(Map params); +} diff --git a/src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/HeartTalkDTO.java b/src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/HeartTalkDTO.java new file mode 100644 index 0000000..ec1446e --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/HeartTalkDTO.java @@ -0,0 +1,173 @@ +package com.tenlion.twoduty.pojo.dtos.dutylistform; + +import io.swagger.annotations.ApiModelProperty; + +/** + * 谈心谈话DTO + * @author xwangs + * @create 2021-03-29 15:58 + * @description + */ +public class HeartTalkDTO { + + @ApiModelProperty(name = "reportId", value = "主键Id") + private String reportId; + @ApiModelProperty(name = "dutyIndexLibId", value = "责任清单ID") + private String dutyIndexLibId; + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + @ApiModelProperty(name = "talkObj", value = "谈心谈话对象") + private String talkObj; + @ApiModelProperty(name = "politicalStatus", value = "政治面貌") + private String politicalStatus; + @ApiModelProperty(name = "orgJob", value = "单位职务") + private String orgJob; + @ApiModelProperty(name = "talkReason", value = "谈心谈话原因") + private String talkReason; + @ApiModelProperty(name = "talkPerson", value = "谈话人") + private String talkPerson; + @ApiModelProperty(name = "talkPersonOrgJob", value = "谈话人单位职务") + private String talkPersonOrgJob; + @ApiModelProperty(name = "noteTaker", value = "记录人") + private String noteTaker; + @ApiModelProperty(name = "talkDateTime", value = "谈话时间") + private String talkDateTime; + @ApiModelProperty(name = "talkPlace", value = "谈话地点") + private String talkPlace; + @ApiModelProperty(name = "talkContent", value = "谈心谈话内容") + private String talkContent; + @ApiModelProperty(name = "talkObjOpinion", value = "谈心谈话对象意见") + private String talkObjOpinion; + @ApiModelProperty(name = "talkObjSign", value = "谈心谈话对象签字") + private String talkObjSign; + @ApiModelProperty(name = "signDataTime", value = "签字日期") + private String signDataTime; + + public String getReportId() { + return reportId == null ? "" : reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public String getDutyIndexLibId() { + return dutyIndexLibId == null ? "" : dutyIndexLibId; + } + + public void setDutyIndexLibId(String dutyIndexLibId) { + this.dutyIndexLibId = dutyIndexLibId; + } + + public String getOrgName() { + return orgName == null ? "" : orgName; + } + + public void setOrgName(String orgName) { + this.orgName = orgName; + } + + public String getTalkObj() { + return talkObj == null ? "" : talkObj; + } + + public void setTalkObj(String talkObj) { + this.talkObj = talkObj; + } + + public String getPoliticalStatus() { + return politicalStatus == null ? "" : politicalStatus; + } + + public void setPoliticalStatus(String politicalStatus) { + this.politicalStatus = politicalStatus; + } + + public String getOrgJob() { + return orgJob == null ? "" : orgJob; + } + + public void setOrgJob(String orgJob) { + this.orgJob = orgJob; + } + + public String getTalkReason() { + return talkReason == null ? "" : talkReason; + } + + public void setTalkReason(String talkReason) { + this.talkReason = talkReason; + } + + public String getTalkPerson() { + return talkPerson == null ? "" : talkPerson; + } + + public void setTalkPerson(String talkPerson) { + this.talkPerson = talkPerson; + } + + public String getTalkPersonOrgJob() { + return talkPersonOrgJob == null ? "" : talkPersonOrgJob; + } + + public void setTalkPersonOrgJob(String talkPersonOrgJob) { + this.talkPersonOrgJob = talkPersonOrgJob; + } + + public String getNoteTaker() { + return noteTaker == null ? "" : noteTaker; + } + + public void setNoteTaker(String noteTaker) { + this.noteTaker = noteTaker; + } + + public String getTalkDateTime() { + return talkDateTime == null ? "" : talkDateTime; + } + + public void setTalkDateTime(String talkDateTime) { + this.talkDateTime = talkDateTime; + } + + public String getTalkPlace() { + return talkPlace == null ? "" : talkPlace; + } + + public void setTalkPlace(String talkPlace) { + this.talkPlace = talkPlace; + } + + public String getTalkContent() { + return talkContent == null ? "" : talkContent; + } + + public void setTalkContent(String talkContent) { + this.talkContent = talkContent; + } + + public String getTalkObjOpinion() { + return talkObjOpinion == null ? "" : talkObjOpinion; + } + + public void setTalkObjOpinion(String talkObjOpinion) { + this.talkObjOpinion = talkObjOpinion; + } + + public String getTalkObjSign() { + return talkObjSign == null ? "" : talkObjSign; + } + + public void setTalkObjSign(String talkObjSign) { + this.talkObjSign = talkObjSign; + } + + public String getSignDataTime() { + return signDataTime == null ? "" : signDataTime; + } + + public void setSignDataTime(String signDataTime) { + this.signDataTime = signDataTime; + } +} diff --git a/src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/PartyCleanMeetingDTO.java b/src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/PartyCleanMeetingDTO.java new file mode 100644 index 0000000..c28fd40 --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/pojo/dtos/dutylistform/PartyCleanMeetingDTO.java @@ -0,0 +1,163 @@ +package com.tenlion.twoduty.pojo.dtos.dutylistform; + +import io.swagger.annotations.ApiModelProperty; + +/** + * 党风廉政建设大会DTO + * @author xwangs + * @create 2021-03-29 15:58 + * @description + */ +public class PartyCleanMeetingDTO { + + @ApiModelProperty(name = "reportId", value = "主键Id") + private String reportId; + @ApiModelProperty(name = "dutyIndexLibId", value = "责任清单ID") + private String dutyIndexLibId; + @ApiModelProperty(name = "title", value = "标题") + private String title; + @ApiModelProperty(name = "meetingTime", value = "会议时间") + private String meetingTime; + @ApiModelProperty(name = "meetingPlace", value = "会议地点") + private String meetingPlace; + @ApiModelProperty(name = "meetingHost", value = "会议主持人") + private String meetingHost; + @ApiModelProperty(name = "noteTaker", value = "记录人") + private String noteTaker; + @ApiModelProperty(name = "joinPerson", value = "参会人员") + private String joinPerson; + @ApiModelProperty(name = "joinPersonCount", value = "参会人数") + private String joinPersonCount; + @ApiModelProperty(name = "meetingContent", value = "会议纪要内容") + private String meetingContent; + @ApiModelProperty(name = "meetingArrange", value = "会议安排") + private String meetingArrange; + @ApiModelProperty(name = "meetingAgenda", value = "会议议程") + private String meetingAgenda; + @ApiModelProperty(name = "hostContent", value = "主持词") + private String hostContent; + @ApiModelProperty(name = "partySecretaryTalk", value = "党委书记讲话内容") + private String partySecretaryTalk; + @ApiModelProperty(name = "remarks", value = "备注") + private String remarks; + + public String getReportId() { + return reportId == null ? "" : reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public String getDutyIndexLibId() { + return dutyIndexLibId == null ? "" : dutyIndexLibId; + } + + public void setDutyIndexLibId(String dutyIndexLibId) { + this.dutyIndexLibId = dutyIndexLibId; + } + + public String getTitle() { + return title == null ? "" : title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getMeetingTime() { + return meetingTime == null ? "" : meetingTime; + } + + public void setMeetingTime(String meetingTime) { + this.meetingTime = meetingTime; + } + + public String getMeetingPlace() { + return meetingPlace == null ? "" : meetingPlace; + } + + public void setMeetingPlace(String meetingPlace) { + this.meetingPlace = meetingPlace; + } + + public String getMeetingHost() { + return meetingHost == null ? "" : meetingHost; + } + + public void setMeetingHost(String meetingHost) { + this.meetingHost = meetingHost; + } + + public String getNoteTaker() { + return noteTaker == null ? "" : noteTaker; + } + + public void setNoteTaker(String noteTaker) { + this.noteTaker = noteTaker; + } + + public String getJoinPerson() { + return joinPerson == null ? "" : joinPerson; + } + + public void setJoinPerson(String joinPerson) { + this.joinPerson = joinPerson; + } + + public String getJoinPersonCount() { + return joinPersonCount == null ? "" : joinPersonCount; + } + + public void setJoinPersonCount(String joinPersonCount) { + this.joinPersonCount = joinPersonCount; + } + + public String getMeetingContent() { + return meetingContent == null ? "" : meetingContent; + } + + public void setMeetingContent(String meetingContent) { + this.meetingContent = meetingContent; + } + + public String getMeetingArrange() { + return meetingArrange == null ? "" : meetingArrange; + } + + public void setMeetingArrange(String meetingArrange) { + this.meetingArrange = meetingArrange; + } + + public String getMeetingAgenda() { + return meetingAgenda == null ? "" : meetingAgenda; + } + + public void setMeetingAgenda(String meetingAgenda) { + this.meetingAgenda = meetingAgenda; + } + + public String getHostContent() { + return hostContent == null ? "" : hostContent; + } + + public void setHostContent(String hostContent) { + this.hostContent = hostContent; + } + + public String getPartySecretaryTalk() { + return partySecretaryTalk == null ? "" : partySecretaryTalk; + } + + public void setPartySecretaryTalk(String partySecretaryTalk) { + this.partySecretaryTalk = partySecretaryTalk; + } + + public String getRemarks() { + return remarks == null ? "" : remarks; + } + + public void setRemarks(String remarks) { + this.remarks = remarks; + } +} diff --git a/src/main/java/com/tenlion/twoduty/pojo/vos/dutylistform/PartyCleanMeetingVO.java b/src/main/java/com/tenlion/twoduty/pojo/vos/dutylistform/PartyCleanMeetingVO.java new file mode 100644 index 0000000..11a49cb --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/pojo/vos/dutylistform/PartyCleanMeetingVO.java @@ -0,0 +1,13 @@ +package com.tenlion.twoduty.pojo.vos.dutylistform; + +import com.tenlion.twoduty.pojo.dtos.dutylistform.PartyCleanMeetingDTO; + +/** + * 党风廉政建设大会VO + * @author xwangs + * @create 2021-03-29 16:26 + * @description + */ +public class PartyCleanMeetingVO extends PartyCleanMeetingDTO { + +} diff --git a/src/main/java/com/tenlion/twoduty/service/dutylistform/IDutyListFormService.java b/src/main/java/com/tenlion/twoduty/service/dutylistform/IDutyListFormService.java new file mode 100644 index 0000000..6db5155 --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/service/dutylistform/IDutyListFormService.java @@ -0,0 +1,83 @@ +package com.tenlion.twoduty.service.dutylistform; + +import com.tenlion.twoduty.pojo.dtos.dutylistform.HeartTalkDTO; +import com.tenlion.twoduty.pojo.dtos.dutylistform.PartyCleanMeetingDTO; +import com.tenlion.twoduty.pojo.vos.dutylistform.PartyCleanMeetingVO; +import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.result.SuccessResultData; +import ink.wgink.pojo.result.SuccessResultList; + +import java.util.List; +import java.util.Map; + +/** + * @author xwangs + * @create 2021-03-29 15:33 + * @description + */ +public interface IDutyListFormService { + + /** + * 党风廉政大会分页列表 + * @param page + * @return + */ + SuccessResultList> listPagePartyCleanMeeting(ListPage page); + + /** + * 党风廉政大会详情 + * @param params + * @return + */ + PartyCleanMeetingDTO getPartyCleanMeeting(Map params); + + /** + * 新增党风廉政大会 + * @param partyCleanMeetingVO + */ + void savePartyCleanMeeting(PartyCleanMeetingVO partyCleanMeetingVO) throws Exception; + + /** + * 修改党风廉政大会 + * @param partyCleanMeetingVO + */ + void updatePartyCleanMeeting(PartyCleanMeetingVO partyCleanMeetingVO); + + /** + * 删除党风廉政大会 + * @param idsList + */ + void removePartyCleanMeeting(List idsList); + + /** + * 谈心谈话分页列表 + * @param page + * @return + */ + SuccessResultList> listPageHeartTalk(ListPage page); + + /** + * 谈心谈话详情 + * @param params + * @return + */ + HeartTalkDTO getHeartTalk(Map params); + + /** + * 谈心谈话新增 + * @param heartTalkDTO + */ + void saveHeartTalk(HeartTalkDTO heartTalkDTO); + + /** + * 谈心谈话修改 + * @param heartTalkDTO + */ + void updateHeartTalk(HeartTalkDTO heartTalkDTO); + + /** + * 谈心谈话删除 + * @param asList + */ + void removeHeartTalk(List asList); +} diff --git a/src/main/java/com/tenlion/twoduty/service/dutylistform/impl/DutyListFormServiceImpl.java b/src/main/java/com/tenlion/twoduty/service/dutylistform/impl/DutyListFormServiceImpl.java new file mode 100644 index 0000000..4aae9fc --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/service/dutylistform/impl/DutyListFormServiceImpl.java @@ -0,0 +1,103 @@ +package com.tenlion.twoduty.service.dutylistform.impl; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.tenlion.twoduty.dao.dutylistform.IDutyListFormDao; +import com.tenlion.twoduty.pojo.dtos.dutylistform.HeartTalkDTO; +import com.tenlion.twoduty.pojo.dtos.dutylistform.PartyCleanMeetingDTO; +import com.tenlion.twoduty.pojo.vos.dutylistform.PartyCleanMeetingVO; +import com.tenlion.twoduty.service.dutylistform.IDutyListFormService; +import ink.wgink.common.base.DefaultBaseService; +import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.result.SuccessResultList; +import ink.wgink.util.UUIDUtil; +import ink.wgink.util.map.HashMapUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** + * @author xwangs + * @create 2021-03-29 15:34 + * @description + */ +@Service +public class DutyListFormServiceImpl extends DefaultBaseService implements IDutyListFormService { + + @Autowired + private IDutyListFormDao dutyListFormDao; + + @Override + public SuccessResultList> listPagePartyCleanMeeting(ListPage page) { + PageHelper.startPage(page.getPage(), page.getRows()); + List dtoList = dutyListFormDao.listPartyCleanMeeting(page.getParams()); + PageInfo pageInfo = new PageInfo<>(dtoList); + return new SuccessResultList<>(dtoList,pageInfo.getPageNum(),pageInfo.getTotal()); + } + + @Override + public PartyCleanMeetingDTO getPartyCleanMeeting(Map params) { + return dutyListFormDao.getPartyCleanMeeting(params); + } + + @Override + public void savePartyCleanMeeting(PartyCleanMeetingVO partyCleanMeetingVO) { + Map params = HashMapUtil.beanToMap(partyCleanMeetingVO); + String id = UUIDUtil.getUUID(); + params.put("reportId",id); + setSaveInfo(params); + dutyListFormDao.savePartyCleanMeeting(params); + } + + @Override + public void updatePartyCleanMeeting(PartyCleanMeetingVO partyCleanMeetingVO) { + Map params = HashMapUtil.beanToMap(partyCleanMeetingVO); + setUpdateInfo(params); + dutyListFormDao.updatePartyCleanMeeting(params); + } + + @Override + public void removePartyCleanMeeting(List idsList) { + Map params = getHashMap(2); + params.put("ids", idsList); + dutyListFormDao.removePartyCleanMeeting(params); + } + + @Override + public SuccessResultList> listPageHeartTalk(ListPage page) { + PageHelper.startPage(page.getPage(), page.getRows()); + List dtoList = dutyListFormDao.listHeartTalk(page.getParams()); + PageInfo pageInfo = new PageInfo<>(dtoList); + return new SuccessResultList<>(dtoList,pageInfo.getPageNum(),pageInfo.getTotal()); + } + + @Override + public HeartTalkDTO getHeartTalk(Map params) { + return dutyListFormDao.getHeartTalk(params); + } + + @Override + public void saveHeartTalk(HeartTalkDTO heartTalkDTO) { + Map params = HashMapUtil.beanToMap(heartTalkDTO); + String id = UUIDUtil.getUUID(); + params.put("reportId",id); + setSaveInfo(params); + dutyListFormDao.saveHeartTalk(params); + } + + @Override + public void updateHeartTalk(HeartTalkDTO heartTalkDTO) { + Map params = HashMapUtil.beanToMap(heartTalkDTO); + setUpdateInfo(params); + dutyListFormDao.updateHeartTalk(params); + } + + @Override + public void removeHeartTalk(List asList) { + Map params = getHashMap(2); + params.put("ids", asList); + dutyListFormDao.removeHeartTalk(params); + } +} diff --git a/src/main/resources/mybatis/mapper/dutylistform/dutylistform-mapper.xml b/src/main/resources/mybatis/mapper/dutylistform/dutylistform-mapper.xml new file mode 100644 index 0000000..3f3d4d6 --- /dev/null +++ b/src/main/resources/mybatis/mapper/dutylistform/dutylistform-mapper.xml @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO t_party_clean_meeting ( + report_id,duty_index_lib_id,title,meeting_time,meeting_place,meeting_host,note_taker, + join_person,join_person_count,meeting_content,meeting_arrange,meeting_agenda,host_content, + party_secretary_talk,remarks,creator,gmt_create,modifier,gmt_modified,is_delete + ) VALUES ( + #{reportId},#{dutyIndexLibId},#{title},#{meetingTime},#{meetingPlace},#{meetingHost},#{noteTaker}, + #{joinPerson},#{joinPersonCount},#{meetingContent},#{meetingArrange},#{meetingAgenda},#{hostContent}, + #{partySecretaryTalk},#{remarks},#{creator},#{gmtCreate},#{modifier},#{gmtModified},#{isDelete} + ) + + + + UPDATE t_party_clean_meeting SET + + duty_index_lib_id = #{dutyIndexLibId}, + + + title = #{title}, + + + meeting_time = #{meetingTime}, + + + meeting_place = #{meetingPlace}, + + + meeting_host = #{meetingHost}, + + + note_taker = #{noteTaker}, + + + join_person = #{joinPerson}, + + + join_person_count = #{joinPersonCount}, + + + meeting_content = #{meetingContent}, + + + meeting_arrange = #{meetingArrange}, + + + meeting_agenda = #{meetingAgenda}, + + + host_content = #{hostContent}, + + + party_secretary_talk = #{partySecretaryTalk}, + + + remarks = #{remarks}, + + + gmt_modified = #{gmtModified}, + + + modifier = #{modifier} + + WHERE report_id = #{reportId} + + + + UPDATE t_party_clean_meeting SET + is_delete = 1 + WHERE + report_id IN + + #{ids[${index}]} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO t_heart_talk ( + report_id,duty_index_lib_id,org_name,talk_obj,political_status,org_job,talk_reason, + talk_person,talk_person_org_job,note_taker,talk_date_time,talk_place,talk_content, + talk_obj_opinion,talk_obj_sign,sign_data_time,creator,gmt_create,modifier,gmt_modified,is_delete + ) VALUES ( + #{reportId},#{dutyIndexLibId},#{orgName},#{talkObj},#{politicalStatus},#{orgJob},#{talkReason}, + #{talkPerson},#{talkPersonOrgJob},#{noteTaker},#{talkDateTime},#{talkPlace},#{talkContent}, + #{talkObjOpinion},#{talkObjSign},#{signDataTime},#{creator},#{gmtCreate},#{modifier},#{gmtModified},#{isDelete} + ) + + + + UPDATE t_heart_talk SET + + duty_index_lib_id = #{dutyIndexLibId}, + + + org_name = #{orgName}, + + + talk_obj = #{talkObj}, + + + political_status = #{politicalStatus}, + + + org_job = #{orgJob}, + + + talk_reason = #{talkReason}, + + + talk_person = #{talkPerson}, + + + talk_person_org_job = #{talkPersonOrgJob}, + + + note_taker = #{noteTaker}, + + + talk_date_time = #{talkDateTime}, + + + talk_place = #{talkPlace}, + + + talk_content = #{talkContent}, + + + talk_obj_opinion = #{talkObjOpinion}, + + + talk_obj_sign = #{talkObjSign}, + + + sign_data_time = #{signDataTime}, + + + gmt_modified = #{gmtModified}, + + + modifier = #{modifier} + + WHERE report_id = #{reportId} + + + + UPDATE t_heart_talk SET + is_delete = 1 + WHERE + report_id IN + + #{ids[${index}]} + + + \ No newline at end of file diff --git a/src/main/resources/static/route/hearttalk/edit-heart-talk.html b/src/main/resources/static/route/hearttalk/edit-heart-talk.html new file mode 100644 index 0000000..02dc445 --- /dev/null +++ b/src/main/resources/static/route/hearttalk/edit-heart-talk.html @@ -0,0 +1,357 @@ + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/main/resources/static/route/hearttalk/list-heart-talk.html b/src/main/resources/static/route/hearttalk/list-heart-talk.html new file mode 100644 index 0000000..d19dc7c --- /dev/null +++ b/src/main/resources/static/route/hearttalk/list-heart-talk.html @@ -0,0 +1,358 @@ + + + + + + + + + + + + + +
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+ +
+ + +
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/main/resources/static/route/hearttalk/save-heart-talk.html b/src/main/resources/static/route/hearttalk/save-heart-talk.html new file mode 100644 index 0000000..4d92722 --- /dev/null +++ b/src/main/resources/static/route/hearttalk/save-heart-talk.html @@ -0,0 +1,342 @@ + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/main/resources/static/route/partycleanmeeting/edit-party-clean-meeting.html b/src/main/resources/static/route/partycleanmeeting/edit-party-clean-meeting.html new file mode 100644 index 0000000..754215a --- /dev/null +++ b/src/main/resources/static/route/partycleanmeeting/edit-party-clean-meeting.html @@ -0,0 +1,228 @@ + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/src/main/resources/static/route/partycleanmeeting/list-party-clean-meeting.html b/src/main/resources/static/route/partycleanmeeting/list-party-clean-meeting.html new file mode 100644 index 0000000..8e3abb4 --- /dev/null +++ b/src/main/resources/static/route/partycleanmeeting/list-party-clean-meeting.html @@ -0,0 +1,340 @@ + + + + + + + + + + + + + +
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+ +
+ + +
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/main/resources/static/route/partycleanmeeting/save-party-clean-meeting.html b/src/main/resources/static/route/partycleanmeeting/save-party-clean-meeting.html new file mode 100644 index 0000000..95a944d --- /dev/null +++ b/src/main/resources/static/route/partycleanmeeting/save-party-clean-meeting.html @@ -0,0 +1,213 @@ + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + + + \ No newline at end of file