@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.platform.bean ;
import cn.estsh.i3plus.pojo.base.bean.BaseBean ;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil ;
import cn.estsh.i3plus.pojo.base.enumutil.ImppEnumUtil ;
import com.fasterxml.jackson.databind.annotation.JsonSerialize ;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer ;
import io.swagger.annotations.Api ;
@ -13,6 +15,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.Table ;
import javax.persistence.Transient ;
/ * *
* @Description : 单 号 规 则
@ -58,20 +61,36 @@ public class SysOrderNoRule extends BaseBean {
private Long serialNoLength ;
@Column ( name = "IS_CYCLE" )
@ApiParam ( value = "达到最大值后是否循环" , example = "1" )
@ApiParam ( value = "达到最大值后是否循环" , example = "1" ,hidden = true )
private Integer isCycle ;
@Transient
@ApiParam ( value = "达到最大值后是否循环" , example = "否" )
private String isCycleName ;
public String getIsCycleName ( ) {
if ( isCycle ! = null ) {
CommonEnumUtil . TRUE_OR_FALSE . valueOf ( isCycle ) ;
}
return isCycleName ;
}
public void setIsCycleName ( String isCycleName ) {
this . isCycleName = isCycleName ;
this . isCycle = CommonEnumUtil . TRUE_OR_FALSE . descOf ( isCycleName ) ;
}
@Column ( name = "SERIAL_NO" )
@ApiParam ( value = "当前流水号" , example = "-1" )
@ApiParam ( value = "当前流水号" , example = "-1" ,hidden = true )
@JsonSerialize ( using = ToStringSerializer . class )
private Long serialNo ;
@Column ( name = "ORDER_NO" )
@ApiParam ( value = "当前单号" )
@ApiParam ( value = "当前单号" ,hidden = true )
private String orderNo ;
@Column ( name = "ORDER_NO_RULE_STATUS" )
@ApiParam ( value = "单号规则状态" )
@ApiParam ( value = "单号规则状态" ,hidden = true )
private Integer orderNoRuleStatus ;
@Column ( name = "ORDER_NO_RULE_DESCRIPTION" )