5.31推送
parent
7d4aff4c60
commit
5f4c1cdda1
@ -0,0 +1,124 @@
|
||||
package com.flossom.common.core.domain.ret;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class WxNursingPlanUserJoinDayRet {
|
||||
|
||||
private Long planId;
|
||||
private Integer status;
|
||||
|
||||
private Integer isDayOff;
|
||||
|
||||
private Long progressId;
|
||||
|
||||
private Long cycleId;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime startTime;
|
||||
private Long instrumentId;
|
||||
private Long modeId;
|
||||
private String instrumentName;
|
||||
private String mode;
|
||||
private String modeName;
|
||||
|
||||
private String colorCode;
|
||||
|
||||
public Long getPlanId() {
|
||||
return planId;
|
||||
}
|
||||
|
||||
public void setPlanId(Long planId) {
|
||||
this.planId = planId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getIsDayOff() {
|
||||
return isDayOff;
|
||||
}
|
||||
|
||||
public void setIsDayOff(Integer isDayOff) {
|
||||
this.isDayOff = isDayOff;
|
||||
}
|
||||
|
||||
public Long getProgressId() {
|
||||
return progressId;
|
||||
}
|
||||
|
||||
public void setProgressId(Long progressId) {
|
||||
this.progressId = progressId;
|
||||
}
|
||||
|
||||
public Long getCycleId() {
|
||||
return cycleId;
|
||||
}
|
||||
|
||||
public void setCycleId(Long cycleId) {
|
||||
this.cycleId = cycleId;
|
||||
}
|
||||
|
||||
public LocalDateTime getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(LocalDateTime startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getInstrumentId() {
|
||||
return instrumentId;
|
||||
}
|
||||
|
||||
public void setInstrumentId(Long instrumentId) {
|
||||
this.instrumentId = instrumentId;
|
||||
}
|
||||
|
||||
public Long getModeId() {
|
||||
return modeId;
|
||||
}
|
||||
|
||||
public void setModeId(Long modeId) {
|
||||
this.modeId = modeId;
|
||||
}
|
||||
|
||||
public String getInstrumentName() {
|
||||
return instrumentName;
|
||||
}
|
||||
|
||||
public void setInstrumentName(String instrumentName) {
|
||||
this.instrumentName = instrumentName;
|
||||
}
|
||||
|
||||
public String getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public void setMode(String mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public String getModeName() {
|
||||
return modeName;
|
||||
}
|
||||
|
||||
public void setModeName(String modeName) {
|
||||
this.modeName = modeName;
|
||||
}
|
||||
|
||||
public String getColorCode() {
|
||||
return colorCode;
|
||||
}
|
||||
|
||||
public void setColorCode(String colorCode) {
|
||||
this.colorCode = colorCode;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.flossom.common.core.domain.ret;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class WxNursingPlanUserJoinRet {
|
||||
private Long planId;
|
||||
private Long joinId;
|
||||
private LocalDateTime activeStartTime;
|
||||
private LocalDateTime activeEndTime;
|
||||
private LocalDateTime joinTime;
|
||||
private Integer status;
|
||||
|
||||
public Long getPlanId() {
|
||||
return planId;
|
||||
}
|
||||
|
||||
public void setPlanId(Long planId) {
|
||||
this.planId = planId;
|
||||
}
|
||||
|
||||
public Long getJoinId() {
|
||||
return joinId;
|
||||
}
|
||||
|
||||
public void setJoinId(Long joinId) {
|
||||
this.joinId = joinId;
|
||||
}
|
||||
|
||||
public LocalDateTime getActiveStartTime() {
|
||||
return activeStartTime;
|
||||
}
|
||||
|
||||
public void setActiveStartTime(LocalDateTime activeStartTime) {
|
||||
this.activeStartTime = activeStartTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getActiveEndTime() {
|
||||
return activeEndTime;
|
||||
}
|
||||
|
||||
public void setActiveEndTime(LocalDateTime activeEndTime) {
|
||||
this.activeEndTime = activeEndTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getJoinTime() {
|
||||
return joinTime;
|
||||
}
|
||||
|
||||
public void setJoinTime(LocalDateTime joinTime) {
|
||||
this.joinTime = joinTime;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,178 @@
|
||||
package com.flossom.job.domain;
|
||||
|
||||
import com.flossom.common.core.utils.StringUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 分页获取 微信公众号 的关注者用户详情
|
||||
*/
|
||||
public class OfficialAccountUserDetailRet {
|
||||
|
||||
private List<userInfoList> user_info_list;
|
||||
|
||||
private Integer errcode;
|
||||
|
||||
private String errmsg;
|
||||
|
||||
public OfficialAccountUserDetailRet() {
|
||||
}
|
||||
|
||||
public OfficialAccountUserDetailRet(List<userInfoList> user_info_list, Integer errcode, String errmsg) {
|
||||
this.user_info_list = user_info_list;
|
||||
this.errcode = errcode;
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public List<userInfoList> getUser_info_list() {
|
||||
return user_info_list;
|
||||
}
|
||||
|
||||
public void setUser_info_list(List<userInfoList> user_info_list) {
|
||||
this.user_info_list = user_info_list;
|
||||
}
|
||||
|
||||
public Integer getErrcode() {
|
||||
return errcode;
|
||||
}
|
||||
|
||||
public void setErrcode(Integer errcode) {
|
||||
this.errcode = errcode;
|
||||
}
|
||||
|
||||
public String getErrmsg() {
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
public void setErrmsg(String errmsg) {
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public Boolean isContainUnionid(String unionid) {
|
||||
for (userInfoList userInfoList : this.getUser_info_list()) {
|
||||
if (StringUtils.equals(userInfoList.getUnionid(), unionid)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public class userInfoList {
|
||||
private Integer subscribe;
|
||||
private String openid;
|
||||
private String language;
|
||||
private String subscribe_time;
|
||||
private String unionid;
|
||||
private String remark;
|
||||
private Integer groupid;
|
||||
private List<Integer> tagid_list;
|
||||
private String subscribe_scene;
|
||||
private String qr_scene;
|
||||
private String qr_scene_str;
|
||||
|
||||
public userInfoList() {
|
||||
}
|
||||
|
||||
public userInfoList(Integer subscribe, String openid, String language, String subscribe_time, String unionid, String remark, Integer groupid, List<Integer> tagid_list, String subscribe_scene, String qr_scene, String qr_scene_str) {
|
||||
this.subscribe = subscribe;
|
||||
this.openid = openid;
|
||||
this.language = language;
|
||||
this.subscribe_time = subscribe_time;
|
||||
this.unionid = unionid;
|
||||
this.remark = remark;
|
||||
this.groupid = groupid;
|
||||
this.tagid_list = tagid_list;
|
||||
this.subscribe_scene = subscribe_scene;
|
||||
this.qr_scene = qr_scene;
|
||||
this.qr_scene_str = qr_scene_str;
|
||||
}
|
||||
|
||||
public Integer getSubscribe() {
|
||||
return subscribe;
|
||||
}
|
||||
|
||||
public void setSubscribe(Integer subscribe) {
|
||||
this.subscribe = subscribe;
|
||||
}
|
||||
|
||||
public String getOpenid() {
|
||||
return openid;
|
||||
}
|
||||
|
||||
public void setOpenid(String openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public String getSubscribe_time() {
|
||||
return subscribe_time;
|
||||
}
|
||||
|
||||
public void setSubscribe_time(String subscribe_time) {
|
||||
this.subscribe_time = subscribe_time;
|
||||
}
|
||||
|
||||
public String getUnionid() {
|
||||
return unionid;
|
||||
}
|
||||
|
||||
public void setUnionid(String unionid) {
|
||||
this.unionid = unionid;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Integer getGroupid() {
|
||||
return groupid;
|
||||
}
|
||||
|
||||
public void setGroupid(Integer groupid) {
|
||||
this.groupid = groupid;
|
||||
}
|
||||
|
||||
public List<Integer> getTagid_list() {
|
||||
return tagid_list;
|
||||
}
|
||||
|
||||
public void setTagid_list(List<Integer> tagid_list) {
|
||||
this.tagid_list = tagid_list;
|
||||
}
|
||||
|
||||
public String getSubscribe_scene() {
|
||||
return subscribe_scene;
|
||||
}
|
||||
|
||||
public void setSubscribe_scene(String subscribe_scene) {
|
||||
this.subscribe_scene = subscribe_scene;
|
||||
}
|
||||
|
||||
public String getQr_scene() {
|
||||
return qr_scene;
|
||||
}
|
||||
|
||||
public void setQr_scene(String qr_scene) {
|
||||
this.qr_scene = qr_scene;
|
||||
}
|
||||
|
||||
public String getQr_scene_str() {
|
||||
return qr_scene_str;
|
||||
}
|
||||
|
||||
public void setQr_scene_str(String qr_scene_str) {
|
||||
this.qr_scene_str = qr_scene_str;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.flossom.job.domain;
|
||||
|
||||
/**
|
||||
* 获取 微信公众号关注者详情 请求对象
|
||||
*/
|
||||
public class OfficialAccountUserReq {
|
||||
private String openid;
|
||||
private String lang = "zh_CN";
|
||||
|
||||
public OfficialAccountUserReq() {
|
||||
}
|
||||
|
||||
public OfficialAccountUserReq(String openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public String getOpenid() {
|
||||
return openid;
|
||||
}
|
||||
|
||||
public void setOpenid(String openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public String getLang() {
|
||||
return lang;
|
||||
}
|
||||
|
||||
public void setLang(String lang) {
|
||||
this.lang = lang;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.flossom.job.domain;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 分页获取 微信公众号 的关注者
|
||||
*/
|
||||
public class OfficialAccountUserRet {
|
||||
|
||||
private Integer total;
|
||||
private Integer count;
|
||||
private data data;
|
||||
private String next_openid;
|
||||
private Integer errcode;
|
||||
private String errmsg;
|
||||
|
||||
public OfficialAccountUserRet() {
|
||||
}
|
||||
|
||||
public OfficialAccountUserRet(Integer total, Integer count, OfficialAccountUserRet.data data, String next_openid, Integer errcode, String errmsg) {
|
||||
this.total = total;
|
||||
this.count = count;
|
||||
this.data = data;
|
||||
this.next_openid = next_openid;
|
||||
this.errcode = errcode;
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public Integer getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(Integer total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public Integer getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(Integer count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public OfficialAccountUserRet.data getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(OfficialAccountUserRet.data data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getNext_openid() {
|
||||
return next_openid;
|
||||
}
|
||||
|
||||
public void setNext_openid(String next_openid) {
|
||||
this.next_openid = next_openid;
|
||||
}
|
||||
|
||||
public Integer getErrcode() {
|
||||
return errcode;
|
||||
}
|
||||
|
||||
public void setErrcode(Integer errcode) {
|
||||
this.errcode = errcode;
|
||||
}
|
||||
|
||||
public String getErrmsg() {
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
public void setErrmsg(String errmsg) {
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public List<String> getOpenidList() {
|
||||
return getData().getOpenid();
|
||||
}
|
||||
|
||||
class data {
|
||||
private List<String> openid;
|
||||
|
||||
public data() {
|
||||
}
|
||||
|
||||
public data(List<String> openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public List<String> getOpenid() {
|
||||
return openid;
|
||||
}
|
||||
|
||||
public void setOpenid(List<String> openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
@ -0,0 +1,18 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
wrapperVersion=3.3.1
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
|
||||
@ -0,0 +1,250 @@
|
||||
#!/bin/sh
|
||||
# ----------------------------------------------------------------------------
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Apache Maven Wrapper startup batch script, version 3.3.1
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
# JAVA_HOME - location of a JDK home dir, required when download maven via java source
|
||||
# MVNW_REPOURL - repo url base for downloading maven distribution
|
||||
# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
|
||||
# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
set -euf
|
||||
[ "${MVNW_VERBOSE-}" != debug ] || set -x
|
||||
|
||||
# OS specific support.
|
||||
native_path() { printf %s\\n "$1"; }
|
||||
case "$(uname)" in
|
||||
CYGWIN* | MINGW*)
|
||||
[ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
|
||||
native_path() { cygpath --path --windows "$1"; }
|
||||
;;
|
||||
esac
|
||||
|
||||
# set JAVACMD and JAVACCMD
|
||||
set_java_home() {
|
||||
# For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
|
||||
if [ -n "${JAVA_HOME-}" ]; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ]; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
JAVACCMD="$JAVA_HOME/jre/sh/javac"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
JAVACCMD="$JAVA_HOME/bin/javac"
|
||||
|
||||
if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
|
||||
echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
|
||||
echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
else
|
||||
JAVACMD="$(
|
||||
'set' +e
|
||||
'unset' -f command 2>/dev/null
|
||||
'command' -v java
|
||||
)" || :
|
||||
JAVACCMD="$(
|
||||
'set' +e
|
||||
'unset' -f command 2>/dev/null
|
||||
'command' -v javac
|
||||
)" || :
|
||||
|
||||
if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
|
||||
echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# hash string like Java String::hashCode
|
||||
hash_string() {
|
||||
str="${1:-}" h=0
|
||||
while [ -n "$str" ]; do
|
||||
char="${str%"${str#?}"}"
|
||||
h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
|
||||
str="${str#?}"
|
||||
done
|
||||
printf %x\\n $h
|
||||
}
|
||||
|
||||
verbose() { :; }
|
||||
[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
|
||||
|
||||
die() {
|
||||
printf %s\\n "$1" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
|
||||
while IFS="=" read -r key value; do
|
||||
case "${key-}" in
|
||||
distributionUrl) distributionUrl="${value-}" ;;
|
||||
distributionSha256Sum) distributionSha256Sum="${value-}" ;;
|
||||
esac
|
||||
done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties"
|
||||
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties"
|
||||
|
||||
case "${distributionUrl##*/}" in
|
||||
maven-mvnd-*bin.*)
|
||||
MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
|
||||
case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
|
||||
*AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
|
||||
:Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
|
||||
:Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
|
||||
:Linux*x86_64*) distributionPlatform=linux-amd64 ;;
|
||||
*)
|
||||
echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
|
||||
distributionPlatform=linux-amd64
|
||||
;;
|
||||
esac
|
||||
distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
|
||||
;;
|
||||
maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
|
||||
*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
|
||||
esac
|
||||
|
||||
# apply MVNW_REPOURL and calculate MAVEN_HOME
|
||||
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
|
||||
[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
|
||||
distributionUrlName="${distributionUrl##*/}"
|
||||
distributionUrlNameMain="${distributionUrlName%.*}"
|
||||
distributionUrlNameMain="${distributionUrlNameMain%-bin}"
|
||||
MAVEN_HOME="$HOME/.m2/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
|
||||
|
||||
exec_maven() {
|
||||
unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
|
||||
exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
|
||||
}
|
||||
|
||||
if [ -d "$MAVEN_HOME" ]; then
|
||||
verbose "found existing MAVEN_HOME at $MAVEN_HOME"
|
||||
exec_maven "$@"
|
||||
fi
|
||||
|
||||
case "${distributionUrl-}" in
|
||||
*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
|
||||
*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
|
||||
esac
|
||||
|
||||
# prepare tmp dir
|
||||
if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
|
||||
clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
|
||||
trap clean HUP INT TERM EXIT
|
||||
else
|
||||
die "cannot create temp dir"
|
||||
fi
|
||||
|
||||
mkdir -p -- "${MAVEN_HOME%/*}"
|
||||
|
||||
# Download and Install Apache Maven
|
||||
verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
|
||||
verbose "Downloading from: $distributionUrl"
|
||||
verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
|
||||
|
||||
# select .zip or .tar.gz
|
||||
if ! command -v unzip >/dev/null; then
|
||||
distributionUrl="${distributionUrl%.zip}.tar.gz"
|
||||
distributionUrlName="${distributionUrl##*/}"
|
||||
fi
|
||||
|
||||
# verbose opt
|
||||
__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
|
||||
[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
|
||||
|
||||
# normalize http auth
|
||||
case "${MVNW_PASSWORD:+has-password}" in
|
||||
'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
|
||||
has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
|
||||
esac
|
||||
|
||||
if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
|
||||
verbose "Found wget ... using wget"
|
||||
wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
|
||||
elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
|
||||
verbose "Found curl ... using curl"
|
||||
curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
|
||||
elif set_java_home; then
|
||||
verbose "Falling back to use Java to download"
|
||||
javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
|
||||
targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
|
||||
cat >"$javaSource" <<-END
|
||||
public class Downloader extends java.net.Authenticator
|
||||
{
|
||||
protected java.net.PasswordAuthentication getPasswordAuthentication()
|
||||
{
|
||||
return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
|
||||
}
|
||||
public static void main( String[] args ) throws Exception
|
||||
{
|
||||
setDefault( new Downloader() );
|
||||
java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
|
||||
}
|
||||
}
|
||||
END
|
||||
# For Cygwin/MinGW, switch paths to Windows format before running javac and java
|
||||
verbose " - Compiling Downloader.java ..."
|
||||
"$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
|
||||
verbose " - Running Downloader.java ..."
|
||||
"$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
|
||||
fi
|
||||
|
||||
# If specified, validate the SHA-256 sum of the Maven distribution zip file
|
||||
if [ -n "${distributionSha256Sum-}" ]; then
|
||||
distributionSha256Result=false
|
||||
if [ "$MVN_CMD" = mvnd.sh ]; then
|
||||
echo "Checksum validation is not supported for maven-mvnd." >&2
|
||||
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
|
||||
exit 1
|
||||
elif command -v sha256sum >/dev/null; then
|
||||
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then
|
||||
distributionSha256Result=true
|
||||
fi
|
||||
elif command -v shasum >/dev/null; then
|
||||
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
|
||||
distributionSha256Result=true
|
||||
fi
|
||||
else
|
||||
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
|
||||
echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ $distributionSha256Result = false ]; then
|
||||
echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
|
||||
echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# unzip and move
|
||||
if command -v unzip >/dev/null; then
|
||||
unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
|
||||
else
|
||||
tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
|
||||
fi
|
||||
printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url"
|
||||
mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
|
||||
|
||||
clean || :
|
||||
exec_maven "$@"
|
||||
@ -0,0 +1,146 @@
|
||||
<# : batch portion
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Licensed to the Apache Software Foundation (ASF) under one
|
||||
@REM or more contributor license agreements. See the NOTICE file
|
||||
@REM distributed with this work for additional information
|
||||
@REM regarding copyright ownership. The ASF licenses this file
|
||||
@REM to you under the Apache License, Version 2.0 (the
|
||||
@REM "License"); you may not use this file except in compliance
|
||||
@REM with the License. You may obtain a copy of the License at
|
||||
@REM
|
||||
@REM https://www.apache.org/licenses/LICENSE-2.0
|
||||
@REM
|
||||
@REM Unless required by applicable law or agreed to in writing,
|
||||
@REM software distributed under the License is distributed on an
|
||||
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
@REM KIND, either express or implied. See the License for the
|
||||
@REM specific language governing permissions and limitations
|
||||
@REM under the License.
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Apache Maven Wrapper startup batch script, version 3.3.1
|
||||
@REM
|
||||
@REM Optional ENV vars
|
||||
@REM MVNW_REPOURL - repo url base for downloading maven distribution
|
||||
@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
|
||||
@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
|
||||
@SET __MVNW_CMD__=
|
||||
@SET __MVNW_ERROR__=
|
||||
@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
|
||||
@SET PSModulePath=
|
||||
@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
|
||||
IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
|
||||
)
|
||||
@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
|
||||
@SET __MVNW_PSMODULEP_SAVE=
|
||||
@SET __MVNW_ARG0_NAME__=
|
||||
@SET MVNW_USERNAME=
|
||||
@SET MVNW_PASSWORD=
|
||||
@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
|
||||
@echo Cannot start maven from wrapper >&2 && exit /b 1
|
||||
@GOTO :EOF
|
||||
: end batch / begin powershell #>
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
if ($env:MVNW_VERBOSE -eq "true") {
|
||||
$VerbosePreference = "Continue"
|
||||
}
|
||||
|
||||
# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
|
||||
$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
|
||||
if (!$distributionUrl) {
|
||||
Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
|
||||
}
|
||||
|
||||
switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
|
||||
"maven-mvnd-*" {
|
||||
$USE_MVND = $true
|
||||
$distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
|
||||
$MVN_CMD = "mvnd.cmd"
|
||||
break
|
||||
}
|
||||
default {
|
||||
$USE_MVND = $false
|
||||
$MVN_CMD = $script -replace '^mvnw','mvn'
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
# apply MVNW_REPOURL and calculate MAVEN_HOME
|
||||
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
|
||||
if ($env:MVNW_REPOURL) {
|
||||
$MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" }
|
||||
$distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')"
|
||||
}
|
||||
$distributionUrlName = $distributionUrl -replace '^.*/',''
|
||||
$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
|
||||
$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain"
|
||||
$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
|
||||
$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
|
||||
|
||||
if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
|
||||
Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
|
||||
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
|
||||
exit $?
|
||||
}
|
||||
|
||||
if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
|
||||
Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
|
||||
}
|
||||
|
||||
# prepare tmp dir
|
||||
$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
|
||||
$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
|
||||
$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
|
||||
trap {
|
||||
if ($TMP_DOWNLOAD_DIR.Exists) {
|
||||
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
|
||||
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
|
||||
}
|
||||
}
|
||||
|
||||
New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
|
||||
|
||||
# Download and Install Apache Maven
|
||||
Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
|
||||
Write-Verbose "Downloading from: $distributionUrl"
|
||||
Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
|
||||
|
||||
$webclient = New-Object System.Net.WebClient
|
||||
if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
|
||||
$webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
|
||||
}
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
|
||||
|
||||
# If specified, validate the SHA-256 sum of the Maven distribution zip file
|
||||
$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
|
||||
if ($distributionSha256Sum) {
|
||||
if ($USE_MVND) {
|
||||
Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
|
||||
}
|
||||
Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
|
||||
if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
|
||||
Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
|
||||
}
|
||||
}
|
||||
|
||||
# unzip and move
|
||||
Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
|
||||
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null
|
||||
try {
|
||||
Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
|
||||
} catch {
|
||||
if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
|
||||
Write-Error "fail to move MAVEN_HOME"
|
||||
}
|
||||
} finally {
|
||||
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
|
||||
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
|
||||
}
|
||||
|
||||
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
|
||||
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.example</groupId>
|
||||
<artifactId>flossom-transfer</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>flossom-transfer</name>
|
||||
<description>flossom-transfer</description>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<spring-boot.version>3.3.0</spring-boot.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
|
||||
<version>4.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||||
<version>3.5.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid-spring-boot-starter</artifactId>
|
||||
<version>1.2.23</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>${java.version}</source>
|
||||
<target>${java.version}</target>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>public</id>
|
||||
<name>aliyun nexus</name>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>public</id>
|
||||
<name>aliyun nexus</name>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</project>
|
||||
@ -0,0 +1,15 @@
|
||||
package com.flossom.transfer;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan(basePackages = "com.flossom.transfer.*.mapper")
|
||||
public class FlossomTransferApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(FlossomTransferApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.flossom.transfer.original.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 活动打卡人员设置对象 hz_activity_add_condition
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Data
|
||||
@TableName("hz_activity_add_condition")
|
||||
public class HzActivityAddCondition implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 1企微标签 2小程序标签 3购买渠道
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 活动id
|
||||
*/
|
||||
private Long activityId;
|
||||
|
||||
/**
|
||||
* 标识id
|
||||
*/
|
||||
private Long cateId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.flossom.transfer.original.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 护理计划信息对象 hz_activity_care_plan
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Data
|
||||
@TableName("hz_activity_care_plan")
|
||||
public class HzActivityCarePlan implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 活动ID
|
||||
*/
|
||||
private Long activityId;
|
||||
|
||||
/**
|
||||
* 计划天数
|
||||
*/
|
||||
private Long totalDay;
|
||||
|
||||
/**
|
||||
* 计划前言
|
||||
*/
|
||||
private String prefaceBanner;
|
||||
|
||||
/**
|
||||
* 参与模式 1.终身 2.每月 3.每年
|
||||
*/
|
||||
private Long joinMode;
|
||||
|
||||
/**
|
||||
* 参与次数
|
||||
*/
|
||||
private Long joinTimes;
|
||||
|
||||
/**
|
||||
* 奖励模式 1.终身 2.每月 3.每年
|
||||
*/
|
||||
private Long giftMode;
|
||||
|
||||
/**
|
||||
* 奖励次数
|
||||
*/
|
||||
private Long giftTimes;
|
||||
|
||||
/**
|
||||
* 日程设置
|
||||
*/
|
||||
private String daySetting;
|
||||
|
||||
/**
|
||||
* 循环次数
|
||||
*/
|
||||
private Long circleTimes;
|
||||
|
||||
/**
|
||||
* 日程名称
|
||||
*/
|
||||
private String dayName;
|
||||
|
||||
/**
|
||||
* 任务奖励
|
||||
*/
|
||||
private String giftInfo;
|
||||
|
||||
/**
|
||||
* 护理前问卷
|
||||
*/
|
||||
private String precheckSojumpPath;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.flossom.transfer.original.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 hz_activity_clock_times
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Data
|
||||
@TableName("hz_activity_clock_times")
|
||||
public class HzActivityClockTimes implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 仪器id
|
||||
*/
|
||||
private Long instrumentId;
|
||||
|
||||
/**
|
||||
* 1脸部 2眼部 模式id
|
||||
*/
|
||||
private Long type;
|
||||
|
||||
/**
|
||||
* 小时
|
||||
*/
|
||||
private Long hour;
|
||||
|
||||
/**
|
||||
* 分钟
|
||||
*/
|
||||
private Long minute;
|
||||
|
||||
/**
|
||||
* 秒
|
||||
*/
|
||||
private Long second;
|
||||
|
||||
/**
|
||||
* 打卡时间
|
||||
*/
|
||||
private Date addtime;
|
||||
|
||||
/**
|
||||
* 打卡id
|
||||
*/
|
||||
private Long clockId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 场景id
|
||||
*/
|
||||
private Long screneId;
|
||||
|
||||
/**
|
||||
* 场景名称
|
||||
*/
|
||||
private String screneName;
|
||||
|
||||
/**
|
||||
* 脸部场景挡位
|
||||
*/
|
||||
private Long modelFaceWard;
|
||||
|
||||
/**
|
||||
* 脸部场景使用时长
|
||||
*/
|
||||
private Long modelFaceUse;
|
||||
|
||||
/**
|
||||
* 脸部模式类型
|
||||
*/
|
||||
private Long modelFaceType;
|
||||
|
||||
/**
|
||||
* 眼部场景挡位
|
||||
*/
|
||||
private Long modelEyeWard;
|
||||
|
||||
/**
|
||||
* 眼部场景使用时长
|
||||
*/
|
||||
private Long modelEyeUse;
|
||||
|
||||
/**
|
||||
* 眼部模式类型
|
||||
*/
|
||||
private Long modelEyeType;
|
||||
|
||||
/**
|
||||
* led模式使用时长
|
||||
*/
|
||||
private Long modelLedUse;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package com.flossom.transfer.original.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户活动参与对象 hz_activity_user
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Data
|
||||
@TableName("hz_activity_user")
|
||||
public class HzActivityUser implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 活动id
|
||||
*/
|
||||
private Long activityId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Date addtime;
|
||||
|
||||
/**
|
||||
* 1审核中2未通过3已通过4参与中
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 仪器id
|
||||
*/
|
||||
private Long instrumentId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,122 @@
|
||||
package com.flossom.transfer.original.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户权限禁用 活动规则是否已读对象 hz_user_permission_log
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Data
|
||||
@TableName("hz_user_permission_log")
|
||||
public class HzUserPermissionLog implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 1禁止打卡 2禁止参与活动 3活动规则已读处理
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 活动id
|
||||
*/
|
||||
private Long activeId;
|
||||
|
||||
/**
|
||||
* 参与时间
|
||||
*/
|
||||
private Date addtime;
|
||||
|
||||
/**
|
||||
* 1参与中 2审核通过 3审核失败 4过期 5审核中 6终止
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 仪器id
|
||||
*/
|
||||
private String instrumentId;
|
||||
|
||||
/**
|
||||
* 活动类型1打卡活动 2线上活动问卷活动 3线上活动企微活动 4共创-使用反馈 5共创-共创话题
|
||||
*/
|
||||
private Long activeType;
|
||||
|
||||
/**
|
||||
* 问卷星id
|
||||
*/
|
||||
private Long sojumpId;
|
||||
|
||||
/**
|
||||
* 奖励积分
|
||||
*/
|
||||
private BigDecimal credit;
|
||||
|
||||
/**
|
||||
* 跳转appid
|
||||
*/
|
||||
private String skipAppid;
|
||||
|
||||
/**
|
||||
* 跳转路径
|
||||
*/
|
||||
private String skipPath;
|
||||
|
||||
/**
|
||||
* appid
|
||||
*/
|
||||
private String appid;
|
||||
|
||||
/**
|
||||
* 路径
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private String json;
|
||||
|
||||
/**
|
||||
* 1不需要提示 2需要提示
|
||||
*/
|
||||
private Integer hint;
|
||||
|
||||
/**
|
||||
* 提示时间
|
||||
*/
|
||||
private String tipTime;
|
||||
|
||||
/**
|
||||
* 1不需要提示 2需要提示
|
||||
*/
|
||||
private Integer wcHint;
|
||||
|
||||
/**
|
||||
* 实物奖励是否点击 2是
|
||||
*/
|
||||
private Integer isClickObject;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzActivityAddCondition;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzActivityAddConditionMapper extends BaseMapper<HzActivityAddCondition> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzActivityCarePlan;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzActivityCarePlanMapper extends BaseMapper<HzActivityCarePlan> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzActivityClock;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzActivityClockMapper extends BaseMapper<HzActivityClock> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzActivityClockTimes;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzActivityClockTimesMapper extends BaseMapper<HzActivityClockTimes> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzActivity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzActivityMapper extends BaseMapper<HzActivity> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzActivityUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzActivityUserMapper extends BaseMapper<HzActivityUser> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.original.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.original.domain.HzUserPermissionLog;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("slave")
|
||||
@Mapper
|
||||
public interface HzUserPermissionLogMapper extends BaseMapper<HzUserPermissionLog> {
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* Entity基类
|
||||
*
|
||||
* @author flossom
|
||||
*/
|
||||
@Data
|
||||
public class BaseEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 日化产品信息对象 wx_daily_care_products
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_daily_care_products")
|
||||
public class WxDailyCareProducts extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 日化产品名称
|
||||
*/
|
||||
private String productName;
|
||||
|
||||
/**
|
||||
* 日化产品图片
|
||||
*/
|
||||
private String productImg;
|
||||
|
||||
/**
|
||||
* 介绍文案
|
||||
*/
|
||||
private String introduce;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,215 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 护理计划对象 wx_nursing_plan
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan")
|
||||
public class WxNursingPlan extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 显示顺序
|
||||
*/
|
||||
private Long orderNum;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 封面图片
|
||||
*/
|
||||
private String banner;
|
||||
|
||||
/**
|
||||
* 活动详情图
|
||||
*/
|
||||
private String detailChart;
|
||||
|
||||
/**
|
||||
* 活动开始时间
|
||||
*/
|
||||
private LocalDateTime activeStartTime;
|
||||
|
||||
/**
|
||||
* 活动结束时间
|
||||
*/
|
||||
private LocalDateTime activeEndTime;
|
||||
|
||||
/**
|
||||
* 日程循环次数
|
||||
*/
|
||||
private Long cycleNumber;
|
||||
|
||||
/**
|
||||
* 参与限制时间间隔 1每月 2每年 3终生
|
||||
*/
|
||||
private Long restrictTime;
|
||||
|
||||
/**
|
||||
* 参与限制次数
|
||||
*/
|
||||
private Long restrictNumber;
|
||||
|
||||
/**
|
||||
* 用户注册开始时间
|
||||
*/
|
||||
private LocalDateTime userRegistrationStartTime;
|
||||
|
||||
/**
|
||||
* 用户注册结束时间
|
||||
*/
|
||||
private LocalDateTime userRegistrationEndTime;
|
||||
|
||||
/**
|
||||
* 话术主键
|
||||
*/
|
||||
private Long scriptId;
|
||||
|
||||
/**
|
||||
* 是否需要审核 1是 0否
|
||||
*/
|
||||
private Long isExamine;
|
||||
|
||||
/**
|
||||
* 是否有计划奖励 1是 0否
|
||||
*/
|
||||
private Long isReward;
|
||||
|
||||
/**
|
||||
* 奖励类型 1积分 2实物 3跳转奖励
|
||||
*/
|
||||
private String rewardType;
|
||||
|
||||
/**
|
||||
* 奖品名称
|
||||
*/
|
||||
private String prizeName;
|
||||
|
||||
/**
|
||||
* 奖励积分
|
||||
*/
|
||||
private Long rewardPoints;
|
||||
|
||||
/**
|
||||
* 小程序appid
|
||||
*/
|
||||
private String wxAppid;
|
||||
|
||||
/**
|
||||
* 奖励实物路径
|
||||
*/
|
||||
private String rewardEntityUrl;
|
||||
|
||||
/**
|
||||
* 奖励跳转类型 1跳转内部链接、3跳转外部链接、4跳转小程序、5导向视频号、6导向视频号直播间
|
||||
*/
|
||||
private Long rewardJumpType;
|
||||
|
||||
/**
|
||||
* 奖励跳转外部路径
|
||||
*/
|
||||
private String rewardJumpWithoutUrl;
|
||||
|
||||
/**
|
||||
* 奖励跳转路径
|
||||
*/
|
||||
private String rewardJumpUrl;
|
||||
|
||||
/**
|
||||
* 奖励跳转参数
|
||||
*/
|
||||
private String rewardJumpParam;
|
||||
|
||||
/**
|
||||
* 奖励跳转标题
|
||||
*/
|
||||
private String rewardJumpTitle;
|
||||
|
||||
/**
|
||||
* 奖励跳转内容
|
||||
*/
|
||||
private String rewardJumpContent;
|
||||
|
||||
/**
|
||||
* 奖励跳转视频号id
|
||||
*/
|
||||
private String rewardJumpVideoId;
|
||||
|
||||
/**
|
||||
* 奖励跳转视频号feedId
|
||||
*/
|
||||
private String rewardJumpVideoFeedId;
|
||||
|
||||
/**
|
||||
* 领取奖励的护理天数
|
||||
*/
|
||||
private Long rewardConditions;
|
||||
|
||||
/**
|
||||
* 获取奖励间隔时间 1每月 2每年 3终生
|
||||
*/
|
||||
private Long rewardRestrictTime;
|
||||
|
||||
/**
|
||||
* 获取奖励次数
|
||||
*/
|
||||
private Long rewardRestrictNumber;
|
||||
|
||||
/**
|
||||
* 基础参与人数
|
||||
*/
|
||||
private Long basicNumber;
|
||||
|
||||
/**
|
||||
* 是否定制计划问卷星链接 1是 0否
|
||||
*/
|
||||
private Long isSurvey;
|
||||
|
||||
/**
|
||||
* 定制计划星卷问卷地址
|
||||
*/
|
||||
private String surveyUrl;
|
||||
|
||||
/**
|
||||
* 是否奖励登记问卷星链接 1是 0否
|
||||
*/
|
||||
private Long isSurveyReward;
|
||||
|
||||
/**
|
||||
* 奖励登记星卷问卷地址
|
||||
*/
|
||||
private String surveyRewardUrl;
|
||||
|
||||
/**
|
||||
* 活动详情
|
||||
*/
|
||||
private String activeDetail;
|
||||
|
||||
/**
|
||||
* 状态 0隐藏中 1发布中 2已结束 3暂停中
|
||||
*/
|
||||
private Long status;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 护理计划日程对象 wx_nursing_plan_cycle
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_cycle")
|
||||
public class WxNursingPlanCycle extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 护理计划主键
|
||||
*/
|
||||
private Long planId;
|
||||
|
||||
/**
|
||||
* 日程名称
|
||||
*/
|
||||
private String cycleName;
|
||||
|
||||
/**
|
||||
* 日程标记
|
||||
*/
|
||||
private Long cycleMarker;
|
||||
|
||||
/**
|
||||
* 定制计划问卷星分值最小值
|
||||
*/
|
||||
private Long surveyMin;
|
||||
|
||||
/**
|
||||
* 定制计划问卷星分值最大值
|
||||
*/
|
||||
private Long surveyMax;
|
||||
|
||||
/**
|
||||
* 是否显示单日程结束后问卷 1是 0否
|
||||
*/
|
||||
private Long optionShow;
|
||||
|
||||
/**
|
||||
* 单日程结束问卷标题
|
||||
*/
|
||||
private String optionTitle;
|
||||
|
||||
/**
|
||||
* 单日程结束问卷的json内容
|
||||
*/
|
||||
private String optionContent;
|
||||
|
||||
/**
|
||||
* 顺序
|
||||
*/
|
||||
private Long index;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 护理计划日程详情对象 wx_nursing_plan_cycle_detail
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_cycle_detail")
|
||||
public class WxNursingPlanCycleDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 日程主键
|
||||
*/
|
||||
private Long cycleId;
|
||||
|
||||
/**
|
||||
* 天数
|
||||
*/
|
||||
private Long day;
|
||||
|
||||
/**
|
||||
* 是否休息日 1是 0否
|
||||
*/
|
||||
private Long isDayOff;
|
||||
|
||||
/**
|
||||
* 护理前弹窗是否展示 1是 0否
|
||||
*/
|
||||
private Long useIsShow;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 护理计划日程详情对象 wx_nursing_plan_cycle_detail_step
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_cycle_detail_step")
|
||||
public class WxNursingPlanCycleDetailStep extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/** 日程主键 */
|
||||
private Long cycleId;
|
||||
|
||||
/** 日程详情主键 */
|
||||
private Long cycleDetailId;
|
||||
|
||||
/** 分类 */
|
||||
private Long stepType;
|
||||
|
||||
/** 顺序 */
|
||||
private Long index;
|
||||
|
||||
/** 日化产品id */
|
||||
private Long productId;
|
||||
|
||||
/** 仪器id */
|
||||
private Long instrumentId;
|
||||
|
||||
/** 模式id */
|
||||
private Long modeId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 护理计划与仪器关联对象 wx_nursing_plan_instrument
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_instrument")
|
||||
public class WxNursingPlanInstrument extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 护理计划主键
|
||||
*/
|
||||
private Long planId;
|
||||
|
||||
/**
|
||||
* 仪器主键
|
||||
*/
|
||||
private Long instrumentId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 用户参加护理计划对象 wx_nursing_plan_join
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_join")
|
||||
public class WxNursingPlanJoin extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 护理计划主键
|
||||
*/
|
||||
private Long planId;
|
||||
|
||||
/**
|
||||
* 用户主键
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 状态 1参与中 2待审核 3审核通过 4审核未通过 5已终止 6已过期 7已结束
|
||||
*/
|
||||
private Long status;
|
||||
|
||||
/**
|
||||
* 奖励json
|
||||
*/
|
||||
private String rewardJson;
|
||||
|
||||
/**
|
||||
* 是否有积分奖励
|
||||
*/
|
||||
private Long isPointsReward;
|
||||
|
||||
/**
|
||||
* 是否获得计划奖励(积分)
|
||||
*/
|
||||
private Long isSetReward;
|
||||
|
||||
/**
|
||||
* 是否填写奖励登记星卷问卷
|
||||
*/
|
||||
private Long isWriteSurvey;
|
||||
|
||||
/**
|
||||
* 奖励登记问卷json参数
|
||||
*/
|
||||
private String rewardSurveyJson;
|
||||
|
||||
/**
|
||||
* 是否提醒
|
||||
*/
|
||||
private Long isWarn;
|
||||
|
||||
/**
|
||||
* 定制计划问卷json参数
|
||||
*/
|
||||
private String surveyJson;
|
||||
|
||||
/**
|
||||
* 定制计划问卷星问卷星值
|
||||
*/
|
||||
private Long surveyNumber;
|
||||
|
||||
/**
|
||||
* 周期完成次数
|
||||
*/
|
||||
private Long cycleNumber;
|
||||
|
||||
/**
|
||||
* 是否等待周期循环
|
||||
*/
|
||||
private Long isAwaitCycle;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户参加护理计划进度对象 wx_nursing_plan_join_progress
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_join_progress")
|
||||
public class WxNursingPlanJoinProgress extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 护理计划主键
|
||||
*/
|
||||
private Long planJoinId;
|
||||
|
||||
/**
|
||||
* 用户主键
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 执行原定护理日程的天数
|
||||
*/
|
||||
private Long joinDay;
|
||||
|
||||
/**
|
||||
* 实际开始护理的时间
|
||||
*/
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 原定护理计划的json参数
|
||||
*/
|
||||
private String dayCycleParams;
|
||||
|
||||
/**
|
||||
* 状态 1完成 0未完成 -1已过期
|
||||
*/
|
||||
private Long status;
|
||||
|
||||
/**
|
||||
* 护理计划主键
|
||||
*/
|
||||
private Long planId;
|
||||
|
||||
/**
|
||||
* 日程标记
|
||||
*/
|
||||
private Long cycleMarker;
|
||||
|
||||
/**
|
||||
* 日程id
|
||||
*/
|
||||
private Long cycleId;
|
||||
|
||||
/**
|
||||
* 下次护理计划提醒时间
|
||||
*/
|
||||
private LocalDateTime nextTime;
|
||||
|
||||
/**
|
||||
* 是否休息日 1是 0否
|
||||
*/
|
||||
private Long isDayOff;
|
||||
|
||||
/**
|
||||
* 护理前弹窗是否展示 1是 0否
|
||||
*/
|
||||
private Long useIsShow;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.flossom.transfer.target.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 用户参加护理计划每日详情对象 wx_nursing_plan_join_progress_detail
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("wx_nursing_plan_join_progress_detail")
|
||||
public class WxNursingPlanJoinProgressDetail extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/** 护理进度主键 */
|
||||
private Long progressId;
|
||||
|
||||
/** 用户主键 */
|
||||
private Long userId;
|
||||
|
||||
/** step分类 */
|
||||
private Long stepType;
|
||||
|
||||
/** 顺序 */
|
||||
private Long index;
|
||||
|
||||
/** 日化产品id */
|
||||
private Long productId;
|
||||
|
||||
/** 仪器id */
|
||||
private Long instrumentId;
|
||||
|
||||
/** 模式id */
|
||||
private Long modeId;
|
||||
|
||||
/** 护理记录id */
|
||||
private Long logId;
|
||||
|
||||
/** 状态 1完成 0未完成 -1过期 */
|
||||
private Long status;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxDailyCareProducts;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxDailyCareProductsMapper extends BaseMapper<WxDailyCareProducts> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanCycleDetail;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanCycleDetailMapper extends BaseMapper<WxNursingPlanCycleDetail> {
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanCycleDetailStep;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanCycleDetailStepMapper extends BaseMapper<WxNursingPlanCycleDetailStep> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanCycle;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanCycleMapper extends BaseMapper<WxNursingPlanCycle> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanInstrument;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanInstrumentMapper extends BaseMapper<WxNursingPlanInstrument> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanJoin;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanJoinMapper extends BaseMapper<WxNursingPlanJoin> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanJoinProgressDetail;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanJoinProgressDetailMapper extends BaseMapper<WxNursingPlanJoinProgressDetail> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanJoinProgress;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanJoinProgressMapper extends BaseMapper<WxNursingPlanJoinProgress> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlan;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanMapper extends BaseMapper<WxNursingPlan> {
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.flossom.transfer.target.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.flossom.transfer.target.domain.WxNursingPlanTag;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@DS("master")
|
||||
@Mapper
|
||||
public interface WxNursingPlanTagMapper extends BaseMapper<WxNursingPlanTag> {
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
server:
|
||||
port: 8087
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: flossom-transfer
|
||||
datasource:
|
||||
dynamic:
|
||||
primary: master #设置默认的数据源或者数据源组,默认值即为master
|
||||
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
||||
datasource:
|
||||
master:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
url: jdbc:mysql://110.41.134.131:3306/uat-flossom2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: YQGZxh#m0ss
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
slave:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
||||
url: jdbc:mysql://110.41.134.131:3306/pro-flossom?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: YQGZxh#m0ss
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
|
||||
mybatis-plus:
|
||||
type-aliases-package: com.flossom.transfer.*.domain
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
@ -0,0 +1,30 @@
|
||||
package com.flossom.transfer;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.flossom.transfer.original.mapper.HzActivityMapper;
|
||||
import com.flossom.transfer.target.mapper.WxNursingPlanMapper;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@Log4j2
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class DaoTransferTest {
|
||||
|
||||
@Autowired
|
||||
private HzActivityMapper hzActivityMapper;
|
||||
@Autowired
|
||||
private WxNursingPlanMapper wxNursingPlanMapper;
|
||||
|
||||
@Test
|
||||
public void db_test(){
|
||||
long count = hzActivityMapper.selectCount(new QueryWrapper<>());
|
||||
long _count =wxNursingPlanMapper.selectCount(new QueryWrapper<>());
|
||||
log.info("输出="+count);
|
||||
log.info("输出="+_count);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue