Merge remote-tracking branch 'origin/dev' into test

yun-zuoyi
汪云昊 5 years ago
commit 7a6137a667

@ -96,7 +96,7 @@ public class PagerHelper {
} }
int startRow = (pager.getCurrentPage() - 1) * pager.getPageSize(); int startRow = (pager.getCurrentPage() - 1) * pager.getPageSize();
pager.setStartRow(startRow == 0 ? 1 : startRow); pager.setStartRow(startRow);
int endRow; int endRow;
if (startRow + pager.getPageSize() <= rowCount) { if (startRow + pager.getPageSize() <= rowCount) {

@ -13,6 +13,7 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
@ -50,10 +51,11 @@ public class SysMessage extends BaseBean {
if (this.messageType == null) { if (this.messageType == null) {
return 0; return 0;
} else { } else {
return this.messageType.intValue(); return this.messageType;
} }
} }
@AnnoOutputColumn(refClass = ImppEnumUtil.MESSAGE_TYPE_CONTENT.class)
@Column(name = "MESSAGE_TYPE_CONTENT") @Column(name = "MESSAGE_TYPE_CONTENT")
@ApiParam(value = "消息内容类型(枚举ImppEnumUtil.MESSAGE_TYPE_CONTENT)", example = "-1") @ApiParam(value = "消息内容类型(枚举ImppEnumUtil.MESSAGE_TYPE_CONTENT)", example = "-1")
private Integer messageContentType; private Integer messageContentType;
@ -154,4 +156,16 @@ public class SysMessage extends BaseBean {
@ApiParam(value = "附件集合") @ApiParam(value = "附件集合")
private List<SysFileAttach> sysFileAttachList; private List<SysFileAttach> sysFileAttachList;
@Transient
@ApiParam(value = "附件id集合")
private List<Long> fileAttachIdList;
public void addFileAttachId(Long attachId){
if(fileAttachIdList == null){
fileAttachIdList = new ArrayList<>();
}
fileAttachIdList.add(attachId);
}
} }

@ -476,6 +476,7 @@ public class CoreHqlPack {
DdlPreparedPack.getNumEqualPack(message.getSendStatus(), "sendStatus", ddlPackBean); DdlPreparedPack.getNumEqualPack(message.getSendStatus(), "sendStatus", ddlPackBean);
DdlPreparedPack.getOrderDefault(message); DdlPreparedPack.getOrderDefault(message);
ddlPackBean.setOrderByStr(message.orderBy());
return ddlPackBean; return ddlPackBean;
} }
@ -487,6 +488,7 @@ public class CoreHqlPack {
* @return * @return
*/ */
public static DdlPackBean packHqlSysFile(SysFile file) { public static DdlPackBean packHqlSysFile(SysFile file) {
DdlPreparedPack.getOrderDefault(file);
DdlPackBean result = DdlPackBean.getDdlPackBean(file); DdlPackBean result = DdlPackBean.getDdlPackBean(file);
// hql拼接 // hql拼接

@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -120,6 +121,19 @@ public class BsSuitCaseFTP extends BaseBean {
return CommonEnumUtil.TRUE_OR_FALSE.valueOfBoolean(getIsIncrementalWriteVal()); return CommonEnumUtil.TRUE_OR_FALSE.valueOfBoolean(getIsIncrementalWriteVal());
} }
@ColumnDefault("2")
@Column(name = "IS_CHECK_FILE")
@ApiParam(value = "是否校验文件")
private Integer isCheckFile;
public boolean isCheckFile(){
return isCheckFile != null && CommonEnumUtil.TRUE_OR_FALSE.valueOfBoolean(isCheckFile);
}
@Column(name = "CHECK_FILE_PATH")
@ApiParam(value = "校验文件路径")
private String checkFilePath;
@Transient @Transient
@ApiParam(value = "临时适配路径") @ApiParam(value = "临时适配路径")
private String tempSuitFilePath; private String tempSuitFilePath;

Loading…
Cancel
Save