|
|
|
@ -24,16 +24,14 @@ public class WmsHqlPack {
|
|
|
|
|
*/
|
|
|
|
|
public static String getStringBuilderPack(BaseBean bean, StringBuffer hqlStr) {
|
|
|
|
|
|
|
|
|
|
if (hqlStr != null && hqlStr.toString().trim().length() > 0) {
|
|
|
|
|
if (StringUtils.isNotBlank(bean.getOrganizeCode())) {
|
|
|
|
|
hqlStr.append(" and model.organizeCode = " + bean.getOrganizeCode());
|
|
|
|
|
} else if (bean.getIsValid() > 0) {
|
|
|
|
|
hqlStr.append(" and model.isValid = " + bean.getIsValid());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hqlStr.append(" and model.isDeleted = " + CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue());
|
|
|
|
|
if (StringUtils.isNotBlank(bean.getOrganizeCode())) {
|
|
|
|
|
hqlStr.append(" and model.organizeCode = " + bean.getOrganizeCode());
|
|
|
|
|
} else if (bean.getIsValid() > 0) {
|
|
|
|
|
hqlStr.append(" and model.isValid = " + bean.getIsValid());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hqlStr.append(" and model.isDeleted = " + CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue());
|
|
|
|
|
|
|
|
|
|
return hqlStr.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|