From 59e68e4eb7f5a43f495609ae681aabd585a496ee Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Wed, 21 Apr 2021 14:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E4=BF=A1=E6=81=AF=E9=A1=B5=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/public/act/address.html | 152 ++++++++++++++++++ .../main/resources/public/act/css/address.css | 124 ++++++++++++++ .../activity/domain/DrawUserInfo.java | 151 +++++++++++++++++ .../activity/mapper/DrawUserInfoMapper.java | 62 +++++++ .../service/IDrawUserInfoService.java | 62 +++++++ .../service/impl/DrawUserInfoServiceImpl.java | 98 +++++++++++ .../mapper/activity/DrawUserInfoMapper.xml | 102 ++++++++++++ 7 files changed, 751 insertions(+) create mode 100644 sino-act-web/src/main/resources/public/act/address.html create mode 100644 sino-act-web/src/main/resources/public/act/css/address.css create mode 100644 sino-activity/src/main/java/com/sinosoft/activity/domain/DrawUserInfo.java create mode 100644 sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawUserInfoMapper.java create mode 100644 sino-activity/src/main/java/com/sinosoft/activity/service/IDrawUserInfoService.java create mode 100644 sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawUserInfoServiceImpl.java create mode 100644 sino-activity/src/main/resources/mapper/activity/DrawUserInfoMapper.xml diff --git a/sino-act-web/src/main/resources/public/act/address.html b/sino-act-web/src/main/resources/public/act/address.html new file mode 100644 index 000000000..773ffc54f --- /dev/null +++ b/sino-act-web/src/main/resources/public/act/address.html @@ -0,0 +1,152 @@ + + + + + + + + 活动 + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/sino-act-web/src/main/resources/public/act/css/address.css b/sino-act-web/src/main/resources/public/act/css/address.css new file mode 100644 index 000000000..85ffc7868 --- /dev/null +++ b/sino-act-web/src/main/resources/public/act/css/address.css @@ -0,0 +1,124 @@ +.address{ + /* opacity:0; + height:0; */ +} +.popupMin{ + width:100%; + margin-left:0%; + height:auto !important; + box-sizing: border-box; + position:relative; + display:flex; + flex-direction: column; + /* max-height:1200px; */ + margin-bottom:56px; +} +.address .cont{ + min-height:400px; + margin-top:-0px; + +} +.address .popCont{ + z-index: 1000; +} +.address .cont{ + background-size: 100% auto; + display:flex; + flex-direction: column; + align-items: center; +} + +.address .cont>div:nth-child(1){ + font-size:23px; + color:#ffe2ab; + text-align:center; + margin-top:20px; +} +.address .cont>div:nth-child(2){ + font-size:17px; + color:#ffe2ab; + text-align:center; + margin-top:9px; + font-weight:bold; + +} +.address .cont>div:nth-child(3){ + font-size:17px; + color:#ffe2ab; + text-align:center; + margin-top:20px; + font-weight:bold; +} +.address .cont>div:nth-child(12){ + font-size:17px; + color:#ffe2ab; + margin-top:15px; + margin-right:35%; + +} +.address .cont>div:nth-child(13){ + font-size:17px; + color:#ffe2ab; + text-align:center; + margin-top:20px; + font-weight:bold; +} +.address .cont>img:last-child{ + width:83%; + height:auto; + object-fit:contain; + margin-top:20px; + margin-bottom:15px; +} +.address .cont>input{ + width:90%; + height:30px; + box-sizing: border-box; + margin:0; + padding:0 15px; + border:1px solid #f2ca77; + border-radius:15px; + background: #fff; + margin-top:12px; +} +.address .cont>textarea{ + width:90% !important; + max-width:90% !important; + min-height:60px; + box-sizing: border-box; + margin:0; + padding:8px 15px; + border:1px solid #f2ca77; + border-radius:15px; + background: #fff; + margin-top:10px; + outline: none; + line-height:20px; +} +.button { /* 按钮美化 */ + width: 40px; /* 宽度 */ + height: 30px; /* 高度 */ + border-width: 0px; /* 边框宽度 */ + border-radius: 3px; /* 边框半径 */ + background: #f43c24; /* 背景颜色 */ + cursor: pointer; /* 鼠标移入按钮范围时出现手势 */ + outline: none; /* 不显示轮廓线 */ + font-family: Microsoft YaHei; /* 设置字体 */ + color: white; /* 字体颜色 */ + font-size: 17px; /* 字体大小 */ + } +.button:hover { /* 鼠标移入按钮范围时改变颜色 */ + background: #5599FF; +} +.button1 { /* 按钮美化 */ + width: 80px; /* 宽度 */ + height: 30px; /* 高度 */ + border-width: 0px; /* 边框宽度 */ + border-radius: 3px; /* 边框半径 */ + background: #fff150; /* 背景颜色 */ + cursor: pointer; /* 鼠标移入按钮范围时出现手势 */ + outline: none; /* 不显示轮廓线 */ + font-family: Microsoft YaHei; /* 设置字体 */ + color: white; /* 字体颜色 */ + font-size: 17px; /* 字体大小 */ +} \ No newline at end of file diff --git a/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawUserInfo.java b/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawUserInfo.java new file mode 100644 index 000000000..172b37c1b --- /dev/null +++ b/sino-activity/src/main/java/com/sinosoft/activity/domain/DrawUserInfo.java @@ -0,0 +1,151 @@ +package com.sinosoft.activity.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 用户信息收集页面对象 draw_user_info + * + * @author xlh + * @date 2021-04-20 + * + */ +public class DrawUserInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long awarDrecordId; + + /** 姓名 */ + @Excel(name = "姓名") + private String userName; + + /** 手机号 */ + @Excel(name = "手机号") + private String mobile; + + /** 性别 */ + @Excel(name = "性别") + private String gender; + + /** 地址 */ + @Excel(name = "地址") + private String address; + + /** 代理人姓名 */ + @Excel(name = "代理人姓名") + private String agentName; + + /** 代理人手机号 */ + @Excel(name = "代理人手机号") + private String agentMobile; + + /** 代理人性别 */ + @Excel(name = "代理人性别") + private String agentGender; + + /** 代理人工号 */ + @Excel(name = "代理人工号") + private String agentNo; + + public void setAwarDrecordId(Long awarDrecordId) + { + this.awarDrecordId = awarDrecordId; + } + + public Long getAwarDrecordId() + { + return awarDrecordId; + } + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserName() + { + return userName; + } + public void setMobile(String mobile) + { + this.mobile = mobile; + } + + public String getMobile() + { + return mobile; + } + public void setGender(String gender) + { + this.gender = gender; + } + + public String getGender() + { + return gender; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + public void setAgentName(String agentName) + { + this.agentName = agentName; + } + + public String getAgentName() + { + return agentName; + } + public void setAgentMobile(String agentMobile) + { + this.agentMobile = agentMobile; + } + + public String getAgentMobile() + { + return agentMobile; + } + public void setAgentGender(String agentGender) + { + this.agentGender = agentGender; + } + + public String getAgentGender() + { + return agentGender; + } + public void setAgentNo(String agentNo) + { + this.agentNo = agentNo; + } + + public String getAgentNo() + { + return agentNo; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("awarDrecordId", getAwarDrecordId()) + .append("userName", getUserName()) + .append("mobile", getMobile()) + .append("gender", getGender()) + .append("address", getAddress()) + .append("agentName", getAgentName()) + .append("agentMobile", getAgentMobile()) + .append("agentGender", getAgentGender()) + .append("agentNo", getAgentNo()) + .toString(); + } + +} diff --git a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawUserInfoMapper.java b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawUserInfoMapper.java new file mode 100644 index 000000000..5d8386581 --- /dev/null +++ b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawUserInfoMapper.java @@ -0,0 +1,62 @@ +package com.sinosoft.activity.mapper; + +import com.sinosoft.activity.domain.DrawUserInfo; + +import java.util.List; + +/** + * 用户信息收集页面Mapper接口 + * + * @author ruoyi + * @date 2021-04-20 + */ +public interface DrawUserInfoMapper +{ + /** + * 查询用户信息收集页面 + * + * @param awarDrecordId 用户信息收集页面ID + * @return 用户信息收集页面 + */ + public DrawUserInfo selectDrawUserInfoById(Long awarDrecordId); + + /** + * 查询用户信息收集页面列表 + * + * @param drawUserInfo 用户信息收集页面 + * @return 用户信息收集页面集合 + */ + public List selectDrawUserInfoList(DrawUserInfo drawUserInfo); + + /** + * 新增用户信息收集页面 + * + * @param drawUserInfo 用户信息收集页面 + * @return 结果 + */ + public int insertDrawUserInfo(DrawUserInfo drawUserInfo); + + /** + * 修改用户信息收集页面 + * + * @param drawUserInfo 用户信息收集页面 + * @return 结果 + */ + public int updateDrawUserInfo(DrawUserInfo drawUserInfo); + + /** + * 删除用户信息收集页面 + * + * @param awarDrecordId 用户信息收集页面ID + * @return 结果 + */ + public int deleteDrawUserInfoById(Long awarDrecordId); + + /** + * 批量删除用户信息收集页面 + * + * @param awarDrecordIds 需要删除的数据ID + * @return 结果 + */ + public int deleteDrawUserInfoByIds(String[] awarDrecordIds); +} \ No newline at end of file diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawUserInfoService.java b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawUserInfoService.java new file mode 100644 index 000000000..d2e0d43d3 --- /dev/null +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawUserInfoService.java @@ -0,0 +1,62 @@ +package com.sinosoft.activity.service; + +import com.sinosoft.activity.domain.DrawUserInfo; + +import java.util.List; + +/** + * 用户信息收集页面Service接口 + * + * @author ruoyi + * @date 2021-04-20 + */ +public interface IDrawUserInfoService +{ + /** + * 查询用户信息收集页面 + * + * @param awarDrecordId 用户信息收集页面ID + * @return 用户信息收集页面 + */ + public DrawUserInfo selectDrawUserInfoById(Long awarDrecordId); + + /** + * 查询用户信息收集页面列表 + * + * @param drawUserInfo 用户信息收集页面 + * @return 用户信息收集页面集合 + */ + public List selectDrawUserInfoList(DrawUserInfo drawUserInfo); + + /** + * 新增用户信息收集页面 + * + * @param drawUserInfo 用户信息收集页面 + * @return 结果 + */ + public int insertDrawUserInfo(DrawUserInfo drawUserInfo); + + /** + * 修改用户信息收集页面 + * + * @param drawUserInfo 用户信息收集页面 + * @return 结果 + */ + public int updateDrawUserInfo(DrawUserInfo drawUserInfo); + + /** + * 批量删除用户信息收集页面 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteDrawUserInfoByIds(String ids); + + /** + * 删除用户信息收集页面信息 + * + * @param awarDrecordId 用户信息收集页面ID + * @return 结果 + */ + public int deleteDrawUserInfoById(Long awarDrecordId); +} \ No newline at end of file diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawUserInfoServiceImpl.java b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawUserInfoServiceImpl.java new file mode 100644 index 000000000..8ed4295f2 --- /dev/null +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawUserInfoServiceImpl.java @@ -0,0 +1,98 @@ +package com.sinosoft.activity.service.impl; + +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DateUtils; +import com.sinosoft.activity.domain.DrawUserInfo; +import com.sinosoft.activity.mapper.DrawUserInfoMapper; +import com.sinosoft.activity.service.IDrawUserInfoService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 用户信息收集页面Service业务层处理 + * + * @author ruoyi + * @date 2021-04-20 + */ +@Service +public class DrawUserInfoServiceImpl implements IDrawUserInfoService +{ + @Autowired + private DrawUserInfoMapper drawUserInfoMapper; + + /** + * 查询用户信息收集页面 + * + * @param awarDrecordId 用户信息收集页面ID + * @return 用户信息收集页面 + */ + @Override + public DrawUserInfo selectDrawUserInfoById(Long awarDrecordId) + { + return drawUserInfoMapper.selectDrawUserInfoById(awarDrecordId); + } + + /** + * 查询用户信息收集页面列表 + * + * @param drawUserInfo 用户信息收集页面 + * @return 用户信息收集页面 + */ + @Override + public List selectDrawUserInfoList(DrawUserInfo drawUserInfo) + { + return drawUserInfoMapper.selectDrawUserInfoList(drawUserInfo); + } + + /** + * 新增用户信息收集页面 + * + * @param drawUserInfo 用户信息收集页面 + * @return 结果 + */ + @Override + public int insertDrawUserInfo(DrawUserInfo drawUserInfo) + { + drawUserInfo.setCreateTime(DateUtils.getNowDate()); + return drawUserInfoMapper.insertDrawUserInfo(drawUserInfo); + } + + /** + * 修改用户信息收集页面 + * + * @param drawUserInfo 用户信息收集页面 + * @return 结果 + */ + @Override + public int updateDrawUserInfo(DrawUserInfo drawUserInfo) + { + drawUserInfo.setUpdateTime(DateUtils.getNowDate()); + return drawUserInfoMapper.updateDrawUserInfo(drawUserInfo); + } + + /** + * 删除用户信息收集页面对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteDrawUserInfoByIds(String ids) + { + return drawUserInfoMapper.deleteDrawUserInfoByIds(Convert.toStrArray(ids)); + } + + /** + * 删除用户信息收集页面信息 + * + * @param awarDrecordId 用户信息收集页面ID + * @return 结果 + */ + @Override + public int deleteDrawUserInfoById(Long awarDrecordId) + { + return drawUserInfoMapper.deleteDrawUserInfoById(awarDrecordId); + } +} \ No newline at end of file diff --git a/sino-activity/src/main/resources/mapper/activity/DrawUserInfoMapper.xml b/sino-activity/src/main/resources/mapper/activity/DrawUserInfoMapper.xml new file mode 100644 index 000000000..b39d1aaa6 --- /dev/null +++ b/sino-activity/src/main/resources/mapper/activity/DrawUserInfoMapper.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + select awarDrecordId, userName, mobile, gender, address, agentName, agentMobile, agentGender, agentNo, createTime, updateTime from draw_user_info + + + + + + + + insert into draw_user_info + + userName, + mobile, + gender, + address, + agentName, + agentMobile, + agentGender, + agentNo, + createTime, + updateTime, + + + #{userName}, + #{mobile}, + #{gender}, + #{address}, + #{agentName}, + #{agentMobile}, + #{agentGender}, + #{agentNo}, + #{createTime}, + #{updateTime}, + + + + + update draw_user_info + + userName = #{userName}, + mobile = #{mobile}, + gender = #{gender}, + address = #{address}, + agentName = #{agentName}, + agentMobile = #{agentMobile}, + agentGender = #{agentGender}, + agentNo = #{agentNo}, + createTime = #{createTime}, + updateTime = #{updateTime}, + + where awarDrecordId = #{awarDrecordId} + + + + delete from draw_user_info where awarDrecordId = #{awarDrecordId} + + + + delete from draw_user_info where awarDrecordId in + + #{awarDrecordId} + + + + \ No newline at end of file