From 54f0d5ebf93674d63426e6d3ad1dcfae64b21a82 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期四, 13 七月 2023 18:51:38 +0800 Subject: [PATCH] 损溢页面修改 --- igds-inout/src/main/java/com/ld/igds/m/view/LossOverPR.java | 92 +++++++++++++++++++++++++++------------------ 1 files changed, 55 insertions(+), 37 deletions(-) diff --git a/igds-inout/src/main/java/com/ld/igds/m/view/LossOverPR.java b/igds-inout/src/main/java/com/ld/igds/m/view/LossOverPR.java index 43022de..f0c32fd 100644 --- a/igds-inout/src/main/java/com/ld/igds/m/view/LossOverPR.java +++ b/igds-inout/src/main/java/com/ld/igds/m/view/LossOverPR.java @@ -1,7 +1,10 @@ package com.ld.igds.m.view; +import java.util.ArrayList; +import java.util.List; import java.util.Map; +import com.ld.igds.models.DicTrigger; import com.ld.igds.models.InoutLossOver; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -15,53 +18,68 @@ /** * 缁煎悎涓氬姟-鎹熸孩绠$悊 * 鎹熸孩鐨勯�昏緫鏄紝鏂板鏀跺湪鍑哄叆搴撴祦姘翠腑娣诲姞瀵瑰簲鐨勬祦姘达紝杩欎釜娴佹按绫诲瀷灏辨槸鎹熸孩銆備互渚跨粺璁℃椂鍊欎娇鐢� - * + * * @author: andy.jia * @description: * @version: * @data:2020骞�5鏈�28鏃� - * */ @Component public class LossOverPR { - @Autowired - private HLossOverService service; + @Autowired + private HLossOverService service; - /** - * lossOverPR#pageData - * - * @param page - * @param param - * @throws Exception - */ - @DataProvider - public void pageData(Page<InoutLossOver> page, Map<String, Object> param) - throws Exception { - service.pageData(page, param); - } - /** - * lossOverPR#saveData - * - * @param data - * @throws Exception - */ - @DataResolver - public void saveData(InoutLossOver data) throws Exception { - service.saveData(data); - } + /** + * ${dorado.getDataProvider("lossOverPR#triggerType").getResult()} + * + * @return + */ + @DataProvider + public List<DicTrigger> triggerType() { + List<DicTrigger> list = new ArrayList<DicTrigger>(); - /** - * lossOverPR#delData - * - * @param data - * @return - * @throws Exception - */ - @Expose - public String delData(InoutLossOver data) throws Exception { - return service.delData(data); - } + list.add(new DicTrigger("0", "姝e父")); + list.add(new DicTrigger("1", "涓嶆甯�")); + + return list; + } + + /** + * lossOverPR#pageData + * + * @param page + * @param param + * @throws Exception + */ + @DataProvider + public void pageData(Page<InoutLossOver> page, Map<String, Object> param) + throws Exception { + service.pageData(page, param); + } + + /** + * lossOverPR#saveData + * + * @param data + * @throws Exception + */ + @DataResolver + public void saveData(InoutLossOver data) throws Exception { + service.saveData(data); + } + + /** + * lossOverPR#delData + * + * @param data + * @return + * @throws Exception + */ + @Expose + public String delData(InoutLossOver data) throws Exception { + return service.delData(data); + } } -- Gitblit v1.9.3