Wms动态搜索与自定义列表,表单开发

yun-zuoyi
袁津哲 6 years ago
parent 031d57e081
commit 4e0f40042a

@ -25,8 +25,8 @@ import javax.persistence.Table;
@Table(name="WMS_SEARCHELEMENT_FUNCTION", indexes = {
@Index(columnList = "FUNCTION_ID"),
@Index(columnList = "SEARCH_ELEMENT_ID"),
@Index(columnList = "IS_SHARE"),
@Index(columnList = "USER_CODE")
@Index(columnList = "USER_CODE"),
@Index(columnList = "SEARCH_NAME")
})
@DynamicInsert
@DynamicUpdate
@ -56,7 +56,14 @@ public class WmsSearchElementFunction extends BaseBean {
@ApiParam(value = "用户编号")
private String userCode;
/**
* 1-2-
*/
@Column(name = "IS_SHARE")
@ApiParam(value = "是否共享")
private Integer isShare;
@Column(name = "SEARCH_NAME")
@ApiParam(value = "搜索名称")
private String searchName;
}

@ -8,6 +8,8 @@ import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.wms.bean.*;
import cn.estsh.i3plus.pojo.wms.bean.dynamic.WmsFieldInfo;
import cn.estsh.i3plus.pojo.wms.bean.dynamic.WmsSearchElement;
import cn.estsh.i3plus.pojo.wms.bean.dynamic.WmsSearchElementFunction;
import cn.estsh.i3plus.pojo.wms.dbinterface.WmsInterfaceDataMapper;
import cn.estsh.i3plus.pojo.wms.engine.rule.EngineRulePersistence;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistence;
@ -2727,4 +2729,19 @@ public class WmsHqlPack {
getStringBuilderPack(wmsFieldInfo, result);
return result;
}
/**
* WMS
*
* @param searchElementFunction
* @return
*/
public static DdlPackBean packHqlWmsSearchElementRecord(WmsSearchElementFunction searchElementFunction) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(searchElementFunction.getFunctionId(), "functionId", result);
DdlPreparedPack.getNumEqualPackOr(searchElementFunction.getIsShare(), "isShare", result);
DdlPreparedPack.getStringEqualPack(searchElementFunction.getUserCode(), "userCode", result);
getStringBuilderPack(searchElementFunction, result);
return result;
}
}

Loading…
Cancel
Save