Commit a2a9a74f by wuwenlong

仓库档案枚举;

parent 1f76cc4d
...@@ -16,24 +16,31 @@ package com.baosight.hpjx.common; ...@@ -16,24 +16,31 @@ package com.baosight.hpjx.common;
public enum DdynamicEnum { public enum DdynamicEnum {
/** /**
* 模块:供应商档案 * 模块:供应商档案
* 用途:供应商档案下拉框. * 用途:供应商档案下拉框
* 编写:wwl. * 编写:wwl
*/ */
SUPPLIER_RECORD_BLOCK_ID("supplier_record_block_id","custCode","custName","HPPZ002.queryComboBox"), SUPPLIER_RECORD_BLOCK_ID("supplier_record_block_id","custCode","custName","HPPZ002.queryComboBox"),
/** /**
* 模块:客户档案 * 模块:客户档案
* 用途:客户档案下拉框. * 用途:客户档案下拉框
* 编写:wwl. * 编写:wwl
*/ */
CUSTOMER_RECORD_BLOCK_ID("customer_record_block_id","custCode","custName","HPPZ003.queryComboBox"), CUSTOMER_RECORD_BLOCK_ID("customer_record_block_id","custCode","custName","HPPZ003.queryComboBox"),
/** /**
* 模块:存货名称 * 模块:存货名称
* 用途:存货名称下拉框. * 用途:存货名称下拉框
* 编写:wwl. * 编写:wwl
*/ */
INVENT_NAME_BLOCK_ID("invent_name_block_id","inventCode","inventName","HPPZ004.queryComboBox"); INVENT_NAME_BLOCK_ID("invent_name_block_id","inventCode","inventName","HPPZ004.queryComboBox"),
/**
* 模块:仓库档案
* 用途:仓库档案下拉框
* 编写:wwl
*/
WH_RECORD_BLOCK_ID("wh_record_block_id","whCode","whName","HPPZ007.queryComboBox");
/** 将结果集放入的块名 */ /** 将结果集放入的块名 */
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="custType"> <isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType# INVENT_TYPE = #inventType#
</isNotEmpty> </isNotEmpty>
ORDER BY INVENT_CODE ORDER BY INVENT_CODE
......
...@@ -132,4 +132,18 @@ ...@@ -132,4 +132,18 @@
ID = #id# ID = #id#
</update> </update>
<select id="queryComboBox" parameterClass="java.util.HashMap"
resultClass="java.util.HashMap">
SELECT DISTINCT
WH_CODE = #whCode#,
WH_NAME = #whName#
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whType">
WH_TYPE = #whType#
</isNotEmpty>
ORDER BY WH_CODE
</select>
</sqlMap> </sqlMap>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment