汪菘
3 years ago
2 changed files with 204 additions and 12 deletions
@ -0,0 +1,131 @@ |
|||||
|
[交易说明] |
||||
|
交易名: 月度计划分页查询 |
||||
|
所属模块: |
||||
|
功能简述: |
||||
|
版权所有: |
||||
|
表引用: |
||||
|
版本经历: |
||||
|
|
||||
|
[数据库] |
||||
|
--指定数据库,为空采用默认值,默认为db.properties中列出的第一个库 |
||||
|
|
||||
|
[IO定义] |
||||
|
################################################# |
||||
|
## 表字段对应输入参数 |
||||
|
################################################# |
||||
|
输入.flag TYPEAS s_string |
||||
|
输入.id TYPEAS s_string |
||||
|
输入.code TYPEAS s_string |
||||
|
输入.plan_org_code TYPEAS s_string |
||||
|
输入.weight_unit_name TYPEAS s_string |
||||
|
输入.product_type_name TYPEAS s_string |
||||
|
|
||||
|
|
||||
|
[临时表] |
||||
|
--这边列出来的临时表就会在运行期动态创建 |
||||
|
|
||||
|
[临时变量] |
||||
|
--所有中间过程变量均可在此处定义 |
||||
|
|
||||
|
[业务过程] |
||||
|
|
||||
|
########################################## |
||||
|
# 1、输入输出检查 # |
||||
|
########################################## |
||||
|
|
||||
|
|
||||
|
########################################## |
||||
|
# 2、主过程前处理 # |
||||
|
########################################## |
||||
|
|
||||
|
|
||||
|
########################################## |
||||
|
# 3、业务主过程 # |
||||
|
########################################## |
||||
|
|
||||
|
IF 输入.flag = "1" |
||||
|
QUERY |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
tool_local_storage t |
||||
|
WHERE |
||||
|
t.storage_id = 输入.id |
||||
|
ENDSELECT |
||||
|
ENDQUERY |
||||
|
ENDIF |
||||
|
|
||||
|
IF 输入.flag = "2" |
||||
|
QUERY |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
sys_dept d |
||||
|
WHERE |
||||
|
d.code = 输入.code |
||||
|
ENDSELECT |
||||
|
ENDQUERY |
||||
|
ENDIF |
||||
|
|
||||
|
IF 输入.flag = "3" |
||||
|
QUERY |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
sys_dict_detail d |
||||
|
WHERE |
||||
|
d.name = 'product_mode' |
||||
|
OPTION 输入.product_type_name <> "" |
||||
|
d.label = 输入.product_type_name |
||||
|
ENDOPTION |
||||
|
ENDSELECT |
||||
|
ENDQUERY |
||||
|
ENDIF |
||||
|
|
||||
|
IF 输入.flag = "4" |
||||
|
QUERY |
||||
|
SELECT |
||||
|
d.name AS label, |
||||
|
d.code AS value |
||||
|
FROM |
||||
|
sys_dept d |
||||
|
WHERE |
||||
|
d.code in(1001,1002,1003) |
||||
|
ENDSELECT |
||||
|
ENDQUERY |
||||
|
ENDIF |
||||
|
|
||||
|
IF 输入.flag = "5" |
||||
|
QUERY |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
md_pb_measureunit u |
||||
|
WHERE |
||||
|
u.is_delete = '0' |
||||
|
OPTION 输入.weight_unit_name <> "" |
||||
|
u.unit_name = 输入.weight_unit_name |
||||
|
ENDOPTION |
||||
|
|
||||
|
ENDSELECT |
||||
|
ENDQUERY |
||||
|
ENDIF |
||||
|
|
||||
|
IF 输入.flag = "6" |
||||
|
QUERY |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
sys_dict_detail d |
||||
|
WHERE |
||||
|
d.name = 'product_mode' |
||||
|
|
||||
|
OPTION 输入.product_type_name <> "" |
||||
|
d.value = 输入.product_type_name |
||||
|
ENDOPTION |
||||
|
ENDSELECT |
||||
|
ENDQUERY |
||||
|
ENDIF |
||||
|
|
||||
|
|
||||
|
|
Loading…
Reference in new issue