修复合同参数
This commit is contained in:
parent
efc07c6b90
commit
37a9386333
@ -129,6 +129,7 @@ public class SysWxUserInfoController extends BaseController {
|
|||||||
wxServeInfo.setServeTime(list.get(0).getServeTime());
|
wxServeInfo.setServeTime(list.get(0).getServeTime());
|
||||||
wxServeInfo.setStartTime(list.get(list.size() - 1).getStartTime());
|
wxServeInfo.setStartTime(list.get(list.size() - 1).getStartTime());
|
||||||
wxServeInfo.setWeight(list.get(list.size() - 1).getWeight());
|
wxServeInfo.setWeight(list.get(list.size() - 1).getWeight());
|
||||||
|
wxServeInfo.setPhone(list.get(0).getPhone());
|
||||||
|
|
||||||
return AjaxResult.success(wxServeInfo);
|
return AjaxResult.success(wxServeInfo);
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import com.stdiet.common.utils.poi.ExcelUtil;
|
|||||||
import com.stdiet.custom.domain.SysOrder;
|
import com.stdiet.custom.domain.SysOrder;
|
||||||
import com.stdiet.custom.domain.SysWxUserInfo;
|
import com.stdiet.custom.domain.SysWxUserInfo;
|
||||||
import com.stdiet.custom.domain.SysWxUserLog;
|
import com.stdiet.custom.domain.SysWxUserLog;
|
||||||
|
import com.stdiet.custom.page.WxLogInfo;
|
||||||
import com.stdiet.custom.service.ISysOrderService;
|
import com.stdiet.custom.service.ISysOrderService;
|
||||||
import com.stdiet.custom.service.ISysWxUserInfoService;
|
import com.stdiet.custom.service.ISysWxUserInfoService;
|
||||||
import com.stdiet.custom.service.ISysWxUserLogService;
|
import com.stdiet.custom.service.ISysWxUserLogService;
|
||||||
@ -98,11 +99,9 @@ public class SysWxUserLogController extends BaseController {
|
|||||||
return toAjax(sysWxUserLogService.deleteSysWxUserLogByIds(openids));
|
return toAjax(sysWxUserLogService.deleteSysWxUserLogByIds(openids));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/wx/logs/{openid}")
|
@GetMapping(value = "/wx/logs/list")
|
||||||
public AjaxResult getLogs(@PathVariable String openId) {
|
public AjaxResult getLogs(SysWxUserLog sysWxUserLog ) {
|
||||||
SysWxUserLog querySysWxUserLog = new SysWxUserLog();
|
List<WxLogInfo> list = sysWxUserLogService.selectWxLogInfoList(sysWxUserLog);
|
||||||
querySysWxUserLog.setOpenid(openId);
|
|
||||||
List<SysWxUserLog> list = sysWxUserLogService.selectSysWxUserLogList(querySysWxUserLog);
|
|
||||||
return AjaxResult.success(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ package com.stdiet.custom.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.stdiet.custom.domain.SysWxUserLog;
|
import com.stdiet.custom.domain.SysWxUserLog;
|
||||||
|
import com.stdiet.custom.page.WxLogInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 微信用户记录Mapper接口
|
* 微信用户记录Mapper接口
|
||||||
@ -27,6 +28,8 @@ public interface SysWxUserLogMapper
|
|||||||
*/
|
*/
|
||||||
public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog);
|
public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog);
|
||||||
|
|
||||||
|
public List<WxLogInfo> selectWxLogInfoList(SysWxUserLog sysWxUserLog);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增微信用户记录
|
* 新增微信用户记录
|
||||||
*
|
*
|
||||||
|
@ -0,0 +1,118 @@
|
|||||||
|
package com.stdiet.custom.page;
|
||||||
|
|
||||||
|
import com.stdiet.common.utils.DateUtils;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class WxLogInfo implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private String date;
|
||||||
|
|
||||||
|
private Long water;
|
||||||
|
|
||||||
|
private String sleepTime;
|
||||||
|
|
||||||
|
private String wakeupTime;
|
||||||
|
|
||||||
|
private String sport;
|
||||||
|
|
||||||
|
private BigDecimal weight;
|
||||||
|
|
||||||
|
private String diet;
|
||||||
|
|
||||||
|
private String insomnia;
|
||||||
|
|
||||||
|
private String defecation;
|
||||||
|
|
||||||
|
public String getDate() {
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDefecation() {
|
||||||
|
return defecation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDiet() {
|
||||||
|
return diet;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSleepTime() {
|
||||||
|
return sleepTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getWater() {
|
||||||
|
return water;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInsomnia() {
|
||||||
|
return insomnia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSport() {
|
||||||
|
return sport;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWakeupTime() {
|
||||||
|
return wakeupTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getWeight() {
|
||||||
|
return weight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWeight(BigDecimal weight) {
|
||||||
|
this.weight = weight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDate(Date date) {
|
||||||
|
this.date = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, date);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDiet(String diet) {
|
||||||
|
this.diet = diet == "Y" ? "是" : "否";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWater(Long water) {
|
||||||
|
this.water = water;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWakeupTime(String wakeupTime) {
|
||||||
|
this.wakeupTime = wakeupTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDefecation(String defecation) {
|
||||||
|
this.defecation = defecation == "Y" ? "是" : "否";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSport(String sport) {
|
||||||
|
this.sport = sport == "Y" ? "是" : "否";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInsomnia(String insomnia) {
|
||||||
|
this.insomnia = insomnia == "Y" ? "是" : "否";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSleepTime(String sleepTime) {
|
||||||
|
this.sleepTime = sleepTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "WxLogInfo{" +
|
||||||
|
"date='" + date + '\'' +
|
||||||
|
", water='" + water + '\'' +
|
||||||
|
", sleepTime='" + sleepTime + '\'' +
|
||||||
|
", wakeupTime='" + wakeupTime + '\'' +
|
||||||
|
", sport='" + sport + '\'' +
|
||||||
|
", weight='" + weight + '\'' +
|
||||||
|
", diet='" + diet + '\'' +
|
||||||
|
", insomnia='" + insomnia + '\'' +
|
||||||
|
", defecation='" + defecation + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
@ -17,6 +17,16 @@ public class WxServeInfo implements Serializable {
|
|||||||
|
|
||||||
private String weight;
|
private String weight;
|
||||||
|
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
public String getPhone() {
|
||||||
|
return phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhone(String phone) {
|
||||||
|
this.phone = phone;
|
||||||
|
}
|
||||||
|
|
||||||
public String getServeTime() {
|
public String getServeTime() {
|
||||||
return serveTime;
|
return serveTime;
|
||||||
}
|
}
|
||||||
@ -62,6 +72,7 @@ public class WxServeInfo implements Serializable {
|
|||||||
", serveStatus='" + serveStatus + '\'' +
|
", serveStatus='" + serveStatus + '\'' +
|
||||||
", startTime='" + startTime + '\'' +
|
", startTime='" + startTime + '\'' +
|
||||||
", weight='" + weight + '\'' +
|
", weight='" + weight + '\'' +
|
||||||
|
", phone='" + phone + '\'' +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ package com.stdiet.custom.service;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.stdiet.custom.domain.SysWxUserLog;
|
import com.stdiet.custom.domain.SysWxUserLog;
|
||||||
|
import com.stdiet.custom.page.WxLogInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 微信用户记录Service接口
|
* 微信用户记录Service接口
|
||||||
@ -27,6 +28,8 @@ public interface ISysWxUserLogService
|
|||||||
*/
|
*/
|
||||||
public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog);
|
public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog);
|
||||||
|
|
||||||
|
public List<WxLogInfo> selectWxLogInfoList(SysWxUserLog sysWxUserLog);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增微信用户记录
|
* 新增微信用户记录
|
||||||
*
|
*
|
||||||
|
@ -102,8 +102,8 @@ public class SysContractServiceImpl implements ISysContractService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PdfProcessInfo signContract(SysContract sysContract) {
|
public PdfProcessInfo signContract(SysContract sysContract) {
|
||||||
// String templatePath = "/Users/wonder/Documents/Workspaces/java/RuoYi-Vue/running/pdf/contract.pdf";
|
// String templatePath = "/Users/wonder/Documents/Workspaces/java/ShengTangMange/running/pdf/contract.pdf";
|
||||||
// String filePath = "/Users/wonder/Documents/Workspaces/java/RuoYi-Vue/running" + sysContract.getPath();
|
// String filePath = "/Users/wonder/Documents/Workspaces/java/ShengTangMange/running" + sysContract.getPath();
|
||||||
String templatePath = "/home/workspace/ShengTangManage/running/pdf/contract.pdf";
|
String templatePath = "/home/workspace/ShengTangManage/running/pdf/contract.pdf";
|
||||||
String filePath = "/home/web/manage.shengtangdiet.com" + sysContract.getPath();
|
String filePath = "/home/web/manage.shengtangdiet.com" + sysContract.getPath();
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ public class SysContractServiceImpl implements ISysContractService {
|
|||||||
AcroFields form = stamper.getAcroFields();
|
AcroFields form = stamper.getAcroFields();
|
||||||
|
|
||||||
form.addSubstitutionFont(BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED));
|
form.addSubstitutionFont(BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED));
|
||||||
form.setField("signName", sysContract.getSignName(), true);
|
form.setField("name", sysContract.getSignName(), true);
|
||||||
form.setField("serveTime", sysContract.getServeTimeStr(), true);
|
form.setField("serveTime", sysContract.getServeTimeStr(), true);
|
||||||
form.setField("tutor", sysContract.getTutor(), true);
|
form.setField("tutor", sysContract.getTutor(), true);
|
||||||
form.setField("moneyUpper", sysContract.getAmountUpper(), true);
|
form.setField("moneyUpper", sysContract.getAmountUpper(), true);
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package com.stdiet.custom.service.impl;
|
package com.stdiet.custom.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.stdiet.common.utils.DateUtils;
|
import com.stdiet.common.utils.DateUtils;
|
||||||
|
import com.stdiet.custom.page.WxLogInfo;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.stdiet.custom.mapper.SysWxUserLogMapper;
|
import com.stdiet.custom.mapper.SysWxUserLogMapper;
|
||||||
@ -15,8 +17,7 @@ import com.stdiet.custom.service.ISysWxUserLogService;
|
|||||||
* @date 2020-11-28
|
* @date 2020-11-28
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
public class SysWxUserLogServiceImpl implements ISysWxUserLogService {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysWxUserLogMapper sysWxUserLogMapper;
|
private SysWxUserLogMapper sysWxUserLogMapper;
|
||||||
|
|
||||||
@ -27,8 +28,7 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
|||||||
* @return 微信用户记录
|
* @return 微信用户记录
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SysWxUserLog selectSysWxUserLogById(String openid)
|
public SysWxUserLog selectSysWxUserLogById(String openid) {
|
||||||
{
|
|
||||||
return sysWxUserLogMapper.selectSysWxUserLogById(openid);
|
return sysWxUserLogMapper.selectSysWxUserLogById(openid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,11 +39,15 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
|||||||
* @return 微信用户记录
|
* @return 微信用户记录
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog)
|
public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog) {
|
||||||
{
|
|
||||||
return sysWxUserLogMapper.selectSysWxUserLogList(sysWxUserLog);
|
return sysWxUserLogMapper.selectSysWxUserLogList(sysWxUserLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<WxLogInfo> selectWxLogInfoList(SysWxUserLog sysWxUserLog) {
|
||||||
|
return sysWxUserLogMapper.selectWxLogInfoList(sysWxUserLog);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增微信用户记录
|
* 新增微信用户记录
|
||||||
*
|
*
|
||||||
@ -51,8 +55,7 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insertSysWxUserLog(SysWxUserLog sysWxUserLog)
|
public int insertSysWxUserLog(SysWxUserLog sysWxUserLog) {
|
||||||
{
|
|
||||||
sysWxUserLog.setCreateTime(DateUtils.getNowDate());
|
sysWxUserLog.setCreateTime(DateUtils.getNowDate());
|
||||||
return sysWxUserLogMapper.insertSysWxUserLog(sysWxUserLog);
|
return sysWxUserLogMapper.insertSysWxUserLog(sysWxUserLog);
|
||||||
}
|
}
|
||||||
@ -64,8 +67,7 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int updateSysWxUserLog(SysWxUserLog sysWxUserLog)
|
public int updateSysWxUserLog(SysWxUserLog sysWxUserLog) {
|
||||||
{
|
|
||||||
sysWxUserLog.setUpdateTime(DateUtils.getNowDate());
|
sysWxUserLog.setUpdateTime(DateUtils.getNowDate());
|
||||||
return sysWxUserLogMapper.updateSysWxUserLog(sysWxUserLog);
|
return sysWxUserLogMapper.updateSysWxUserLog(sysWxUserLog);
|
||||||
}
|
}
|
||||||
@ -77,8 +79,7 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int deleteSysWxUserLogByIds(String[] openids)
|
public int deleteSysWxUserLogByIds(String[] openids) {
|
||||||
{
|
|
||||||
return sysWxUserLogMapper.deleteSysWxUserLogByIds(openids);
|
return sysWxUserLogMapper.deleteSysWxUserLogByIds(openids);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,8 +90,7 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int deleteSysWxUserLogById(String openid)
|
public int deleteSysWxUserLogById(String openid) {
|
||||||
{
|
|
||||||
return sysWxUserLogMapper.deleteSysWxUserLogById(openid);
|
return sysWxUserLogMapper.deleteSysWxUserLogById(openid);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -24,11 +24,32 @@
|
|||||||
<result property="remark" column="remark" />
|
<result property="remark" column="remark" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap type="com.stdiet.custom.page.WxLogInfo" id="WxLogInfo">
|
||||||
|
<result property="weight" column="weight" />
|
||||||
|
<result property="sleepTime" column="sleep_time" />
|
||||||
|
<result property="wakeupTime" column="wakeup_time" />
|
||||||
|
<result property="sport" column="sport" />
|
||||||
|
<result property="diet" column="diet" />
|
||||||
|
<result property="insomnia" column="insomnia" />
|
||||||
|
<result property="defecation" column="defecation" />
|
||||||
|
<result property="water" column="water" />
|
||||||
|
<result property="date" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectSysWxUserLogVo">
|
<sql id="selectSysWxUserLogVo">
|
||||||
select openid, weight, appid, phone, sleep_time, wakeup_time, sport, avatar_url, diet, insomnia, defecation, water, create_by, create_time, update_by, update_time, remark from sys_wx_user_log
|
select openid, weight, appid, phone, sleep_time, wakeup_time, sport, avatar_url, diet, insomnia, defecation, water, create_by, create_time, update_by, update_time, remark from sys_wx_user_log
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectSysWxUserLogList" parameterType="SysWxUserLog" resultMap="SysWxUserLogResult">
|
<select id="selectSysWxUserLogList" parameterType="SysWxUserLog" resultMap="SysWxUserLogResult">
|
||||||
|
<include refid="selectSysWxUserLogVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
|
||||||
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||||
|
</where>
|
||||||
|
order by create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectWxLogInfoList" parameterType="SysWxUserLog" resultMap="WxLogInfo">
|
||||||
<include refid="selectSysWxUserLogVo"/>
|
<include refid="selectSysWxUserLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
|
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user