Browse Source

成员id改userid

master
zhangye 6 years ago
parent
commit
0c310bfb37
  1. 2
      health/src/main/java/com/ccsens/health/api/DebugController.java
  2. 12
      health/src/main/java/com/ccsens/health/bean/po/HealthAbnormal.java
  3. 48
      health/src/main/java/com/ccsens/health/bean/po/HealthAbnormalExample.java
  4. 12
      health/src/main/java/com/ccsens/health/bean/po/HealthRecords.java
  5. 48
      health/src/main/java/com/ccsens/health/bean/po/HealthRecordsExample.java
  6. 12
      health/src/main/java/com/ccsens/health/bean/po/Journey.java
  7. 48
      health/src/main/java/com/ccsens/health/bean/po/JourneyExample.java
  8. 11
      health/src/main/java/com/ccsens/health/bean/po/Site.java
  9. 12
      health/src/main/java/com/ccsens/health/bean/po/SiteClockIn.java
  10. 48
      health/src/main/java/com/ccsens/health/bean/po/SiteClockInExample.java
  11. 70
      health/src/main/java/com/ccsens/health/bean/po/SiteExample.java
  12. 16
      health/src/main/java/com/ccsens/health/service/ClockService.java
  13. 20
      health/src/main/java/com/ccsens/health/service/HealthService.java
  14. 2
      health/src/main/java/com/ccsens/health/service/IUserService.java
  15. 16
      health/src/main/java/com/ccsens/health/service/JourneyService.java
  16. 36
      health/src/main/java/com/ccsens/health/service/UserService.java
  17. 4
      health/src/main/resources/application.yml
  18. 28
      health/src/main/resources/mapper_raw/HealthAbnormalMapper.xml
  19. 30
      health/src/main/resources/mapper_raw/HealthRecordsMapper.xml
  20. 30
      health/src/main/resources/mapper_raw/JourneyMapper.xml
  21. 28
      health/src/main/resources/mapper_raw/SiteClockInMapper.xml
  22. 28
      health/src/main/resources/mapper_raw/SiteMapper.xml
  23. 2
      util/home
  24. 1
      util/src/test/java/com/ccsens/util/Base64Test.java

2
health/src/main/java/com/ccsens/health/api/DebugController.java

@ -33,7 +33,7 @@ public class DebugController {
@RequestMapping(value="qrcode",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) @RequestMapping(value="qrcode",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse qrcode(HttpServletRequest request) throws Exception { public JsonResponse qrcode(HttpServletRequest request) throws Exception {
WxXcxUtil.getWxCode("pages/sign/sign?siteId=1235756988936359936&scene=1011&siteName=TSG&type=in" WxXcxUtil.getWxCode("pages/sign/sign?siteId=1235756988936359936&scene=1011&siteName=TSG&type=in"
,"1011", WebConstant.UPLOAD_PATH_BASE+"112233.jpg"); ,"1011", "/home/cloud/tall/uploads/112233.jpg");
return JsonResponse.newInstance().ok("完成"); return JsonResponse.newInstance().ok("完成");
} }
} }

12
health/src/main/java/com/ccsens/health/bean/po/HealthAbnormal.java

@ -6,7 +6,7 @@ import java.util.Date;
public class HealthAbnormal implements Serializable { public class HealthAbnormal implements Serializable {
private Long id; private Long id;
private Long employeeId; private Long userId;
private Long time; private Long time;
@ -28,12 +28,12 @@ public class HealthAbnormal implements Serializable {
this.id = id; this.id = id;
} }
public Long getEmployeeId() { public Long getUserId() {
return employeeId; return userId;
} }
public void setEmployeeId(Long employeeId) { public void setUserId(Long userId) {
this.employeeId = employeeId; this.userId = userId;
} }
public Long getTime() { public Long getTime() {
@ -83,7 +83,7 @@ public class HealthAbnormal implements Serializable {
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", employeeId=").append(employeeId); sb.append(", userId=").append(userId);
sb.append(", time=").append(time); sb.append(", time=").append(time);
sb.append(", healthTypeId=").append(healthTypeId); sb.append(", healthTypeId=").append(healthTypeId);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);

48
health/src/main/java/com/ccsens/health/bean/po/HealthAbnormalExample.java

@ -165,63 +165,63 @@ public class HealthAbnormalExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNull() { public Criteria andUserIdIsNull() {
addCriterion("employee_id is null"); addCriterion("user_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNotNull() { public Criteria andUserIdIsNotNull() {
addCriterion("employee_id is not null"); addCriterion("user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdEqualTo(Long value) { public Criteria andUserIdEqualTo(Long value) {
addCriterion("employee_id =", value, "employeeId"); addCriterion("user_id =", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotEqualTo(Long value) { public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("employee_id <>", value, "employeeId"); addCriterion("user_id <>", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThan(Long value) { public Criteria andUserIdGreaterThan(Long value) {
addCriterion("employee_id >", value, "employeeId"); addCriterion("user_id >", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThanOrEqualTo(Long value) { public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("employee_id >=", value, "employeeId"); addCriterion("user_id >=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThan(Long value) { public Criteria andUserIdLessThan(Long value) {
addCriterion("employee_id <", value, "employeeId"); addCriterion("user_id <", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThanOrEqualTo(Long value) { public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("employee_id <=", value, "employeeId"); addCriterion("user_id <=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIn(List<Long> values) { public Criteria andUserIdIn(List<Long> values) {
addCriterion("employee_id in", values, "employeeId"); addCriterion("user_id in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotIn(List<Long> values) { public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("employee_id not in", values, "employeeId"); addCriterion("user_id not in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdBetween(Long value1, Long value2) { public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("employee_id between", value1, value2, "employeeId"); addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotBetween(Long value1, Long value2) { public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("employee_id not between", value1, value2, "employeeId"); addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }

12
health/src/main/java/com/ccsens/health/bean/po/HealthRecords.java

@ -7,7 +7,7 @@ import java.util.Date;
public class HealthRecords implements Serializable { public class HealthRecords implements Serializable {
private Long id; private Long id;
private Long employeeId; private Long userId;
private Long time; private Long time;
@ -43,12 +43,12 @@ public class HealthRecords implements Serializable {
this.id = id; this.id = id;
} }
public Long getEmployeeId() { public Long getUserId() {
return employeeId; return userId;
} }
public void setEmployeeId(Long employeeId) { public void setUserId(Long userId) {
this.employeeId = employeeId; this.userId = userId;
} }
public Long getTime() { public Long getTime() {
@ -154,7 +154,7 @@ public class HealthRecords implements Serializable {
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", employeeId=").append(employeeId); sb.append(", userId=").append(userId);
sb.append(", time=").append(time); sb.append(", time=").append(time);
sb.append(", district=").append(district); sb.append(", district=").append(district);
sb.append(", address=").append(address); sb.append(", address=").append(address);

48
health/src/main/java/com/ccsens/health/bean/po/HealthRecordsExample.java

@ -166,63 +166,63 @@ public class HealthRecordsExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNull() { public Criteria andUserIdIsNull() {
addCriterion("employee_id is null"); addCriterion("user_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNotNull() { public Criteria andUserIdIsNotNull() {
addCriterion("employee_id is not null"); addCriterion("user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdEqualTo(Long value) { public Criteria andUserIdEqualTo(Long value) {
addCriterion("employee_id =", value, "employeeId"); addCriterion("user_id =", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotEqualTo(Long value) { public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("employee_id <>", value, "employeeId"); addCriterion("user_id <>", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThan(Long value) { public Criteria andUserIdGreaterThan(Long value) {
addCriterion("employee_id >", value, "employeeId"); addCriterion("user_id >", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThanOrEqualTo(Long value) { public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("employee_id >=", value, "employeeId"); addCriterion("user_id >=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThan(Long value) { public Criteria andUserIdLessThan(Long value) {
addCriterion("employee_id <", value, "employeeId"); addCriterion("user_id <", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThanOrEqualTo(Long value) { public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("employee_id <=", value, "employeeId"); addCriterion("user_id <=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIn(List<Long> values) { public Criteria andUserIdIn(List<Long> values) {
addCriterion("employee_id in", values, "employeeId"); addCriterion("user_id in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotIn(List<Long> values) { public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("employee_id not in", values, "employeeId"); addCriterion("user_id not in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdBetween(Long value1, Long value2) { public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("employee_id between", value1, value2, "employeeId"); addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotBetween(Long value1, Long value2) { public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("employee_id not between", value1, value2, "employeeId"); addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }

12
health/src/main/java/com/ccsens/health/bean/po/Journey.java

@ -6,7 +6,7 @@ import java.util.Date;
public class Journey implements Serializable { public class Journey implements Serializable {
private Long id; private Long id;
private Long employeeId; private Long userId;
private Byte tripMode; private Byte tripMode;
@ -38,12 +38,12 @@ public class Journey implements Serializable {
this.id = id; this.id = id;
} }
public Long getEmployeeId() { public Long getUserId() {
return employeeId; return userId;
} }
public void setEmployeeId(Long employeeId) { public void setUserId(Long userId) {
this.employeeId = employeeId; this.userId = userId;
} }
public Byte getTripMode() { public Byte getTripMode() {
@ -133,7 +133,7 @@ public class Journey implements Serializable {
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", employeeId=").append(employeeId); sb.append(", userId=").append(userId);
sb.append(", tripMode=").append(tripMode); sb.append(", tripMode=").append(tripMode);
sb.append(", carNo=").append(carNo); sb.append(", carNo=").append(carNo);
sb.append(", startTime=").append(startTime); sb.append(", startTime=").append(startTime);

48
health/src/main/java/com/ccsens/health/bean/po/JourneyExample.java

@ -165,63 +165,63 @@ public class JourneyExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNull() { public Criteria andUserIdIsNull() {
addCriterion("employee_id is null"); addCriterion("user_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNotNull() { public Criteria andUserIdIsNotNull() {
addCriterion("employee_id is not null"); addCriterion("user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdEqualTo(Long value) { public Criteria andUserIdEqualTo(Long value) {
addCriterion("employee_id =", value, "employeeId"); addCriterion("user_id =", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotEqualTo(Long value) { public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("employee_id <>", value, "employeeId"); addCriterion("user_id <>", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThan(Long value) { public Criteria andUserIdGreaterThan(Long value) {
addCriterion("employee_id >", value, "employeeId"); addCriterion("user_id >", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThanOrEqualTo(Long value) { public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("employee_id >=", value, "employeeId"); addCriterion("user_id >=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThan(Long value) { public Criteria andUserIdLessThan(Long value) {
addCriterion("employee_id <", value, "employeeId"); addCriterion("user_id <", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThanOrEqualTo(Long value) { public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("employee_id <=", value, "employeeId"); addCriterion("user_id <=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIn(List<Long> values) { public Criteria andUserIdIn(List<Long> values) {
addCriterion("employee_id in", values, "employeeId"); addCriterion("user_id in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotIn(List<Long> values) { public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("employee_id not in", values, "employeeId"); addCriterion("user_id not in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdBetween(Long value1, Long value2) { public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("employee_id between", value1, value2, "employeeId"); addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotBetween(Long value1, Long value2) { public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("employee_id not between", value1, value2, "employeeId"); addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }

11
health/src/main/java/com/ccsens/health/bean/po/Site.java

@ -15,6 +15,8 @@ public class Site implements Serializable {
private BigDecimal latitude; private BigDecimal latitude;
private String parentCode;
private Date createdAt; private Date createdAt;
private Date updatedAt; private Date updatedAt;
@ -63,6 +65,14 @@ public class Site implements Serializable {
this.latitude = latitude; this.latitude = latitude;
} }
public String getParentCode() {
return parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode == null ? null : parentCode.trim();
}
public Date getCreatedAt() { public Date getCreatedAt() {
return createdAt; return createdAt;
} }
@ -98,6 +108,7 @@ public class Site implements Serializable {
sb.append(", siteCode=").append(siteCode); sb.append(", siteCode=").append(siteCode);
sb.append(", longitude=").append(longitude); sb.append(", longitude=").append(longitude);
sb.append(", latitude=").append(latitude); sb.append(", latitude=").append(latitude);
sb.append(", parentCode=").append(parentCode);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt); sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus); sb.append(", recStatus=").append(recStatus);

12
health/src/main/java/com/ccsens/health/bean/po/SiteClockIn.java

@ -12,7 +12,7 @@ public class SiteClockIn implements Serializable {
private String location; private String location;
private Long employeeId; private Long userId;
private Date createdAt; private Date createdAt;
@ -54,12 +54,12 @@ public class SiteClockIn implements Serializable {
this.location = location == null ? null : location.trim(); this.location = location == null ? null : location.trim();
} }
public Long getEmployeeId() { public Long getUserId() {
return employeeId; return userId;
} }
public void setEmployeeId(Long employeeId) { public void setUserId(Long userId) {
this.employeeId = employeeId; this.userId = userId;
} }
public Date getCreatedAt() { public Date getCreatedAt() {
@ -96,7 +96,7 @@ public class SiteClockIn implements Serializable {
sb.append(", qrcodeId=").append(qrcodeId); sb.append(", qrcodeId=").append(qrcodeId);
sb.append(", time=").append(time); sb.append(", time=").append(time);
sb.append(", location=").append(location); sb.append(", location=").append(location);
sb.append(", employeeId=").append(employeeId); sb.append(", userId=").append(userId);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt); sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus); sb.append(", recStatus=").append(recStatus);

48
health/src/main/java/com/ccsens/health/bean/po/SiteClockInExample.java

@ -355,63 +355,63 @@ public class SiteClockInExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNull() { public Criteria andUserIdIsNull() {
addCriterion("employee_id is null"); addCriterion("user_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIsNotNull() { public Criteria andUserIdIsNotNull() {
addCriterion("employee_id is not null"); addCriterion("user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdEqualTo(Long value) { public Criteria andUserIdEqualTo(Long value) {
addCriterion("employee_id =", value, "employeeId"); addCriterion("user_id =", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotEqualTo(Long value) { public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("employee_id <>", value, "employeeId"); addCriterion("user_id <>", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThan(Long value) { public Criteria andUserIdGreaterThan(Long value) {
addCriterion("employee_id >", value, "employeeId"); addCriterion("user_id >", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdGreaterThanOrEqualTo(Long value) { public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("employee_id >=", value, "employeeId"); addCriterion("user_id >=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThan(Long value) { public Criteria andUserIdLessThan(Long value) {
addCriterion("employee_id <", value, "employeeId"); addCriterion("user_id <", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdLessThanOrEqualTo(Long value) { public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("employee_id <=", value, "employeeId"); addCriterion("user_id <=", value, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdIn(List<Long> values) { public Criteria andUserIdIn(List<Long> values) {
addCriterion("employee_id in", values, "employeeId"); addCriterion("user_id in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotIn(List<Long> values) { public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("employee_id not in", values, "employeeId"); addCriterion("user_id not in", values, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdBetween(Long value1, Long value2) { public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("employee_id between", value1, value2, "employeeId"); addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andEmployeeIdNotBetween(Long value1, Long value2) { public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("employee_id not between", value1, value2, "employeeId"); addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this; return (Criteria) this;
} }

70
health/src/main/java/com/ccsens/health/bean/po/SiteExample.java

@ -426,6 +426,76 @@ public class SiteExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andParentCodeIsNull() {
addCriterion("parent_code is null");
return (Criteria) this;
}
public Criteria andParentCodeIsNotNull() {
addCriterion("parent_code is not null");
return (Criteria) this;
}
public Criteria andParentCodeEqualTo(String value) {
addCriterion("parent_code =", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeNotEqualTo(String value) {
addCriterion("parent_code <>", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeGreaterThan(String value) {
addCriterion("parent_code >", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeGreaterThanOrEqualTo(String value) {
addCriterion("parent_code >=", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeLessThan(String value) {
addCriterion("parent_code <", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeLessThanOrEqualTo(String value) {
addCriterion("parent_code <=", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeLike(String value) {
addCriterion("parent_code like", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeNotLike(String value) {
addCriterion("parent_code not like", value, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeIn(List<String> values) {
addCriterion("parent_code in", values, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeNotIn(List<String> values) {
addCriterion("parent_code not in", values, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeBetween(String value1, String value2) {
addCriterion("parent_code between", value1, value2, "parentCode");
return (Criteria) this;
}
public Criteria andParentCodeNotBetween(String value1, String value2) {
addCriterion("parent_code not between", value1, value2, "parentCode");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() { public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null"); addCriterion("created_at is null");
return (Criteria) this; return (Criteria) this;

16
health/src/main/java/com/ccsens/health/service/ClockService.java

@ -3,6 +3,7 @@ package com.ccsens.health.service;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.lang.Snowflake; import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.ccsens.cloudutil.feign.TallFeignClient; import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.health.bean.dto.ClockDto; import com.ccsens.health.bean.dto.ClockDto;
import com.ccsens.health.bean.dto.HealthDto; import com.ccsens.health.bean.dto.HealthDto;
@ -51,12 +52,12 @@ public class ClockService implements IClockService {
//1、获取打卡信息和userId //1、获取打卡信息和userId
ClockDto.SiteDto clickIn = params.getParam(); ClockDto.SiteDto clickIn = params.getParam();
Long userId = params.getUserId(); Long userId = params.getUserId();
//2、通过userId获取成员id // //2、通过userId获取成员id
Employee employee = userService.getEmployeeByUserId(userId); // Employee employee = userService.getEmployeeByUserId(userId);
//添加打卡记录 //添加打卡记录
SiteClockIn siteClockIn = new SiteClockIn(); SiteClockIn siteClockIn = new SiteClockIn();
siteClockIn.setId(snowflake.nextId()); siteClockIn.setId(snowflake.nextId());
siteClockIn.setEmployeeId(employee.getId()); siteClockIn.setUserId(userId);
siteClockIn.setQrcodeId(clickIn.getSiteId()); siteClockIn.setQrcodeId(clickIn.getSiteId());
siteClockIn.setTime(System.currentTimeMillis()); siteClockIn.setTime(System.currentTimeMillis());
siteClockInDao.insertSelective(siteClockIn); siteClockInDao.insertSelective(siteClockIn);
@ -75,10 +76,13 @@ public class ClockService implements IClockService {
Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime(); Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime();
Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime(); Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime();
String userId = tallFeignClient.getUserId(selectDate.getToken()); String userId = tallFeignClient.getUserId(selectDate.getToken());
//2、通过userid查询出成员id if(StrUtil.isEmpty(userId)){
Employee employee = userService.getEmployeeByUserId(Long.valueOf(userId)); throw new BaseException(CodeEnum.NOT_LOGIN);
}
// //2、通过userid查询出成员id
// Employee employee = userService.getEmployeeByUserId(Long.valueOf(userId));
//3、查询该成员符合时间的记录 //3、查询该成员符合时间的记录
List<ClockVo.SiteClockInfo> siteClockInfoList = siteClockInDao.selectHealthInfoByDate(employee.getId(),startTime,endTime); List<ClockVo.SiteClockInfo> siteClockInfoList = siteClockInDao.selectHealthInfoByDate(Long.valueOf(userId),startTime,endTime);
//4、返回 //4、返回
return siteClockInfoList; return siteClockInfoList;
} }

20
health/src/main/java/com/ccsens/health/service/HealthService.java

@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.lang.Snowflake; import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.ccsens.cloudutil.feign.TallFeignClient; import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.health.bean.dto.HealthDto; import com.ccsens.health.bean.dto.HealthDto;
import com.ccsens.health.bean.dto.JourneyDto; import com.ccsens.health.bean.dto.JourneyDto;
@ -12,10 +13,12 @@ import com.ccsens.health.bean.vo.HealthVo;
import com.ccsens.health.persist.dao.HealthQRCodeDao; import com.ccsens.health.persist.dao.HealthQRCodeDao;
import com.ccsens.health.persist.dao.HealthRecordsDao; import com.ccsens.health.persist.dao.HealthRecordsDao;
import com.ccsens.health.persist.dao.HealthTypeDao; import com.ccsens.health.persist.dao.HealthTypeDao;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.DateUtil; import com.ccsens.util.DateUtil;
import com.ccsens.util.QrCodeUtil; import com.ccsens.util.QrCodeUtil;
import com.ccsens.util.WebConstant; import com.ccsens.util.WebConstant;
import com.ccsens.util.bean.dto.QueryDto; import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.util.exception.BaseException;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -49,13 +52,13 @@ public class HealthService implements IHealthService{
//1、获取健康信息和userId //1、获取健康信息和userId
HealthDto.healthInfo healthInfo = params.getParam(); HealthDto.healthInfo healthInfo = params.getParam();
Long userId = params.getUserId(); Long userId = params.getUserId();
//2、通过userId获取成员id // //2、通过userId获取成员id
Employee employee = userService.getEmployeeByUserId(userId); // Employee employee = userService.getEmployeeByUserId(userId);
//3、保存健康信息 //3、保存健康信息
HealthRecords healthRecords = new HealthRecords(); HealthRecords healthRecords = new HealthRecords();
healthRecords.setId(snowflake.nextId()); healthRecords.setId(snowflake.nextId());
healthRecords.setTime(System.currentTimeMillis()); healthRecords.setTime(System.currentTimeMillis());
healthRecords.setEmployeeId(employee.getId()); healthRecords.setUserId(userId);
BeanUtil.copyProperties(healthInfo,healthRecords); BeanUtil.copyProperties(healthInfo,healthRecords);
healthRecordsDao.insertSelective(healthRecords); healthRecordsDao.insertSelective(healthRecords);
//4、生成健康码,返回地址 //4、生成健康码,返回地址
@ -73,7 +76,7 @@ public class HealthService implements IHealthService{
//6、查询健康信息和健康码地址返回前端 //6、查询健康信息和健康码地址返回前端
HealthVo.HealthInfo healthInfoVo = new HealthVo.HealthInfo(); HealthVo.HealthInfo healthInfoVo = new HealthVo.HealthInfo();
BeanUtil.copyProperties(healthRecords,healthInfoVo); BeanUtil.copyProperties(healthRecords,healthInfoVo);
healthInfoVo.setUserId(employee.getId()); healthInfoVo.setUserId(userId);
healthInfoVo.setHealthCode(qrcodePath); healthInfoVo.setHealthCode(qrcodePath);
return healthInfoVo; return healthInfoVo;
} }
@ -90,10 +93,13 @@ public class HealthService implements IHealthService{
Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime(); Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime();
Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime(); Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime();
String userId = tallFeignClient.getUserId(selectDate.getToken()); String userId = tallFeignClient.getUserId(selectDate.getToken());
//2、通过userid查询出成员id if(StrUtil.isEmpty(userId)){
Employee employee = userService.getEmployeeByUserId(Long.valueOf(userId)); throw new BaseException(CodeEnum.NOT_LOGIN);
}
// //2、通过userid查询出成员id
// Employee employee = userService.getEmployeeByUserId(Long.valueOf(userId));
//3、查询该成员符合时间的记录 //3、查询该成员符合时间的记录
List<HealthVo.HealthInfo> healthInfoList = healthRecordsDao.selectHealthInfoByDate(employee.getId(),startTime,endTime); List<HealthVo.HealthInfo> healthInfoList = healthRecordsDao.selectHealthInfoByDate(Long.valueOf(userId),startTime,endTime);
//4、返回 //4、返回
return healthInfoList; return healthInfoList;
} }

2
health/src/main/java/com/ccsens/health/service/IUserService.java

@ -11,5 +11,5 @@ public interface IUserService {
UserVo.UserInfo addUserInfo(QueryDto<UserDto.UserInfo> params); UserVo.UserInfo addUserInfo(QueryDto<UserDto.UserInfo> params);
Employee getEmployeeByUserId(Long userId); // Employee getEmployeeByUserId(Long userId);
} }

16
health/src/main/java/com/ccsens/health/service/JourneyService.java

@ -3,6 +3,7 @@ package com.ccsens.health.service;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.lang.Snowflake; import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.StrUtil;
import com.ccsens.cloudutil.feign.TallFeignClient; import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.health.bean.dto.JourneyDto; import com.ccsens.health.bean.dto.JourneyDto;
import com.ccsens.health.bean.po.Employee; import com.ccsens.health.bean.po.Employee;
@ -46,13 +47,13 @@ public class JourneyService implements IJourneyService{
//1、获取用户id和传入信息 //1、获取用户id和传入信息
JourneyDto.JourneyInfo journeyInfo = params.getParam(); JourneyDto.JourneyInfo journeyInfo = params.getParam();
Long userId = params.getUserId(); Long userId = params.getUserId();
//2、通过tallId找到health里的成员id // //2、通过tallId找到health里的成员id
Employee employee = userService.getEmployeeByUserId(userId); // Employee employee = userService.getEmployeeByUserId(userId);
//3、保存行程 //3、保存行程
Journey journey = new Journey(); Journey journey = new Journey();
BeanUtil.copyProperties(journeyInfo,journey); BeanUtil.copyProperties(journeyInfo,journey);
journey.setId(snowflake.nextId()); journey.setId(snowflake.nextId());
journey.setEmployeeId(employee.getId()); journey.setUserId(userId);
journeyDao.insertSelective(journey); journeyDao.insertSelective(journey);
//4、查询行程信息,并返回 //4、查询行程信息,并返回
JourneyVo.JourneyInfo journeyInfoVo = new JourneyVo.JourneyInfo(); JourneyVo.JourneyInfo journeyInfoVo = new JourneyVo.JourneyInfo();
@ -73,10 +74,13 @@ public class JourneyService implements IJourneyService{
Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime(); Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime();
Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime(); Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime();
String userId = tallFeignClient.getUserId(selectDate.getToken()); String userId = tallFeignClient.getUserId(selectDate.getToken());
//2、通过userid查询出成员id if(StrUtil.isEmpty(userId)){
Employee employee = userService.getEmployeeByUserId(Long.valueOf(userId)); throw new BaseException(CodeEnum.NOT_LOGIN);
}
// //2、通过userid查询出成员id
// Employee employee = userService.getEmployeeByUserId(Long.valueOf(userId));
//3、查询该成员符合时间的行程记录 //3、查询该成员符合时间的行程记录
List<JourneyVo.JourneyInfo> journeyList = journeyDao.selectJourneyByDate(employee.getId(),startTime,endTime); List<JourneyVo.JourneyInfo> journeyList = journeyDao.selectJourneyByDate(Long.valueOf(userId),startTime,endTime);
//4、返回 //4、返回
return journeyList; return journeyList;
} }

36
health/src/main/java/com/ccsens/health/service/UserService.java

@ -3,6 +3,7 @@ package com.ccsens.health.service;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.lang.Snowflake; import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.StrUtil;
import com.ccsens.cloudutil.feign.TallFeignClient; import com.ccsens.cloudutil.feign.TallFeignClient;
import com.ccsens.health.bean.dto.JourneyDto; import com.ccsens.health.bean.dto.JourneyDto;
import com.ccsens.health.bean.dto.UserDto; import com.ccsens.health.bean.dto.UserDto;
@ -51,13 +52,16 @@ public class UserService implements IUserService{
Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime(); Long startTime = selectDate.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectDate.getStartTime();
Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime(); Long endTime = selectDate.getEndTime() == null ? System.currentTimeMillis() : selectDate.getEndTime();
String userId = tallFeignClient.getUserId(selectDate.getToken()); String userId = tallFeignClient.getUserId(selectDate.getToken());
if(StrUtil.isEmpty(userId)){
throw new BaseException(CodeEnum.NOT_LOGIN);
}
//查询信息 //查询信息
RealNameAuth realNameAuth = realNameAuthDao.selectByPrimaryKey(Long.valueOf(userId)); RealNameAuth realNameAuth = realNameAuthDao.selectByPrimaryKey(Long.valueOf(userId));
UserVo.UserInfo userInfoVo = new UserVo.UserInfo(); UserVo.UserInfo userInfoVo = new UserVo.UserInfo();
BeanUtil.copyProperties(realNameAuth,userInfoVo); BeanUtil.copyProperties(realNameAuth,userInfoVo);
//查询健康码 // //查询健康码
Employee employee = getEmployeeByUserId(Long.valueOf(userId)); // Employee employee = getEmployeeByUserId(Long.valueOf(userId));
List<UserVo.HealthCode> healthCodeList = healthRecordsDao.getHealthQrCodeByEmployeeId(employee.getId(),startTime,endTime); List<UserVo.HealthCode> healthCodeList = healthRecordsDao.getHealthQrCodeByEmployeeId(Long.valueOf(userId),startTime,endTime);
userInfoVo.setHealthCodeList(healthCodeList); userInfoVo.setHealthCodeList(healthCodeList);
@ -91,18 +95,18 @@ public class UserService implements IUserService{
} }
/** // /**
* 通过userid获取employeeId // * 通过userid获取employeeId
*/ // */
@Override // @Override
public Employee getEmployeeByUserId(Long userId){ // public Employee getEmployeeByUserId(Long userId){
EmployeeExample employeeExample = new EmployeeExample(); // EmployeeExample employeeExample = new EmployeeExample();
employeeExample.createCriteria().andTallUserIdEqualTo(userId); // employeeExample.createCriteria().andTallUserIdEqualTo(userId);
List<Employee> employeeList = employeeDao.selectByExample(employeeExample); // List<Employee> employeeList = employeeDao.selectByExample(employeeExample);
if(CollectionUtil.isEmpty(employeeList)){ // if(CollectionUtil.isEmpty(employeeList)){
throw new BaseException(CodeEnum.NOT_EMPLOYEE); // throw new BaseException(CodeEnum.NOT_EMPLOYEE);
} // }
return employeeList.get(0); // return employeeList.get(0);
} // }
} }

4
health/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring: spring:
profiles: profiles:
active: test active: dev
include: common, util-test include: common, util-dev

28
health/src/main/resources/mapper_raw/HealthAbnormalMapper.xml

@ -3,7 +3,7 @@
<mapper namespace="com.ccsens.health.persist.mapper.HealthAbnormalMapper"> <mapper namespace="com.ccsens.health.persist.mapper.HealthAbnormalMapper">
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.HealthAbnormal"> <resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.HealthAbnormal">
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> <result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="time" jdbcType="BIGINT" property="time" /> <result column="time" jdbcType="BIGINT" property="time" />
<result column="health_type_id" jdbcType="BIGINT" property="healthTypeId" /> <result column="health_type_id" jdbcType="BIGINT" property="healthTypeId" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
@ -69,7 +69,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, employee_id, time, health_type_id, created_at, updated_at, rec_status id, user_id, time, health_type_id, created_at, updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthAbnormalExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthAbnormalExample" resultMap="BaseResultMap">
select select
@ -102,10 +102,10 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.health.bean.po.HealthAbnormal"> <insert id="insert" parameterType="com.ccsens.health.bean.po.HealthAbnormal">
insert into t_health_abnormal (id, employee_id, time, insert into t_health_abnormal (id, user_id, time,
health_type_id, created_at, updated_at, health_type_id, created_at, updated_at,
rec_status) rec_status)
values (#{id,jdbcType=BIGINT}, #{employeeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT},
#{healthTypeId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{healthTypeId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT}) #{recStatus,jdbcType=TINYINT})
</insert> </insert>
@ -115,8 +115,8 @@
<if test="id != null"> <if test="id != null">
id, id,
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
employee_id, user_id,
</if> </if>
<if test="time != null"> <if test="time != null">
time, time,
@ -138,8 +138,8 @@
<if test="id != null"> <if test="id != null">
#{id,jdbcType=BIGINT}, #{id,jdbcType=BIGINT},
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
#{employeeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
</if> </if>
<if test="time != null"> <if test="time != null">
#{time,jdbcType=BIGINT}, #{time,jdbcType=BIGINT},
@ -170,8 +170,8 @@
<if test="record.id != null"> <if test="record.id != null">
id = #{record.id,jdbcType=BIGINT}, id = #{record.id,jdbcType=BIGINT},
</if> </if>
<if test="record.employeeId != null"> <if test="record.userId != null">
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
</if> </if>
<if test="record.time != null"> <if test="record.time != null">
time = #{record.time,jdbcType=BIGINT}, time = #{record.time,jdbcType=BIGINT},
@ -196,7 +196,7 @@
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
update t_health_abnormal update t_health_abnormal
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
time = #{record.time,jdbcType=BIGINT}, time = #{record.time,jdbcType=BIGINT},
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, health_type_id = #{record.healthTypeId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
@ -209,8 +209,8 @@
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.HealthAbnormal"> <update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.HealthAbnormal">
update t_health_abnormal update t_health_abnormal
<set> <set>
<if test="employeeId != null"> <if test="userId != null">
employee_id = #{employeeId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT},
</if> </if>
<if test="time != null"> <if test="time != null">
time = #{time,jdbcType=BIGINT}, time = #{time,jdbcType=BIGINT},
@ -232,7 +232,7 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.HealthAbnormal"> <update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.HealthAbnormal">
update t_health_abnormal update t_health_abnormal
set employee_id = #{employeeId,jdbcType=BIGINT}, set user_id = #{userId,jdbcType=BIGINT},
time = #{time,jdbcType=BIGINT}, time = #{time,jdbcType=BIGINT},
health_type_id = #{healthTypeId,jdbcType=BIGINT}, health_type_id = #{healthTypeId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},

30
health/src/main/resources/mapper_raw/HealthRecordsMapper.xml

@ -3,7 +3,7 @@
<mapper namespace="com.ccsens.health.persist.mapper.HealthRecordsMapper"> <mapper namespace="com.ccsens.health.persist.mapper.HealthRecordsMapper">
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.HealthRecords"> <resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.HealthRecords">
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> <result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="time" jdbcType="BIGINT" property="time" /> <result column="time" jdbcType="BIGINT" property="time" />
<result column="district" jdbcType="VARCHAR" property="district" /> <result column="district" jdbcType="VARCHAR" property="district" />
<result column="address" jdbcType="VARCHAR" property="address" /> <result column="address" jdbcType="VARCHAR" property="address" />
@ -76,8 +76,8 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, employee_id, time, district, address, health_type_id, hospital, touch_hubei, id, user_id, time, district, address, health_type_id, hospital, touch_hubei, touch_sick,
touch_sick, animal_heat, self_fill, created_at, updated_at, rec_status animal_heat, self_fill, created_at, updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthRecordsExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthRecordsExample" resultMap="BaseResultMap">
select select
@ -110,12 +110,12 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.health.bean.po.HealthRecords"> <insert id="insert" parameterType="com.ccsens.health.bean.po.HealthRecords">
insert into t_health_records (id, employee_id, time, insert into t_health_records (id, user_id, time,
district, address, health_type_id, district, address, health_type_id,
hospital, touch_hubei, touch_sick, hospital, touch_hubei, touch_sick,
animal_heat, self_fill, created_at, animal_heat, self_fill, created_at,
updated_at, rec_status) updated_at, rec_status)
values (#{id,jdbcType=BIGINT}, #{employeeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT},
#{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{healthTypeId,jdbcType=BIGINT}, #{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{healthTypeId,jdbcType=BIGINT},
#{hospital,jdbcType=VARCHAR}, #{touchHubei,jdbcType=TINYINT}, #{touchSick,jdbcType=TINYINT}, #{hospital,jdbcType=VARCHAR}, #{touchHubei,jdbcType=TINYINT}, #{touchSick,jdbcType=TINYINT},
#{animalHeat,jdbcType=DECIMAL}, #{selfFill,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{animalHeat,jdbcType=DECIMAL}, #{selfFill,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP},
@ -127,8 +127,8 @@
<if test="id != null"> <if test="id != null">
id, id,
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
employee_id, user_id,
</if> </if>
<if test="time != null"> <if test="time != null">
time, time,
@ -171,8 +171,8 @@
<if test="id != null"> <if test="id != null">
#{id,jdbcType=BIGINT}, #{id,jdbcType=BIGINT},
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
#{employeeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
</if> </if>
<if test="time != null"> <if test="time != null">
#{time,jdbcType=BIGINT}, #{time,jdbcType=BIGINT},
@ -224,8 +224,8 @@
<if test="record.id != null"> <if test="record.id != null">
id = #{record.id,jdbcType=BIGINT}, id = #{record.id,jdbcType=BIGINT},
</if> </if>
<if test="record.employeeId != null"> <if test="record.userId != null">
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
</if> </if>
<if test="record.time != null"> <if test="record.time != null">
time = #{record.time,jdbcType=BIGINT}, time = #{record.time,jdbcType=BIGINT},
@ -271,7 +271,7 @@
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
update t_health_records update t_health_records
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
time = #{record.time,jdbcType=BIGINT}, time = #{record.time,jdbcType=BIGINT},
district = #{record.district,jdbcType=VARCHAR}, district = #{record.district,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR}, address = #{record.address,jdbcType=VARCHAR},
@ -291,8 +291,8 @@
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.HealthRecords"> <update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.HealthRecords">
update t_health_records update t_health_records
<set> <set>
<if test="employeeId != null"> <if test="userId != null">
employee_id = #{employeeId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT},
</if> </if>
<if test="time != null"> <if test="time != null">
time = #{time,jdbcType=BIGINT}, time = #{time,jdbcType=BIGINT},
@ -335,7 +335,7 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.HealthRecords"> <update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.HealthRecords">
update t_health_records update t_health_records
set employee_id = #{employeeId,jdbcType=BIGINT}, set user_id = #{userId,jdbcType=BIGINT},
time = #{time,jdbcType=BIGINT}, time = #{time,jdbcType=BIGINT},
district = #{district,jdbcType=VARCHAR}, district = #{district,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR}, address = #{address,jdbcType=VARCHAR},

30
health/src/main/resources/mapper_raw/JourneyMapper.xml

@ -3,7 +3,7 @@
<mapper namespace="com.ccsens.health.persist.mapper.JourneyMapper"> <mapper namespace="com.ccsens.health.persist.mapper.JourneyMapper">
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.Journey"> <resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.Journey">
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> <result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="trip_mode" jdbcType="TINYINT" property="tripMode" /> <result column="trip_mode" jdbcType="TINYINT" property="tripMode" />
<result column="car_no" jdbcType="VARCHAR" property="carNo" /> <result column="car_no" jdbcType="VARCHAR" property="carNo" />
<result column="start_time" jdbcType="BIGINT" property="startTime" /> <result column="start_time" jdbcType="BIGINT" property="startTime" />
@ -74,8 +74,8 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, employee_id, trip_mode, car_no, start_time, end_time, journey_type, together, id, user_id, trip_mode, car_no, start_time, end_time, journey_type, together, self_fill,
self_fill, created_at, updated_at, rec_status created_at, updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.JourneyExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.health.bean.po.JourneyExample" resultMap="BaseResultMap">
select select
@ -108,12 +108,12 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.health.bean.po.Journey"> <insert id="insert" parameterType="com.ccsens.health.bean.po.Journey">
insert into t_journey (id, employee_id, trip_mode, insert into t_journey (id, user_id, trip_mode,
car_no, start_time, end_time, car_no, start_time, end_time,
journey_type, together, self_fill, journey_type, together, self_fill,
created_at, updated_at, rec_status created_at, updated_at, rec_status
) )
values (#{id,jdbcType=BIGINT}, #{employeeId,jdbcType=BIGINT}, #{tripMode,jdbcType=TINYINT}, values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{tripMode,jdbcType=TINYINT},
#{carNo,jdbcType=VARCHAR}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{carNo,jdbcType=VARCHAR}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT},
#{journeyType,jdbcType=TINYINT}, #{together,jdbcType=VARCHAR}, #{selfFill,jdbcType=TINYINT}, #{journeyType,jdbcType=TINYINT}, #{together,jdbcType=VARCHAR}, #{selfFill,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
@ -125,8 +125,8 @@
<if test="id != null"> <if test="id != null">
id, id,
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
employee_id, user_id,
</if> </if>
<if test="tripMode != null"> <if test="tripMode != null">
trip_mode, trip_mode,
@ -163,8 +163,8 @@
<if test="id != null"> <if test="id != null">
#{id,jdbcType=BIGINT}, #{id,jdbcType=BIGINT},
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
#{employeeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
</if> </if>
<if test="tripMode != null"> <if test="tripMode != null">
#{tripMode,jdbcType=TINYINT}, #{tripMode,jdbcType=TINYINT},
@ -210,8 +210,8 @@
<if test="record.id != null"> <if test="record.id != null">
id = #{record.id,jdbcType=BIGINT}, id = #{record.id,jdbcType=BIGINT},
</if> </if>
<if test="record.employeeId != null"> <if test="record.userId != null">
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
</if> </if>
<if test="record.tripMode != null"> <if test="record.tripMode != null">
trip_mode = #{record.tripMode,jdbcType=TINYINT}, trip_mode = #{record.tripMode,jdbcType=TINYINT},
@ -251,7 +251,7 @@
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
update t_journey update t_journey
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
trip_mode = #{record.tripMode,jdbcType=TINYINT}, trip_mode = #{record.tripMode,jdbcType=TINYINT},
car_no = #{record.carNo,jdbcType=VARCHAR}, car_no = #{record.carNo,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT}, start_time = #{record.startTime,jdbcType=BIGINT},
@ -269,8 +269,8 @@
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.Journey"> <update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.Journey">
update t_journey update t_journey
<set> <set>
<if test="employeeId != null"> <if test="userId != null">
employee_id = #{employeeId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT},
</if> </if>
<if test="tripMode != null"> <if test="tripMode != null">
trip_mode = #{tripMode,jdbcType=TINYINT}, trip_mode = #{tripMode,jdbcType=TINYINT},
@ -307,7 +307,7 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.Journey"> <update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.Journey">
update t_journey update t_journey
set employee_id = #{employeeId,jdbcType=BIGINT}, set user_id = #{userId,jdbcType=BIGINT},
trip_mode = #{tripMode,jdbcType=TINYINT}, trip_mode = #{tripMode,jdbcType=TINYINT},
car_no = #{carNo,jdbcType=VARCHAR}, car_no = #{carNo,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT}, start_time = #{startTime,jdbcType=BIGINT},

28
health/src/main/resources/mapper_raw/SiteClockInMapper.xml

@ -6,7 +6,7 @@
<result column="qrcode_id" jdbcType="BIGINT" property="qrcodeId" /> <result column="qrcode_id" jdbcType="BIGINT" property="qrcodeId" />
<result column="time" jdbcType="BIGINT" property="time" /> <result column="time" jdbcType="BIGINT" property="time" />
<result column="location" jdbcType="VARCHAR" property="location" /> <result column="location" jdbcType="VARCHAR" property="location" />
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> <result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> <result column="rec_status" jdbcType="TINYINT" property="recStatus" />
@ -70,7 +70,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, qrcode_id, time, location, employee_id, created_at, updated_at, rec_status id, qrcode_id, time, location, user_id, created_at, updated_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteClockInExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteClockInExample" resultMap="BaseResultMap">
select select
@ -104,10 +104,10 @@
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.health.bean.po.SiteClockIn"> <insert id="insert" parameterType="com.ccsens.health.bean.po.SiteClockIn">
insert into t_site_clock_in (id, qrcode_id, time, insert into t_site_clock_in (id, qrcode_id, time,
location, employee_id, created_at, location, user_id, created_at,
updated_at, rec_status) updated_at, rec_status)
values (#{id,jdbcType=BIGINT}, #{qrcodeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, values (#{id,jdbcType=BIGINT}, #{qrcodeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT},
#{location,jdbcType=VARCHAR}, #{employeeId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{location,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP},
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
</insert> </insert>
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.SiteClockIn"> <insert id="insertSelective" parameterType="com.ccsens.health.bean.po.SiteClockIn">
@ -125,8 +125,8 @@
<if test="location != null"> <if test="location != null">
location, location,
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
employee_id, user_id,
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at, created_at,
@ -151,8 +151,8 @@
<if test="location != null"> <if test="location != null">
#{location,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR},
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
#{employeeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP},
@ -186,8 +186,8 @@
<if test="record.location != null"> <if test="record.location != null">
location = #{record.location,jdbcType=VARCHAR}, location = #{record.location,jdbcType=VARCHAR},
</if> </if>
<if test="record.employeeId != null"> <if test="record.userId != null">
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
</if> </if>
<if test="record.createdAt != null"> <if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
@ -209,7 +209,7 @@
qrcode_id = #{record.qrcodeId,jdbcType=BIGINT}, qrcode_id = #{record.qrcodeId,jdbcType=BIGINT},
time = #{record.time,jdbcType=BIGINT}, time = #{record.time,jdbcType=BIGINT},
location = #{record.location,jdbcType=VARCHAR}, location = #{record.location,jdbcType=VARCHAR},
employee_id = #{record.employeeId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT} rec_status = #{record.recStatus,jdbcType=TINYINT}
@ -229,8 +229,8 @@
<if test="location != null"> <if test="location != null">
location = #{location,jdbcType=VARCHAR}, location = #{location,jdbcType=VARCHAR},
</if> </if>
<if test="employeeId != null"> <if test="userId != null">
employee_id = #{employeeId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT},
</if> </if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
@ -249,7 +249,7 @@
set qrcode_id = #{qrcodeId,jdbcType=BIGINT}, set qrcode_id = #{qrcodeId,jdbcType=BIGINT},
time = #{time,jdbcType=BIGINT}, time = #{time,jdbcType=BIGINT},
location = #{location,jdbcType=VARCHAR}, location = #{location,jdbcType=VARCHAR},
employee_id = #{employeeId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT} rec_status = #{recStatus,jdbcType=TINYINT}

28
health/src/main/resources/mapper_raw/SiteMapper.xml

@ -7,6 +7,7 @@
<result column="site_code" jdbcType="VARCHAR" property="siteCode" /> <result column="site_code" jdbcType="VARCHAR" property="siteCode" />
<result column="longitude" jdbcType="DECIMAL" property="longitude" /> <result column="longitude" jdbcType="DECIMAL" property="longitude" />
<result column="latitude" jdbcType="DECIMAL" property="latitude" /> <result column="latitude" jdbcType="DECIMAL" property="latitude" />
<result column="parent_code" jdbcType="VARCHAR" property="parentCode" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> <result column="rec_status" jdbcType="TINYINT" property="recStatus" />
@ -70,7 +71,8 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, site_name, site_code, longitude, latitude, created_at, updated_at, rec_status id, site_name, site_code, longitude, latitude, parent_code, created_at, updated_at,
rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.health.bean.po.SiteExample" resultMap="BaseResultMap">
select select
@ -104,11 +106,13 @@
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.health.bean.po.Site"> <insert id="insert" parameterType="com.ccsens.health.bean.po.Site">
insert into t_site (id, site_name, site_code, insert into t_site (id, site_name, site_code,
longitude, latitude, created_at, longitude, latitude, parent_code,
updated_at, rec_status) created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{siteName,jdbcType=VARCHAR}, #{siteCode,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{siteName,jdbcType=VARCHAR}, #{siteCode,jdbcType=VARCHAR},
#{longitude,jdbcType=DECIMAL}, #{latitude,jdbcType=DECIMAL}, #{createdAt,jdbcType=TIMESTAMP}, #{longitude,jdbcType=DECIMAL}, #{latitude,jdbcType=DECIMAL}, #{parentCode,jdbcType=VARCHAR},
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.Site"> <insert id="insertSelective" parameterType="com.ccsens.health.bean.po.Site">
insert into t_site insert into t_site
@ -128,6 +132,9 @@
<if test="latitude != null"> <if test="latitude != null">
latitude, latitude,
</if> </if>
<if test="parentCode != null">
parent_code,
</if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at, created_at,
</if> </if>
@ -154,6 +161,9 @@
<if test="latitude != null"> <if test="latitude != null">
#{latitude,jdbcType=DECIMAL}, #{latitude,jdbcType=DECIMAL},
</if> </if>
<if test="parentCode != null">
#{parentCode,jdbcType=VARCHAR},
</if>
<if test="createdAt != null"> <if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP},
</if> </if>
@ -189,6 +199,9 @@
<if test="record.latitude != null"> <if test="record.latitude != null">
latitude = #{record.latitude,jdbcType=DECIMAL}, latitude = #{record.latitude,jdbcType=DECIMAL},
</if> </if>
<if test="record.parentCode != null">
parent_code = #{record.parentCode,jdbcType=VARCHAR},
</if>
<if test="record.createdAt != null"> <if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if> </if>
@ -210,6 +223,7 @@
site_code = #{record.siteCode,jdbcType=VARCHAR}, site_code = #{record.siteCode,jdbcType=VARCHAR},
longitude = #{record.longitude,jdbcType=DECIMAL}, longitude = #{record.longitude,jdbcType=DECIMAL},
latitude = #{record.latitude,jdbcType=DECIMAL}, latitude = #{record.latitude,jdbcType=DECIMAL},
parent_code = #{record.parentCode,jdbcType=VARCHAR},
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT} rec_status = #{record.recStatus,jdbcType=TINYINT}
@ -232,6 +246,9 @@
<if test="latitude != null"> <if test="latitude != null">
latitude = #{latitude,jdbcType=DECIMAL}, latitude = #{latitude,jdbcType=DECIMAL},
</if> </if>
<if test="parentCode != null">
parent_code = #{parentCode,jdbcType=VARCHAR},
</if>
<if test="createdAt != null"> <if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
</if> </if>
@ -250,6 +267,7 @@
site_code = #{siteCode,jdbcType=VARCHAR}, site_code = #{siteCode,jdbcType=VARCHAR},
longitude = #{longitude,jdbcType=DECIMAL}, longitude = #{longitude,jdbcType=DECIMAL},
latitude = #{latitude,jdbcType=DECIMAL}, latitude = #{latitude,jdbcType=DECIMAL},
parent_code = #{parentCode,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT} rec_status = #{recStatus,jdbcType=TINYINT}

2
util/home

@ -1 +1 @@
{"errcode":41030,"errmsg":"invalid page hint: [w6QriA03971531]"} {"errcode":41030,"errmsg":"invalid page hint: [foP7da0210b464]"}

1
util/src/test/java/com/ccsens/util/Base64Test.java

@ -35,7 +35,6 @@ public class Base64Test {
@Test @Test
public void test01() throws Exception{ public void test01() throws Exception{
WxXcxUtil.getWxCode("123123","1011","home");
} }

Loading…
Cancel
Save