提交 0905

yun-zuoyi
WYnneaoapc 6 years ago
parent 546d9dc7a5
commit 61a7985afc

@ -54,6 +54,29 @@ public class DdlPreparedPack {
/** /**
* *
* *
* @param startDate
* @param endDate
* @param columnName
* @param isLeftContain
* @param isRightContain
* @param packBean HQL
*/
public static void timeBuilder(String startDate, String endDate, String columnName, boolean isLeftContain, boolean isRightContain, DdlPackBean packBean) {
if (isLeftContain) {
packBean.addColumnQuery(columnName, " and model." + columnName + " >= :m_" + columnName, startDate.trim());
} else {
packBean.addColumnQuery(columnName, " and model." + columnName + " > :m_" + columnName, startDate.trim());
}
if (isRightContain) {
packBean.addColumnQuery("s_" + columnName, " and model." + columnName + " <= :m_s_" + columnName, endDate.trim());
} else {
packBean.addColumnQuery("s_" + columnName, " and model." + columnName + " < :m_s_" + columnName, endDate.trim());
}
}
/**
*
*
* @param date * @param date
* @param columnName HQL * @param columnName HQL
* @param packBean HQL * @param packBean HQL
@ -348,6 +371,18 @@ public class DdlPreparedPack {
} }
/** /**
* String
*
* @param columnName
* @param packBean
*/
public static void getStringBiggerNotEqualPack(Object data, String columnName, DdlPackBean packBean) {
if (data != null && !StringUtils.isEmpty(String.valueOf(data))) {
packBean.addColumnQuery(columnName, " and model." + columnName + " > :m_" + columnName, data);
}
}
/**
* String * String
* *
* @param columnName * @param columnName

@ -83,4 +83,8 @@ public class MesESOP extends BaseBean {
@ApiParam("FILE_TYPE_NAME") @ApiParam("FILE_TYPE_NAME")
private String fileTypeName; private String fileTypeName;
@Column(name="SYNC_TAG")
@ApiParam("SYNC_TAG")
private Integer syncTag=0;
} }

Loading…
Cancel
Save