parent
b1bfb38593
commit
e75fa146a2
@ -1,63 +0,0 @@
|
||||
package ${domain}.module.system.ent;
|
||||
|
||||
/**
|
||||
* Schedule - 调度任务
|
||||
*
|
||||
* @author author
|
||||
* @version 0.0.1
|
||||
* @since 2020-05-24
|
||||
*/
|
||||
public class Schedule {
|
||||
|
||||
/**
|
||||
* ID - 任务ID
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* NAME - 任务名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* NOTE - 任务描述
|
||||
*/
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* run - 运行状态
|
||||
*/
|
||||
private boolean run;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public boolean isRun() {
|
||||
return run;
|
||||
}
|
||||
|
||||
public void setRun(boolean run) {
|
||||
this.run = run;
|
||||
}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
package ${domain}.module.system.mgr;
|
||||
|
||||
import ${domain}.frame.auth.Token;
|
||||
import ${domain}.module.system.req.SequenceFindRequest;
|
||||
import ${domain}.module.system.req.SequenceNextRequest;
|
||||
import ${domain}.module.system.rsp.SequenceFindResponse;
|
||||
import ${domain}.module.system.rsp.SequenceNextResponse;
|
||||
|
||||
/**
|
||||
* 序列
|
||||
*
|
||||
* @author wangbing
|
||||
* @version 0.0.1
|
||||
* @since 2020-06-25
|
||||
*/
|
||||
public interface SequenceManager {
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*
|
||||
* @param request 请求对象
|
||||
* @param token 令牌
|
||||
* @return
|
||||
*/
|
||||
SequenceFindResponse find(SequenceFindRequest request, Token token);
|
||||
|
||||
/**
|
||||
* 获得对象
|
||||
*
|
||||
* @param request 请求对象
|
||||
* @param token 令牌
|
||||
* @return
|
||||
*/
|
||||
SequenceNextResponse next(SequenceNextRequest request, Token token);
|
||||
}
|
@ -1,153 +0,0 @@
|
||||
package ${domain}.module.system.mgr;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.github.pagehelper.util.StringUtil;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
import ${domain}.frame.auth.Token;
|
||||
import ${domain}.frame.base.ErrorType;
|
||||
import ${domain}.frame.utils.IDgenerator;
|
||||
import ${domain}.frame.utils.ValidationUtil;
|
||||
import ${domain}.module.system.ent.Sequence;
|
||||
import ${domain}.module.system.mpr.SequenceMapper;
|
||||
import ${domain}.module.system.req.SequenceFindRequest;
|
||||
import ${domain}.module.system.req.SequenceNextRequest;
|
||||
import ${domain}.module.system.rsp.SequenceFindResponse;
|
||||
import ${domain}.module.system.rsp.SequenceNextResponse;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* SEQUENCE - 序列
|
||||
*
|
||||
* @author wangbing
|
||||
* @version 0.0.1
|
||||
* @since 2020-06-25
|
||||
*/
|
||||
@Transactional
|
||||
@Service
|
||||
public class SequenceManagerImpl implements SequenceManager {
|
||||
|
||||
@Autowired
|
||||
private SequenceMapper sequenceMapper;
|
||||
|
||||
private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*
|
||||
* @param request 请求对象
|
||||
* @param token 令牌
|
||||
* @return 响应
|
||||
*/
|
||||
@Transactional(readOnly = true)
|
||||
public SequenceFindResponse find(SequenceFindRequest request, Token token) {
|
||||
SequenceFindResponse response = new SequenceFindResponse();
|
||||
|
||||
ValidationUtil.validate(request, response);
|
||||
if (response.hasError()) {
|
||||
return response;
|
||||
}
|
||||
|
||||
if (request.getPageSize() != 0) {
|
||||
PageHelper.startPage(request.getPageNumber(), request.getPageSize());
|
||||
}
|
||||
if (StringUtil.isNotEmpty(request.getSortKey())) {
|
||||
PageHelper.orderBy(request.getSortKey() + " " + request.getSortType());
|
||||
}
|
||||
PageInfo<Sequence> pageInfo = new PageInfo<>(sequenceMapper.find(request, token));
|
||||
|
||||
response.setResult(pageInfo.getList());
|
||||
response.setTotalCount(pageInfo.getTotal());
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得对象
|
||||
*
|
||||
* @param request 请求对象
|
||||
* @param token 令牌
|
||||
* @return 响应
|
||||
*/
|
||||
@Transactional(readOnly = true)
|
||||
public SequenceNextResponse next(SequenceNextRequest request, Token token) {
|
||||
SequenceNextResponse response = new SequenceNextResponse();
|
||||
|
||||
int value = 0;
|
||||
String year = null;
|
||||
String month = null;
|
||||
String date = null;
|
||||
String format = dateFormat.format(new Date());
|
||||
if (request.getByYear()) year = format.substring(0, 4);
|
||||
if (request.getByMonth()) month = format.substring(4, 6);
|
||||
if (request.getByDate()) date = format.substring(6, 8);
|
||||
|
||||
ValidationUtil.validate(request, response);
|
||||
if (response.hasError()) {
|
||||
return response;
|
||||
}
|
||||
|
||||
int retryCount = 100;
|
||||
do {
|
||||
// 首先查询是否已经开始的序列
|
||||
SequenceFindRequest sequenceFindRequest = new SequenceFindRequest();
|
||||
sequenceFindRequest.setSeqName(request.getSeqName());
|
||||
sequenceFindRequest.setYear(year);
|
||||
sequenceFindRequest.setMonth(month);
|
||||
sequenceFindRequest.setDate(date);
|
||||
SequenceFindResponse sequenceFindResponse = this.find(sequenceFindRequest, token);
|
||||
if (sequenceFindResponse.getTotalCount() > 0) {
|
||||
Sequence sequence = sequenceFindResponse.getResult().get(0);
|
||||
// 检查流水是否达到上限,达到最大值或理论最大值
|
||||
if (sequence.getNextValue() > request.getMaxValue()) {
|
||||
response.addError(ErrorType.BUSINESS_ERROR, "流水已达上限,请等待下个周期!");
|
||||
return response;
|
||||
}
|
||||
// 更新下一个流水号
|
||||
sequence.setNextValue(sequence.getNextValue() + request.getSeqStep());
|
||||
long update = sequenceMapper.update(sequence, token);
|
||||
if (update == 1) {
|
||||
value = sequence.getNextValue() - request.getSeqStep();
|
||||
break;
|
||||
}
|
||||
} else {// 未开始的序列
|
||||
Sequence forCreate = new Sequence();
|
||||
long id = IDgenerator.nextId();
|
||||
forCreate.setId(id);
|
||||
forCreate.setSeqName(request.getSeqName());
|
||||
forCreate.setSeqNote(request.getSeqNote());
|
||||
forCreate.setYear(year);
|
||||
forCreate.setMonth(month);
|
||||
forCreate.setDate(date);
|
||||
forCreate.setNextValue(request.getMinValue() + request.getSeqStep());
|
||||
long insert = sequenceMapper.insert(forCreate, token);
|
||||
if (insert == 1) {
|
||||
value = request.getMinValue();
|
||||
break;
|
||||
}
|
||||
}
|
||||
retryCount--;
|
||||
} while (value <= 0 && retryCount > 0);
|
||||
|
||||
try {
|
||||
TransactionAspectSupport.currentTransactionStatus().flush();
|
||||
} catch (Exception e) {
|
||||
response.addError(ErrorType.BUSINESS_ERROR, "生成序列失败,请稍后再试!");
|
||||
return response;
|
||||
}
|
||||
|
||||
response.setSequence(String.format(Locale.CHINA, "%s%s%s%s%0" + String.valueOf(request.getMaxValue()).length() + "d",
|
||||
request.getSeqPrefix(),
|
||||
year == null ? "" : year,
|
||||
month == null ? "" : month,
|
||||
date == null ? "" : date,
|
||||
value));
|
||||
return response;
|
||||
}
|
||||
}
|
@ -1,162 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${domain}.module.system.mpr.SequenceMapper">
|
||||
|
||||
<sql id="table">"SYS_SEQUENCE"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","SEQ_NAME","SEQ_NOTE","YEAR","MONTH","DATE","NEXT_VALUE","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="sequence" type="${domain}.module.system.ent.Sequence">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="SEQ_NAME" jdbcType="VARCHAR" property="seqName"/>
|
||||
<result column="SEQ_NOTE" jdbcType="VARCHAR" property="seqNote"/>
|
||||
<result column="YEAR" jdbcType="VARCHAR" property="year"/>
|
||||
<result column="MONTH" jdbcType="VARCHAR" property="month"/>
|
||||
<result column="DATE" jdbcType="VARCHAR" property="date"/>
|
||||
<result column="NEXT_VALUE" jdbcType="INTEGER" property="nextValue"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r'#'}{request.id},
|
||||
${r'#'}{request.seqName,jdbcType=VARCHAR},
|
||||
${r'#'}{request.seqNote,jdbcType=VARCHAR},
|
||||
${r'#'}{request.year,jdbcType=VARCHAR},
|
||||
${r'#'}{request.month,jdbcType=VARCHAR},
|
||||
${r'#'}{request.date,jdbcType=VARCHAR},
|
||||
${r'#'}{request.nextValue,jdbcType=INTEGER},
|
||||
0,
|
||||
0,
|
||||
${r'#'}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
|
||||
${r'#'}{item.id},
|
||||
${r'#'}{item.seqName,jdbcType=VARCHAR},
|
||||
${r'#'}{item.seqNote,jdbcType=VARCHAR},
|
||||
${r'#'}{item.year,jdbcType=VARCHAR},
|
||||
${r'#'}{item.month,jdbcType=VARCHAR},
|
||||
${r'#'}{item.date,jdbcType=VARCHAR},
|
||||
${r'#'}{item.nextValue,jdbcType=INTEGER},
|
||||
0,
|
||||
0,
|
||||
${r'#'}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET "IS_DELETED" = 1
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" = ${r'#'}{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteBatch">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET "IS_DELETED" = 1
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" IN
|
||||
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
|
||||
${r'#'}{item}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
"SEQ_NAME" = ${r'#'}{request.seqName,jdbcType=VARCHAR},
|
||||
"SEQ_NOTE" = ${r'#'}{request.seqNote,jdbcType=VARCHAR},
|
||||
"YEAR" = ${r'#'}{request.year,jdbcType=VARCHAR},
|
||||
"MONTH" = ${r'#'}{request.month,jdbcType=VARCHAR},
|
||||
"DATE" = ${r'#'}{request.date,jdbcType=VARCHAR},
|
||||
"NEXT_VALUE" = ${r'#'}{request.nextValue,jdbcType=INTEGER},
|
||||
"ROW_VERSION" = "ROW_VERSION" + 1,
|
||||
"LAST_UPDATE_BY" = ${r'#'}{token.userId},
|
||||
"LAST_UPDATE_TIME" = datetime('now','localtime')
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" = ${r'#'}{request.id}
|
||||
AND "ROW_VERSION" = ${r'#'}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="find" resultMap="sequence">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE "IS_DELETED" = 0
|
||||
<if test="request.seqName != null and request.seqName != ''">
|
||||
AND "SEQ_NAME" = ${r'#'}{request.seqName}
|
||||
</if>
|
||||
<if test="request.year != null and request.year != ''">
|
||||
AND "YEAR" = ${r'#'}{request.year}
|
||||
</if>
|
||||
<if test="request.month != null and request.month != ''">
|
||||
AND "MONTH" = ${r'#'}{request.month}
|
||||
</if>
|
||||
<if test="request.date != null and request.date != ''">
|
||||
AND "DATE" = ${r'#'}{request.date}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="sequence">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE "IS_DELETED" = 0
|
||||
</select>
|
||||
|
||||
<select id="getById" resultMap="sequence">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" = ${r'#'}{id}
|
||||
</select>
|
||||
|
||||
<select id="getByIds" resultMap="sequence">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" IN
|
||||
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
|
||||
${r'#'}{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
@ -1,93 +0,0 @@
|
||||
package ${domain}.module.system.req;
|
||||
|
||||
import ${domain}.frame.base.BaseFindRequest;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* SequenceFindRequest - 序列查询
|
||||
*
|
||||
* @author wangbing
|
||||
* @version 0.0.1
|
||||
* @since 2020-06-27
|
||||
*/
|
||||
public class SequenceFindRequest extends BaseFindRequest {
|
||||
|
||||
/**
|
||||
* 序列名称.
|
||||
*/
|
||||
private String seqName;
|
||||
|
||||
/**
|
||||
* 年.
|
||||
*/
|
||||
private String year;
|
||||
|
||||
/**
|
||||
* 月.
|
||||
*/
|
||||
private String month;
|
||||
|
||||
/**
|
||||
* 日.
|
||||
*/
|
||||
private String date;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
private Date startDate;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
private Date endDate;
|
||||
|
||||
public String getSeqName() {
|
||||
return this.seqName;
|
||||
}
|
||||
|
||||
public void setSeqName(String seqName) {
|
||||
this.seqName = seqName;
|
||||
}
|
||||
|
||||
public String getYear() {
|
||||
return this.year;
|
||||
}
|
||||
|
||||
public void setYear(String year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public String getMonth() {
|
||||
return this.month;
|
||||
}
|
||||
|
||||
public void setMonth(String month) {
|
||||
this.month = month;
|
||||
}
|
||||
|
||||
public String getDate() {
|
||||
return this.date;
|
||||
}
|
||||
|
||||
public void setDate(String date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public Date getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setStartDate(Date startDate) {
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
public Date getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(Date endDate) {
|
||||
this.endDate = endDate;
|
||||
}
|
||||
}
|
@ -1,136 +0,0 @@
|
||||
package ${domain}.module.system.req;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import ${domain}.frame.base.BaseRequest;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* SequenceNextRequest - 序列获取
|
||||
*
|
||||
* @author wangbing
|
||||
* @version 0.0.1
|
||||
* @since 2020-06-25
|
||||
*/
|
||||
public class SequenceNextRequest extends BaseRequest {
|
||||
|
||||
/**
|
||||
* 序列名称.
|
||||
*/
|
||||
@NotBlank(message = "[seqName]序列名称不能为空")
|
||||
@Length(min = 1, max = 50, message = "[seqName]序列名称长度不合法(1-50)")
|
||||
private String seqName;
|
||||
|
||||
/**
|
||||
* 序列备注.
|
||||
*/
|
||||
@Length(min = 0, max = 50, message = "[seqNote]序列备注长度不合法(0-50)")
|
||||
private String seqNote;
|
||||
|
||||
/**
|
||||
* 序列号前缀
|
||||
*/
|
||||
private String seqPrefix;
|
||||
|
||||
/**
|
||||
* 流水号步长
|
||||
*/
|
||||
private int seqStep = 1;
|
||||
|
||||
/**
|
||||
* 最小流水号.
|
||||
*/
|
||||
private int minValue = 1;
|
||||
|
||||
/**
|
||||
* 最大流水号.
|
||||
*/
|
||||
private int maxValue = 99999;
|
||||
|
||||
/**
|
||||
* 年.
|
||||
*/
|
||||
private boolean byYear;
|
||||
|
||||
/**
|
||||
* 月.
|
||||
*/
|
||||
private boolean byMonth;
|
||||
|
||||
/**
|
||||
* 日.
|
||||
*/
|
||||
private boolean byDate;
|
||||
|
||||
public String getSeqName() {
|
||||
return seqName;
|
||||
}
|
||||
|
||||
public void setSeqName(String seqName) {
|
||||
this.seqName = seqName;
|
||||
}
|
||||
|
||||
public String getSeqNote() {
|
||||
return seqNote;
|
||||
}
|
||||
|
||||
public void setSeqNote(String seqNote) {
|
||||
this.seqNote = seqNote;
|
||||
}
|
||||
|
||||
public void setByYear(boolean byYear) {
|
||||
this.byYear = byYear;
|
||||
}
|
||||
|
||||
public boolean getByYear() {
|
||||
return byYear;
|
||||
}
|
||||
|
||||
public boolean getByMonth() {
|
||||
return byMonth;
|
||||
}
|
||||
|
||||
public void setByMonth(boolean byMonth) {
|
||||
this.byMonth = byMonth;
|
||||
}
|
||||
|
||||
public boolean getByDate() {
|
||||
return byDate;
|
||||
}
|
||||
|
||||
public void setByDate(boolean byDate) {
|
||||
this.byDate = byDate;
|
||||
}
|
||||
|
||||
public String getSeqPrefix() {
|
||||
return seqPrefix;
|
||||
}
|
||||
|
||||
public void setSeqPrefix(String seqPrefix) {
|
||||
this.seqPrefix = seqPrefix;
|
||||
}
|
||||
|
||||
public int getSeqStep() {
|
||||
return seqStep;
|
||||
}
|
||||
|
||||
public void setSeqStep(int seqStep) {
|
||||
this.seqStep = seqStep;
|
||||
}
|
||||
|
||||
public int getMinValue() {
|
||||
return minValue;
|
||||
}
|
||||
|
||||
public void setMinValue(int minValue) {
|
||||
this.minValue = minValue;
|
||||
}
|
||||
|
||||
public int getMaxValue() {
|
||||
return maxValue;
|
||||
}
|
||||
|
||||
public void setMaxValue(int maxValue) {
|
||||
this.maxValue = maxValue;
|
||||
}
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
package ${domain}.module.system.rsp;
|
||||
|
||||
import ${domain}.frame.base.BaseFindResponse;
|
||||
import ${domain}.module.system.ent.Sequence;
|
||||
|
||||
/**
|
||||
* SequenceFindResponse - 序列
|
||||
*
|
||||
* @author wangbing
|
||||
* @version 0.0.1
|
||||
* @since 2020-06-27
|
||||
*/
|
||||
public class SequenceFindResponse extends BaseFindResponse<Sequence> {
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
package ${domain}.module.system.rsp;
|
||||
|
||||
import ${domain}.frame.base.BaseResponse;
|
||||
|
||||
/**
|
||||
* SequenceNextResponse - 序列
|
||||
*
|
||||
* @author wangbing
|
||||
* @version 0.0.1
|
||||
* @since 2020-06-25
|
||||
*/
|
||||
public class SequenceNextResponse extends BaseResponse {
|
||||
|
||||
/**
|
||||
* 序列
|
||||
*/
|
||||
private String sequence;
|
||||
|
||||
public String getSequence() {
|
||||
return sequence;
|
||||
}
|
||||
|
||||
public void setSequence(String sequence) {
|
||||
this.sequence = sequence;
|
||||
}
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
cd %cd%
|
||||
start java -Dfile.encoding=UTF-8 -jar ${projectName}-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev
|
||||
start java -Dfile.encoding=UTF-8 -jar ${project.name}-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev
|
@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
cd %cd%
|
||||
start java -Dfile.encoding=UTF-8 -jar ${projectName}-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod
|
||||
start java -Dfile.encoding=UTF-8 -jar ${project.name}-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod
|
Loading…
Reference in new issue