Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
| New file |
| | |
| | | package com.java110.dto.reportInfoSetting; |
| | | |
| | | 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 ReportInfoSettingDto extends PageDto implements Serializable { |
| | | |
| | | private String reportType; |
| | | private String name; |
| | | private String startTime; |
| | | private String remark; |
| | | private String endTime; |
| | | private String communityId; |
| | | private String settingId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getReportType() { |
| | | return reportType; |
| | | } |
| | | public void setReportType(String reportType) { |
| | | this.reportType = reportType; |
| | | } |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getSettingId() { |
| | | return settingId; |
| | | } |
| | | public void setSettingId(String settingId) { |
| | | this.settingId = settingId; |
| | | } |
| | | |
| | | |
| | | 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.reportInfoSettingTitle; |
| | | |
| | | 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 ReportInfoSettingTitleDto extends PageDto implements Serializable { |
| | | |
| | | private String titleType; |
| | | private String titleId; |
| | | private String title; |
| | | private String communityId; |
| | | private String seq; |
| | | private String settingId; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getTitleType() { |
| | | return titleType; |
| | | } |
| | | public void setTitleType(String titleType) { |
| | | this.titleType = titleType; |
| | | } |
| | | public String getTitleId() { |
| | | return titleId; |
| | | } |
| | | public void setTitleId(String titleId) { |
| | | this.titleId = titleId; |
| | | } |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getSeq() { |
| | | return seq; |
| | | } |
| | | public void setSeq(String seq) { |
| | | this.seq = seq; |
| | | } |
| | | public String getSettingId() { |
| | | return settingId; |
| | | } |
| | | public void setSettingId(String settingId) { |
| | | this.settingId = settingId; |
| | | } |
| | | |
| | | |
| | | 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.po.reportInfoSetting; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class ReportInfoSettingPo implements Serializable { |
| | | |
| | | private String reportType; |
| | | private String name; |
| | | private String startTime; |
| | | private String remark; |
| | | private String statusCd = "0"; |
| | | private String endTime; |
| | | private String communityId; |
| | | private String settingId; |
| | | public String getReportType() { |
| | | return reportType; |
| | | } |
| | | public void setReportType(String reportType) { |
| | | this.reportType = reportType; |
| | | } |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getSettingId() { |
| | | return settingId; |
| | | } |
| | | public void setSettingId(String settingId) { |
| | | this.settingId = settingId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.po.reportInfoSettingTitle; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class ReportInfoSettingTitlePo implements Serializable { |
| | | |
| | | private String titleType; |
| | | private String titleId; |
| | | private String statusCd = "0"; |
| | | private String title; |
| | | private String communityId; |
| | | private String seq; |
| | | private String settingId; |
| | | public String getTitleType() { |
| | | return titleType; |
| | | } |
| | | public void setTitleType(String titleType) { |
| | | this.titleType = titleType; |
| | | } |
| | | public String getTitleId() { |
| | | return titleId; |
| | | } |
| | | public void setTitleId(String titleId) { |
| | | this.titleId = titleId; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | public String getSeq() { |
| | | return seq; |
| | | } |
| | | public void setSeq(String seq) { |
| | | this.seq = seq; |
| | | } |
| | | public String getSettingId() { |
| | | return settingId; |
| | | } |
| | | public void setSettingId(String settingId) { |
| | | this.settingId = settingId; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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="reportInfoSettingServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存进出上报信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveReportInfoSettingInfo" parameterType="Map"> |
| | | insert into report_info_setting( |
| | | report_type,name,start_time,remark,end_time,community_id,setting_id |
| | | ) values ( |
| | | #{reportType},#{name},#{startTime},#{remark},#{endTime},#{communityId},#{settingId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询进出上报信息 add by wuxw 2018-07-03 --> |
| | | <select id="getReportInfoSettingInfo" parameterType="Map" resultType="Map"> |
| | | select t.report_type,t.report_type reportType,t.create_time,t.create_time createTime,t.name,t.start_time,t.start_time startTime,t.remark,t.status_cd,t.status_cd statusCd,t.end_time,t.end_time endTime,t.community_id,t.community_id communityId,t.setting_id,t.setting_id settingId |
| | | from report_info_setting t |
| | | where 1 =1 |
| | | <if test="reportType !=null and reportType != ''"> |
| | | and t.report_type= #{reportType} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="settingId !=null and settingId != ''"> |
| | | and t.setting_id= #{settingId} |
| | | </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="updateReportInfoSettingInfo" parameterType="Map"> |
| | | update report_info_setting t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="reportType !=null and reportType != ''"> |
| | | , t.report_type= #{reportType} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | , t.create_time= #{createTime} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | , t.name= #{name} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | , t.start_time= #{startTime} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | , t.end_time= #{endTime} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | where 1=1 <if test="settingId !=null and settingId != ''"> |
| | | and t.setting_id= #{settingId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询进出上报数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryReportInfoSettingsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from report_info_setting t |
| | | where 1 =1 |
| | | <if test="reportType !=null and reportType != ''"> |
| | | and t.report_type= #{reportType} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="settingId !=null and settingId != ''"> |
| | | and t.setting_id= #{settingId} |
| | | </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="reportInfoSettingTitleServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存进出上报题目设置信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveReportInfoSettingTitleInfo" parameterType="Map"> |
| | | insert into report_info_setting_title( |
| | | title_type,title_id,title,community_id,seq,setting_id |
| | | ) values ( |
| | | #{titleType},#{titleId},#{title},#{communityId},#{seq},#{settingId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询进出上报题目设置信息 add by wuxw 2018-07-03 --> |
| | | <select id="getReportInfoSettingTitleInfo" parameterType="Map" resultType="Map"> |
| | | select t.title_type,t.title_type titleType,t.create_time,t.create_time createTime,t.title_id,t.title_id titleId,t.status_cd,t.status_cd statusCd,t.title,t.community_id,t.community_id communityId,t.seq,t.setting_id,t.setting_id settingId |
| | | from report_info_setting_title t |
| | | where 1 =1 |
| | | <if test="titleType !=null and titleType != ''"> |
| | | and t.title_type= #{titleType} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="titleId !=null and titleId != ''"> |
| | | and t.title_id= #{titleId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="title !=null and title != ''"> |
| | | and t.title= #{title} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="seq !=null and seq != ''"> |
| | | and t.seq= #{seq} |
| | | </if> |
| | | <if test="settingId !=null and settingId != ''"> |
| | | and t.setting_id= #{settingId} |
| | | </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="updateReportInfoSettingTitleInfo" parameterType="Map"> |
| | | update report_info_setting_title t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="titleType !=null and titleType != ''"> |
| | | , t.title_type= #{titleType} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | , t.create_time= #{createTime} |
| | | </if> |
| | | <if test="title !=null and title != ''"> |
| | | , t.title= #{title} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | <if test="seq !=null and seq != ''"> |
| | | , t.seq= #{seq} |
| | | </if> |
| | | <if test="settingId !=null and settingId != ''"> |
| | | , t.setting_id= #{settingId} |
| | | </if> |
| | | where 1=1 <if test="titleId !=null and titleId != ''"> |
| | | and t.title_id= #{titleId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询进出上报题目设置数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryReportInfoSettingTitlesCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from report_info_setting_title t |
| | | where 1 =1 |
| | | <if test="titleType !=null and titleType != ''"> |
| | | and t.title_type= #{titleType} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="titleId !=null and titleId != ''"> |
| | | and t.title_id= #{titleId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="title !=null and title != ''"> |
| | | and t.title= #{title} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="seq !=null and seq != ''"> |
| | | and t.seq= #{seq} |
| | | </if> |
| | | <if test="settingId !=null and settingId != ''"> |
| | | and t.setting_id= #{settingId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | { |
| | | "autoMove": true, |
| | | <<<<<<< HEAD |
| | | "id": "anValueId", |
| | | "name": "reportInfoAnswerValue", |
| | | "desc": "批量操作日志详情", |
| | | "id": "titleId", |
| | | "name": "reportInfoSettingTitle", |
| | | "desc": "进出上报题目设置", |
| | | "shareParam": "communityId", |
| | | "shareColumn": "community_id", |
| | | "shareName": "report", |
| | | "tableName": "report_info_answer_value", |
| | | "tableName": "report_info_setting_title", |
| | | "param": { |
| | | "anValueId": "an_value_id", |
| | | "userAnId": "user_an_id", |
| | | "settingId": "setting_id", |
| | | "titleId": "title_id", |
| | | "valueId": "value_id", |
| | | "valueContent": "value_content", |
| | | "settingId": "setting_id", |
| | | "title": "title", |
| | | "titleType": "title_type", |
| | | "seq": "seq", |
| | | "communityId": "community_id", |
| | | "createTime": "create_time", |
| | | ======= |
| | | "id": "backId", |
| | | "name": "reportInfoBackCity", |
| | | "desc": "返省上报", |
| | | "shareParam": "communityId", |
| | | "shareColumn": "community_id", |
| | | "shareName": "report", |
| | | "tableName": "report_info_back_city", |
| | | "param": { |
| | | "backId": "back_id", |
| | | "name": "name", |
| | | "communityId": "community_id", |
| | | "idCard": "id_card", |
| | | "tel": "tel", |
| | | "source": "source", |
| | | "sourceCity": "source_city", |
| | | "sourceCityName": "source_city_name", |
| | | "backTime": "back_time", |
| | | "userId": "user_id", |
| | | "remark": "remark", |
| | | >>>>>>> 7e621d56f2efc96f42a47ba3e5a62af69c6dd043 |
| | | "statusCd": "status_cd" |
| | | }, |
| | | "required": [ |
| | | { |
| | | "code": "anValueId", |
| | | "msg": "小区不能为空" |
| | | }, |
| | | { |
| | | "code": "userAnId", |
| | | "msg": "小区不能为空" |
| | | "code": "titleId", |
| | | "msg": "合同ID不能为空" |
| | | }, |
| | | { |
| | | "code": "settingId", |
| | | "msg": "小区不能为空" |
| | | "msg": "商户ID不能为空" |
| | | }, |
| | | { |
| | | "code": "titleId", |
| | | "msg": "小区不能为空" |
| | | "code": "title", |
| | | "msg": "用户规格不能为空" |
| | | }, |
| | | { |
| | | "code": "valueId", |
| | | "msg": "小区不能为空" |
| | | "code": "titleType", |
| | | "msg": "用户规格不能为空" |
| | | }, |
| | | { |
| | | "code": "valueContent", |
| | | "msg": "小区不能为空" |
| | | "code": "seq", |
| | | "msg": "用户规格不能为空" |
| | | }, |
| | | { |
| | | "code": "communityId", |
| | | "msg": "小区不能为空" |
| | | "msg": "用户规格不能为空" |
| | | } |
| | | |
| | | ] |
| | | } |
| | | } |
| | | |
| New file |
| | |
| | | package com.java110.intf.report; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.reportInfoSetting.ReportInfoSettingDto; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | 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; |
| | | |
| | | /** |
| | | * @ClassName IReportInfoSettingInnerServiceSMO |
| | | * @Description 进出上报接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "community-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/reportInfoSettingApi") |
| | | public interface IReportInfoSettingInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveReportInfoSetting", method = RequestMethod.POST) |
| | | public int saveReportInfoSetting(@RequestBody ReportInfoSettingPo reportInfoSettingPo); |
| | | |
| | | @RequestMapping(value = "/updateReportInfoSetting", method = RequestMethod.POST) |
| | | public int updateReportInfoSetting(@RequestBody ReportInfoSettingPo reportInfoSettingPo); |
| | | |
| | | @RequestMapping(value = "/deleteReportInfoSetting", method = RequestMethod.POST) |
| | | public int deleteReportInfoSetting(@RequestBody ReportInfoSettingPo reportInfoSettingPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param reportInfoSettingDto 数据对象分享 |
| | | * @return ReportInfoSettingDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryReportInfoSettings", method = RequestMethod.POST) |
| | | List<ReportInfoSettingDto> queryReportInfoSettings(@RequestBody ReportInfoSettingDto reportInfoSettingDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param reportInfoSettingDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryReportInfoSettingsCount", method = RequestMethod.POST) |
| | | int queryReportInfoSettingsCount(@RequestBody ReportInfoSettingDto reportInfoSettingDto); |
| | | } |
| New file |
| | |
| | | package com.java110.intf.report; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.reportInfoSettingTitle.ReportInfoSettingTitleDto; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | 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; |
| | | |
| | | /** |
| | | * @ClassName IReportInfoSettingTitleInnerServiceSMO |
| | | * @Description 进出上报题目设置接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "community-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/reportInfoSettingTitleApi") |
| | | public interface IReportInfoSettingTitleInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveReportInfoSettingTitle", method = RequestMethod.POST) |
| | | public int saveReportInfoSettingTitle(@RequestBody ReportInfoSettingTitlePo reportInfoSettingTitlePo); |
| | | |
| | | @RequestMapping(value = "/updateReportInfoSettingTitle", method = RequestMethod.POST) |
| | | public int updateReportInfoSettingTitle(@RequestBody ReportInfoSettingTitlePo reportInfoSettingTitlePo); |
| | | |
| | | @RequestMapping(value = "/deleteReportInfoSettingTitle", method = RequestMethod.POST) |
| | | public int deleteReportInfoSettingTitle(@RequestBody ReportInfoSettingTitlePo reportInfoSettingTitlePo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param reportInfoSettingTitleDto 数据对象分享 |
| | | * @return ReportInfoSettingTitleDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryReportInfoSettingTitles", method = RequestMethod.POST) |
| | | List<ReportInfoSettingTitleDto> queryReportInfoSettingTitles(@RequestBody ReportInfoSettingTitleDto reportInfoSettingTitleDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param reportInfoSettingTitleDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryReportInfoSettingTitlesCount", method = RequestMethod.POST) |
| | | int queryReportInfoSettingTitlesCount(@RequestBody ReportInfoSettingTitleDto reportInfoSettingTitleDto); |
| | | } |
| | |
| | | communitys = initializeBuildingUnitSMOImpl.deleteBuildingUnit(floorIds); |
| | | } |
| | | |
| | | if(communitys > 0){ |
| | | massage.append("单元初始化成功【"+communitys+"】"); |
| | | }else { |
| | | massage.append("单元初始化失败"); |
| | | } |
| | | massage.append("单元初始化完成,清理数据【"+communitys+"】条!"); |
| | | |
| | | Map communityIds = new HashMap<String,String>(); |
| | | communityIds.put("communityId",communityId); |
| | | //楼栋 |
| | | int deleteFlag = initializeBuildingUnitSMOImpl.deletefFloor(communityIds); |
| | | if(deleteFlag > 0){ |
| | | massage.append("楼栋初始化成功【"+deleteFlag+"】"); |
| | | }else { |
| | | massage.append("楼栋初始化失败"); |
| | | } |
| | | massage.append("楼栋初始化完成,清理数据【"+deleteFlag+"】条!"); |
| | | //房屋 |
| | | int deleteFlagRoot = initializeBuildingUnitSMOImpl.deleteBuildingRoom(communityIds); |
| | | if(deleteFlagRoot > 0){ |
| | | massage.append("房屋初始化成功【"+deleteFlagRoot+"】"); |
| | | }else { |
| | | massage.append("房屋初始化失败"); |
| | | } |
| | | massage.append("房屋初始化完成,清理数据【"+deleteFlagRoot+"】条!"); |
| | | //业主 |
| | | int deleteFlagOwner = initializeOwnerInnerServiceSMOImpl.deleteBuildingOwner(communityIds); |
| | | if(deleteFlagOwner > 0){ |
| | | massage.append("业主初始化成功【"+deleteFlagOwner+"】"); |
| | | }else { |
| | | massage.append("业主初始化失败"); |
| | | } |
| | | massage.append("业主初始化完成,清理数据【"+deleteFlagOwner+"】条!"); |
| | | //费用 |
| | | int deleteFlagFee = initializePayFeeInnerServiceSMOImpl.deletePayFee(communityIds); |
| | | if(deleteFlagFee > 0){ |
| | | massage.append("费用初始化成功【"+deleteFlagFee+"】"); |
| | | }else { |
| | | massage.append("费用初始化失败"); |
| | | } |
| | | massage.append("费用初始化完成,清理数据【"+deleteFlagFee+"】条!"); |
| | | |
| | | //停车场 |
| | | int deleteFlagArea = initializeBuildingUnitSMOImpl.deleteParkingArea(communityIds); |
| | | if(deleteFlagArea > 0){ |
| | | massage.append("停车场初始化成功【"+deleteFlagArea+"】"); |
| | | }else { |
| | | massage.append("停车场初始化失败"); |
| | | } |
| | | massage.append("停车场初始化完成,清理数据【"+deleteFlagArea+"】条!"); |
| | | |
| | | //停车位 |
| | | int deleteFlagSpace = initializeBuildingUnitSMOImpl.deleteParkingSpace(communityIds); |
| | | if(deleteFlagSpace > 0){ |
| | | massage.append("停车位初始化成功【"+deleteFlagSpace+"】"); |
| | | }else { |
| | | massage.append("停车位初始化失败"); |
| | | } |
| | | massage.append("停车位初始化完成,清理数据【"+deleteFlagSpace+"】条!"); |
| | | |
| | | return ResultVo.createResponseEntity(massage); |
| | | } |
| New file |
| | |
| | | package com.java110.report.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.reportInfoSetting.ReportInfoSettingDto; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import com.java110.report.bmo.reportInfoSetting.IDeleteReportInfoSettingBMO; |
| | | import com.java110.report.bmo.reportInfoSetting.IGetReportInfoSettingBMO; |
| | | import com.java110.report.bmo.reportInfoSetting.ISaveReportInfoSettingBMO; |
| | | import com.java110.report.bmo.reportInfoSetting.IUpdateReportInfoSettingBMO; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/reportInfoSetting") |
| | | public class ReportInfoSettingApi { |
| | | |
| | | @Autowired |
| | | private ISaveReportInfoSettingBMO saveReportInfoSettingBMOImpl; |
| | | @Autowired |
| | | private IUpdateReportInfoSettingBMO updateReportInfoSettingBMOImpl; |
| | | @Autowired |
| | | private IDeleteReportInfoSettingBMO deleteReportInfoSettingBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetReportInfoSettingBMO getReportInfoSettingBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * @serviceCode /reportInfoSetting/saveReportInfoSetting |
| | | * @path /app/reportInfoSetting/saveReportInfoSetting |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/saveReportInfoSetting", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveReportInfoSetting(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "settingId", "请求报文中未包含settingId"); |
| | | Assert.hasKeyAndValue(reqJson, "reportType", "请求报文中未包含reportType"); |
| | | Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "remark", "请求报文中未包含remark"); |
| | | |
| | | |
| | | ReportInfoSettingPo reportInfoSettingPo = BeanConvertUtil.covertBean(reqJson, ReportInfoSettingPo.class); |
| | | return saveReportInfoSettingBMOImpl.save(reportInfoSettingPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * @serviceCode /reportInfoSetting/updateReportInfoSetting |
| | | * @path /app/reportInfoSetting/updateReportInfoSetting |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/updateReportInfoSetting", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateReportInfoSetting(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "settingId", "请求报文中未包含settingId"); |
| | | Assert.hasKeyAndValue(reqJson, "reportType", "请求报文中未包含reportType"); |
| | | Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "remark", "请求报文中未包含remark"); |
| | | Assert.hasKeyAndValue(reqJson, "settingId", "settingId不能为空"); |
| | | |
| | | |
| | | ReportInfoSettingPo reportInfoSettingPo = BeanConvertUtil.covertBean(reqJson, ReportInfoSettingPo.class); |
| | | return updateReportInfoSettingBMOImpl.update(reportInfoSettingPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /reportInfoSetting/deleteReportInfoSetting |
| | | * @path /app/reportInfoSetting/deleteReportInfoSetting |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/deleteReportInfoSetting", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteReportInfoSetting(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "settingId", "settingId不能为空"); |
| | | |
| | | |
| | | ReportInfoSettingPo reportInfoSettingPo = BeanConvertUtil.covertBean(reqJson, ReportInfoSettingPo.class); |
| | | return deleteReportInfoSettingBMOImpl.delete(reportInfoSettingPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /reportInfoSetting/queryReportInfoSetting |
| | | * @path /app/reportInfoSetting/queryReportInfoSetting |
| | | * @param communityId 小区ID |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/queryReportInfoSetting", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryReportInfoSetting(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | ReportInfoSettingDto reportInfoSettingDto = new ReportInfoSettingDto(); |
| | | reportInfoSettingDto.setPage(page); |
| | | reportInfoSettingDto.setRow(row); |
| | | reportInfoSettingDto.setCommunityId(communityId); |
| | | return getReportInfoSettingBMOImpl.get(reportInfoSettingDto); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.report.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.reportInfoSettingTitle.ReportInfoSettingTitleDto; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.IDeleteReportInfoSettingTitleBMO; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.IGetReportInfoSettingTitleBMO; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.ISaveReportInfoSettingTitleBMO; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.IUpdateReportInfoSettingTitleBMO; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/reportInfoSettingTitle") |
| | | public class ReportInfoSettingTitleApi { |
| | | |
| | | @Autowired |
| | | private ISaveReportInfoSettingTitleBMO saveReportInfoSettingTitleBMOImpl; |
| | | @Autowired |
| | | private IUpdateReportInfoSettingTitleBMO updateReportInfoSettingTitleBMOImpl; |
| | | @Autowired |
| | | private IDeleteReportInfoSettingTitleBMO deleteReportInfoSettingTitleBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetReportInfoSettingTitleBMO getReportInfoSettingTitleBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * @serviceCode /reportInfoSettingTitle/saveReportInfoSettingTitle |
| | | * @path /app/reportInfoSettingTitle/saveReportInfoSettingTitle |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/saveReportInfoSettingTitle", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveReportInfoSettingTitle(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "titleId", "请求报文中未包含titleId"); |
| | | Assert.hasKeyAndValue(reqJson, "settingId", "请求报文中未包含settingId"); |
| | | Assert.hasKeyAndValue(reqJson, "title", "请求报文中未包含title"); |
| | | Assert.hasKeyAndValue(reqJson, "titleType", "请求报文中未包含titleType"); |
| | | Assert.hasKeyAndValue(reqJson, "seq", "请求报文中未包含seq"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | |
| | | |
| | | ReportInfoSettingTitlePo reportInfoSettingTitlePo = BeanConvertUtil.covertBean(reqJson, ReportInfoSettingTitlePo.class); |
| | | return saveReportInfoSettingTitleBMOImpl.save(reportInfoSettingTitlePo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * @serviceCode /reportInfoSettingTitle/updateSettingTitle |
| | | * @path /app/reportInfoSettingTitle/updateReportInfoSettingTitle |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/updateSettingTitle", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateReportInfoSettingTitle(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "titleId", "请求报文中未包含titleId"); |
| | | Assert.hasKeyAndValue(reqJson, "settingId", "请求报文中未包含settingId"); |
| | | Assert.hasKeyAndValue(reqJson, "title", "请求报文中未包含title"); |
| | | Assert.hasKeyAndValue(reqJson, "titleType", "请求报文中未包含titleType"); |
| | | Assert.hasKeyAndValue(reqJson, "seq", "请求报文中未包含seq"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "titleId", "titleId不能为空"); |
| | | |
| | | |
| | | ReportInfoSettingTitlePo reportInfoSettingTitlePo = BeanConvertUtil.covertBean(reqJson, ReportInfoSettingTitlePo.class); |
| | | return updateReportInfoSettingTitleBMOImpl.update(reportInfoSettingTitlePo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /reportInfoSettingTitle/deleteSettingTitle |
| | | * @path /app/reportInfoSettingTitle/deleteReportInfoSettingTitle |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/deleteSettingTitle", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteReportInfoSettingTitle(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "titleId", "titleId不能为空"); |
| | | |
| | | |
| | | ReportInfoSettingTitlePo reportInfoSettingTitlePo = BeanConvertUtil.covertBean(reqJson, ReportInfoSettingTitlePo.class); |
| | | return deleteReportInfoSettingTitleBMOImpl.delete(reportInfoSettingTitlePo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /reportInfoSettingTitle/querySettingTitle |
| | | * @path /app/reportInfoSettingTitle/queryReportInfoSettingTitle |
| | | * @param communityId 小区ID |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/querySettingTitle", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryReportInfoSettingTitle(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | ReportInfoSettingTitleDto reportInfoSettingTitleDto = new ReportInfoSettingTitleDto(); |
| | | reportInfoSettingTitleDto.setPage(page); |
| | | reportInfoSettingTitleDto.setRow(row); |
| | | reportInfoSettingTitleDto.setCommunityId(communityId); |
| | | return getReportInfoSettingTitleBMOImpl.get(reportInfoSettingTitleDto); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * @serviceCode /reportInfoSettingTitleValue/saveReportInfoSettingTitleValue |
| | | * @serviceCode /reportInfoSettingTitleValue/saveSettingTitleValue |
| | | * @path /app/reportInfoSettingTitleValue/saveReportInfoSettingTitleValue |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/saveReportInfoSettingTitleValue", method = RequestMethod.POST) |
| | | @RequestMapping(value = "/saveSettingTitleValue", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveReportInfoSettingTitleValue(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "valueId", "请求报文中未包含valueId"); |
| | |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * @serviceCode /reportInfoSettingTitleValue/updateReportInfoSettingTitleValue |
| | | * @serviceCode /reportInfoSettingTitleValue/updateTitleValue |
| | | * @path /app/reportInfoSettingTitleValue/updateReportInfoSettingTitleValue |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/updateReportInfoSettingTitleValue", method = RequestMethod.POST) |
| | | @RequestMapping(value = "/updateTitleValue", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateReportInfoSettingTitleValue(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "valueId", "请求报文中未包含valueId"); |
| | |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /reportInfoSettingTitleValue/deleteReportInfoSettingTitleValue |
| | | * @serviceCode /reportInfoSettingTitleValue/deleteTitleValue |
| | | * @path /app/reportInfoSettingTitleValue/deleteReportInfoSettingTitleValue |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/deleteReportInfoSettingTitleValue", method = RequestMethod.POST) |
| | | @RequestMapping(value = "/deleteTitleValue", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteReportInfoSettingTitleValue(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | |
| | |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /reportInfoSettingTitleValue/queryReportInfoSettingTitleValue |
| | | * @serviceCode /reportInfoSettingTitleValue/queryTitleValue |
| | | * @path /app/reportInfoSettingTitleValue/queryReportInfoSettingTitleValue |
| | | * @param communityId 小区ID |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/queryReportInfoSettingTitleValue", method = RequestMethod.GET) |
| | | @RequestMapping(value = "/queryTitleValue", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryReportInfoSettingTitleValue(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteReportInfoSettingBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报 |
| | | * add by wuxw |
| | | * @param reportInfoSettingPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(ReportInfoSettingPo reportInfoSettingPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting; |
| | | import com.java110.dto.reportInfoSetting.ReportInfoSettingDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetReportInfoSettingBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报 |
| | | * add by wuxw |
| | | * @param reportInfoSettingDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(ReportInfoSettingDto reportInfoSettingDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting; |
| | | |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveReportInfoSettingBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加进出上报 |
| | | * add by wuxw |
| | | * @param reportInfoSettingPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(ReportInfoSettingPo reportInfoSettingPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateReportInfoSettingBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报 |
| | | * add by wuxw |
| | | * @param reportInfoSettingPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(ReportInfoSettingPo reportInfoSettingPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting.impl; |
| | | |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.report.IReportInfoSettingInnerServiceSMO; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import com.java110.report.bmo.reportInfoSetting.IDeleteReportInfoSettingBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | |
| | | @Service("deleteReportInfoSettingBMOImpl") |
| | | public class DeleteReportInfoSettingBMOImpl implements IDeleteReportInfoSettingBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingInnerServiceSMO reportInfoSettingInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param reportInfoSettingPo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(ReportInfoSettingPo reportInfoSettingPo) { |
| | | |
| | | int flag = reportInfoSettingInnerServiceSMOImpl.deleteReportInfoSetting(reportInfoSettingPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting.impl; |
| | | |
| | | import com.java110.intf.report.IReportInfoSettingInnerServiceSMO; |
| | | import com.java110.report.bmo.reportInfoSetting.IGetReportInfoSettingBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import com.java110.dto.reportInfoSetting.ReportInfoSettingDto; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getReportInfoSettingBMOImpl") |
| | | public class GetReportInfoSettingBMOImpl implements IGetReportInfoSettingBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingInnerServiceSMO reportInfoSettingInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param reportInfoSettingDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(ReportInfoSettingDto reportInfoSettingDto) { |
| | | |
| | | |
| | | int count = reportInfoSettingInnerServiceSMOImpl.queryReportInfoSettingsCount(reportInfoSettingDto); |
| | | |
| | | List<ReportInfoSettingDto> reportInfoSettingDtos = null; |
| | | if (count > 0) { |
| | | reportInfoSettingDtos = reportInfoSettingInnerServiceSMOImpl.queryReportInfoSettings(reportInfoSettingDto); |
| | | } else { |
| | | reportInfoSettingDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reportInfoSettingDto.getRow()), count, reportInfoSettingDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.report.IReportInfoSettingInnerServiceSMO; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import com.java110.report.bmo.reportInfoSetting.ISaveReportInfoSettingBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveReportInfoSettingBMOImpl") |
| | | public class SaveReportInfoSettingBMOImpl implements ISaveReportInfoSettingBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingInnerServiceSMO reportInfoSettingInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param reportInfoSettingPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(ReportInfoSettingPo reportInfoSettingPo) { |
| | | |
| | | reportInfoSettingPo.setSettingId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_settingId)); |
| | | int flag = reportInfoSettingInnerServiceSMOImpl.saveReportInfoSetting(reportInfoSettingPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSetting.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.report.IReportInfoSettingInnerServiceSMO; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import com.java110.report.bmo.reportInfoSetting.IUpdateReportInfoSettingBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("updateReportInfoSettingBMOImpl") |
| | | public class UpdateReportInfoSettingBMOImpl implements IUpdateReportInfoSettingBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingInnerServiceSMO reportInfoSettingInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param reportInfoSettingPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(ReportInfoSettingPo reportInfoSettingPo) { |
| | | |
| | | int flag = reportInfoSettingInnerServiceSMOImpl.updateReportInfoSetting(reportInfoSettingPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteReportInfoSettingTitleBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报题目设置 |
| | | * add by wuxw |
| | | * @param reportInfoSettingTitlePo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(ReportInfoSettingTitlePo reportInfoSettingTitlePo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle; |
| | | import com.java110.dto.reportInfoSettingTitle.ReportInfoSettingTitleDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetReportInfoSettingTitleBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报题目设置 |
| | | * add by wuxw |
| | | * @param reportInfoSettingTitleDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(ReportInfoSettingTitleDto reportInfoSettingTitleDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle; |
| | | |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveReportInfoSettingTitleBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加进出上报题目设置 |
| | | * add by wuxw |
| | | * @param reportInfoSettingTitlePo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(ReportInfoSettingTitlePo reportInfoSettingTitlePo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateReportInfoSettingTitleBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报题目设置 |
| | | * add by wuxw |
| | | * @param reportInfoSettingTitlePo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(ReportInfoSettingTitlePo reportInfoSettingTitlePo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.report.IReportInfoSettingTitleInnerServiceSMO; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.IDeleteReportInfoSettingTitleBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("deleteReportInfoSettingTitleBMOImpl") |
| | | public class DeleteReportInfoSettingTitleBMOImpl implements IDeleteReportInfoSettingTitleBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingTitleInnerServiceSMO reportInfoSettingTitleInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param reportInfoSettingTitlePo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(ReportInfoSettingTitlePo reportInfoSettingTitlePo) { |
| | | |
| | | int flag = reportInfoSettingTitleInnerServiceSMOImpl.deleteReportInfoSettingTitle(reportInfoSettingTitlePo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle.impl; |
| | | |
| | | import com.java110.intf.report.IReportInfoSettingTitleInnerServiceSMO; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.IGetReportInfoSettingTitleBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import com.java110.dto.reportInfoSettingTitle.ReportInfoSettingTitleDto; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getReportInfoSettingTitleBMOImpl") |
| | | public class GetReportInfoSettingTitleBMOImpl implements IGetReportInfoSettingTitleBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingTitleInnerServiceSMO reportInfoSettingTitleInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param reportInfoSettingTitleDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(ReportInfoSettingTitleDto reportInfoSettingTitleDto) { |
| | | |
| | | |
| | | int count = reportInfoSettingTitleInnerServiceSMOImpl.queryReportInfoSettingTitlesCount(reportInfoSettingTitleDto); |
| | | |
| | | List<ReportInfoSettingTitleDto> reportInfoSettingTitleDtos = null; |
| | | if (count > 0) { |
| | | reportInfoSettingTitleDtos = reportInfoSettingTitleInnerServiceSMOImpl.queryReportInfoSettingTitles(reportInfoSettingTitleDto); |
| | | } else { |
| | | reportInfoSettingTitleDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reportInfoSettingTitleDto.getRow()), count, reportInfoSettingTitleDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.report.IReportInfoSettingTitleInnerServiceSMO; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.ISaveReportInfoSettingTitleBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveReportInfoSettingTitleBMOImpl") |
| | | public class SaveReportInfoSettingTitleBMOImpl implements ISaveReportInfoSettingTitleBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingTitleInnerServiceSMO reportInfoSettingTitleInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param reportInfoSettingTitlePo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(ReportInfoSettingTitlePo reportInfoSettingTitlePo) { |
| | | |
| | | reportInfoSettingTitlePo.setTitleId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_titleId)); |
| | | int flag = reportInfoSettingTitleInnerServiceSMOImpl.saveReportInfoSettingTitle(reportInfoSettingTitlePo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.bmo.reportInfoSettingTitle.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.report.IReportInfoSettingTitleInnerServiceSMO; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import com.java110.report.bmo.reportInfoSettingTitle.IUpdateReportInfoSettingTitleBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("updateReportInfoSettingTitleBMOImpl") |
| | | public class UpdateReportInfoSettingTitleBMOImpl implements IUpdateReportInfoSettingTitleBMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingTitleInnerServiceSMO reportInfoSettingTitleInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param reportInfoSettingTitlePo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(ReportInfoSettingTitlePo reportInfoSettingTitlePo) { |
| | | |
| | | int flag = reportInfoSettingTitleInnerServiceSMOImpl.updateReportInfoSettingTitle(reportInfoSettingTitlePo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.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; |
| | | |
| | | /** |
| | | * 进出上报组件内部之间使用,没有给外围系统提供服务能力 |
| | | * 进出上报服务接口类,要求全部以字符串传输,方便微服务化 |
| | | * 新建客户,修改客户,删除客户,查询客户等功能 |
| | | * |
| | | * Created by wuxw on 2016/12/27. |
| | | */ |
| | | public interface IReportInfoSettingServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 进出上报信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveReportInfoSettingInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报信息(instance过程) |
| | | * 根据bId 查询进出上报信息 |
| | | * @param info bId 信息 |
| | | * @return 进出上报信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getReportInfoSettingInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateReportInfoSettingInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报总数 |
| | | * |
| | | * @param info 进出上报信息 |
| | | * @return 进出上报数量 |
| | | */ |
| | | int queryReportInfoSettingsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.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; |
| | | |
| | | /** |
| | | * 进出上报题目设置组件内部之间使用,没有给外围系统提供服务能力 |
| | | * 进出上报题目设置服务接口类,要求全部以字符串传输,方便微服务化 |
| | | * 新建客户,修改客户,删除客户,查询客户等功能 |
| | | * |
| | | * Created by wuxw on 2016/12/27. |
| | | */ |
| | | public interface IReportInfoSettingTitleServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 进出上报题目设置信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveReportInfoSettingTitleInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报题目设置信息(instance过程) |
| | | * 根据bId 查询进出上报题目设置信息 |
| | | * @param info bId 信息 |
| | | * @return 进出上报题目设置信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getReportInfoSettingTitleInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报题目设置信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateReportInfoSettingTitleInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报题目设置总数 |
| | | * |
| | | * @param info 进出上报题目设置信息 |
| | | * @return 进出上报题目设置数量 |
| | | */ |
| | | int queryReportInfoSettingTitlesCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.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.report.dao.IReportInfoSettingServiceDao; |
| | | 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; |
| | | |
| | | /** |
| | | * 进出上报服务 与数据库交互 |
| | | * Created by wuxw on 2017/4/5. |
| | | */ |
| | | @Service("reportInfoSettingServiceDaoImpl") |
| | | //@Transactional |
| | | public class ReportInfoSettingServiceDaoImpl extends BaseServiceDao implements IReportInfoSettingServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ReportInfoSettingServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存进出上报信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveReportInfoSettingInfo(Map info) throws DAOException { |
| | | logger.debug("保存进出上报信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("reportInfoSettingServiceDaoImpl.saveReportInfoSettingInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存进出上报信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getReportInfoSettingInfo(Map info) throws DAOException { |
| | | logger.debug("查询进出上报信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessReportInfoSettingInfos = sqlSessionTemplate.selectList("reportInfoSettingServiceDaoImpl.getReportInfoSettingInfo",info); |
| | | |
| | | return businessReportInfoSettingInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateReportInfoSettingInfo(Map info) throws DAOException { |
| | | logger.debug("修改进出上报信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("reportInfoSettingServiceDaoImpl.updateReportInfoSettingInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改进出上报信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询进出上报数量 |
| | | * @param info 进出上报信息 |
| | | * @return 进出上报数量 |
| | | */ |
| | | @Override |
| | | public int queryReportInfoSettingsCount(Map info) { |
| | | logger.debug("查询进出上报数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessReportInfoSettingInfos = sqlSessionTemplate.selectList("reportInfoSettingServiceDaoImpl.queryReportInfoSettingsCount", info); |
| | | if (businessReportInfoSettingInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessReportInfoSettingInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.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.report.dao.IReportInfoSettingTitleServiceDao; |
| | | 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; |
| | | |
| | | /** |
| | | * 进出上报题目设置服务 与数据库交互 |
| | | * Created by wuxw on 2017/4/5. |
| | | */ |
| | | @Service("reportInfoSettingTitleServiceDaoImpl") |
| | | //@Transactional |
| | | public class ReportInfoSettingTitleServiceDaoImpl extends BaseServiceDao implements IReportInfoSettingTitleServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ReportInfoSettingTitleServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存进出上报题目设置信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveReportInfoSettingTitleInfo(Map info) throws DAOException { |
| | | logger.debug("保存进出上报题目设置信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("reportInfoSettingTitleServiceDaoImpl.saveReportInfoSettingTitleInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存进出上报题目设置信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询进出上报题目设置信息(instance) |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getReportInfoSettingTitleInfo(Map info) throws DAOException { |
| | | logger.debug("查询进出上报题目设置信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessReportInfoSettingTitleInfos = sqlSessionTemplate.selectList("reportInfoSettingTitleServiceDaoImpl.getReportInfoSettingTitleInfo",info); |
| | | |
| | | return businessReportInfoSettingTitleInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改进出上报题目设置信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateReportInfoSettingTitleInfo(Map info) throws DAOException { |
| | | logger.debug("修改进出上报题目设置信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("reportInfoSettingTitleServiceDaoImpl.updateReportInfoSettingTitleInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改进出上报题目设置信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询进出上报题目设置数量 |
| | | * @param info 进出上报题目设置信息 |
| | | * @return 进出上报题目设置数量 |
| | | */ |
| | | @Override |
| | | public int queryReportInfoSettingTitlesCount(Map info) { |
| | | logger.debug("查询进出上报题目设置数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessReportInfoSettingTitleInfos = sqlSessionTemplate.selectList("reportInfoSettingTitleServiceDaoImpl.queryReportInfoSettingTitlesCount", info); |
| | | if (businessReportInfoSettingTitleInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessReportInfoSettingTitleInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.report.smo.impl; |
| | | |
| | | |
| | | import com.java110.intf.report.IReportInfoSettingInnerServiceSMO; |
| | | import com.java110.po.reportInfoSetting.ReportInfoSettingPo; |
| | | import com.java110.report.dao.IReportInfoSettingServiceDao; |
| | | import com.java110.dto.reportInfoSetting.ReportInfoSettingDto; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | 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.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 进出上报内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class ReportInfoSettingInnerServiceSMOImpl extends BaseServiceSMO implements IReportInfoSettingInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingServiceDao reportInfoSettingServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveReportInfoSetting(@RequestBody ReportInfoSettingPo reportInfoSettingPo) { |
| | | int saveFlag = 1; |
| | | reportInfoSettingServiceDaoImpl.saveReportInfoSettingInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateReportInfoSetting(@RequestBody ReportInfoSettingPo reportInfoSettingPo) { |
| | | int saveFlag = 1; |
| | | reportInfoSettingServiceDaoImpl.updateReportInfoSettingInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteReportInfoSetting(@RequestBody ReportInfoSettingPo reportInfoSettingPo) { |
| | | int saveFlag = 1; |
| | | reportInfoSettingPo.setStatusCd("1"); |
| | | reportInfoSettingServiceDaoImpl.updateReportInfoSettingInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ReportInfoSettingDto> queryReportInfoSettings(@RequestBody ReportInfoSettingDto reportInfoSettingDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = reportInfoSettingDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | reportInfoSettingDto.setPage((page - 1) * reportInfoSettingDto.getRow()); |
| | | } |
| | | |
| | | List<ReportInfoSettingDto> reportInfoSettings = BeanConvertUtil.covertBeanList(reportInfoSettingServiceDaoImpl.getReportInfoSettingInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingDto)), ReportInfoSettingDto.class); |
| | | |
| | | return reportInfoSettings; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryReportInfoSettingsCount(@RequestBody ReportInfoSettingDto reportInfoSettingDto) { |
| | | return reportInfoSettingServiceDaoImpl.queryReportInfoSettingsCount(BeanConvertUtil.beanCovertMap(reportInfoSettingDto)); } |
| | | |
| | | public IReportInfoSettingServiceDao getReportInfoSettingServiceDaoImpl() { |
| | | return reportInfoSettingServiceDaoImpl; |
| | | } |
| | | |
| | | public void setReportInfoSettingServiceDaoImpl(IReportInfoSettingServiceDao reportInfoSettingServiceDaoImpl) { |
| | | this.reportInfoSettingServiceDaoImpl = reportInfoSettingServiceDaoImpl; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.report.smo.impl; |
| | | |
| | | |
| | | import com.java110.intf.report.IReportInfoSettingTitleInnerServiceSMO; |
| | | import com.java110.po.reportInfoSettingTitle.ReportInfoSettingTitlePo; |
| | | import com.java110.report.dao.IReportInfoSettingTitleServiceDao; |
| | | import com.java110.dto.reportInfoSettingTitle.ReportInfoSettingTitleDto; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | 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.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 进出上报题目设置内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class ReportInfoSettingTitleInnerServiceSMOImpl extends BaseServiceSMO implements IReportInfoSettingTitleInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IReportInfoSettingTitleServiceDao reportInfoSettingTitleServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveReportInfoSettingTitle(@RequestBody ReportInfoSettingTitlePo reportInfoSettingTitlePo) { |
| | | int saveFlag = 1; |
| | | reportInfoSettingTitleServiceDaoImpl.saveReportInfoSettingTitleInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingTitlePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateReportInfoSettingTitle(@RequestBody ReportInfoSettingTitlePo reportInfoSettingTitlePo) { |
| | | int saveFlag = 1; |
| | | reportInfoSettingTitleServiceDaoImpl.updateReportInfoSettingTitleInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingTitlePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteReportInfoSettingTitle(@RequestBody ReportInfoSettingTitlePo reportInfoSettingTitlePo) { |
| | | int saveFlag = 1; |
| | | reportInfoSettingTitlePo.setStatusCd("1"); |
| | | reportInfoSettingTitleServiceDaoImpl.updateReportInfoSettingTitleInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingTitlePo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ReportInfoSettingTitleDto> queryReportInfoSettingTitles(@RequestBody ReportInfoSettingTitleDto reportInfoSettingTitleDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = reportInfoSettingTitleDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | reportInfoSettingTitleDto.setPage((page - 1) * reportInfoSettingTitleDto.getRow()); |
| | | } |
| | | |
| | | List<ReportInfoSettingTitleDto> reportInfoSettingTitles = BeanConvertUtil.covertBeanList(reportInfoSettingTitleServiceDaoImpl.getReportInfoSettingTitleInfo(BeanConvertUtil.beanCovertMap(reportInfoSettingTitleDto)), ReportInfoSettingTitleDto.class); |
| | | |
| | | return reportInfoSettingTitles; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryReportInfoSettingTitlesCount(@RequestBody ReportInfoSettingTitleDto reportInfoSettingTitleDto) { |
| | | return reportInfoSettingTitleServiceDaoImpl.queryReportInfoSettingTitlesCount(BeanConvertUtil.beanCovertMap(reportInfoSettingTitleDto)); } |
| | | |
| | | public IReportInfoSettingTitleServiceDao getReportInfoSettingTitleServiceDaoImpl() { |
| | | return reportInfoSettingTitleServiceDaoImpl; |
| | | } |
| | | |
| | | public void setReportInfoSettingTitleServiceDaoImpl(IReportInfoSettingTitleServiceDao reportInfoSettingTitleServiceDaoImpl) { |
| | | this.reportInfoSettingTitleServiceDaoImpl = reportInfoSettingTitleServiceDaoImpl; |
| | | } |
| | | } |