|
板凳

楼主 |
发表于 2020-12-18 11:17:41
|
只看该作者
编辑类型的
- <report id="C2_15">
- <title>产品设置</title>
- <titleEn>Product Config</titleEn>
- <sql>
- SELECT CUST_CODE,P_NO,P_VERSION,P_DESC,PANEL_TYPE,LINK_QTY FROM smt.c_product_config
- WHERE 1=1 STRSQL_CUSTCODE STRSQL_PNO
- ORDER BY CUST_CODE
- </sql>
- <update>
- UPDATE SMT.c_product_config
- SET PANEL_TYPE={PANEL_TYPE},LINK_QTY={LINK_QTY},P_DESC={P_DESC}
- WHERE P_NO=[P_NO] AND P_VERSION=[P_VERSION] LIMIT 1
- </update>
- <delete>
- DELETE FROM SMT.c_product_config
- WHERE P_NO=[P_NO] AND P_VERSION=[P_VERSION] LIMIT 1
- </delete>
- <insert>
- INSERT INTO SMT.c_product_config
- (CUST_CODE,BU_CODE,P_NO,P_VERSION,P_DESC,PANEL_TYPE,LINK_QTY,EDIT_TIME,EDIT_EMP)
- VALUES
- ({CUST_CODE},'NAGOMES',{P_NO},{P_VERSION},{P_DESC},{PANEL_TYPE},{LINK_QTY},now(),[EMP_NO]);
- </insert>
- <fields>
- <field name="CUST_CODE" flag="0" operator="IN" location="STRSQL_CUSTCODE" />
- <field name="P_NO" flag="0" alias="机种名称" operator="IN" location="STRSQL_PNO" />
- </fields>
- <columns>
- <column no="CUST_CODE" title="客户代码" />
- <column no="P_NO" title="机种名称" />
- <column no="P_VERSION" title="机种版本" />
- <column no="P_DESC" title="机种描述" />
- <column no="LINK_QTY" title="连板数量" />
- <column no="PANEL_TYPE" title="板面类型" />
- </columns>
- <templete>
- report_001
- </templete>
- <database>
- product
- </database>
- </report>
复制代码 |
|