| | |
| | | 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; |
| | |
| | | /** |
| | | * 综合业务-损溢管理 |
| | | * 损溢的逻辑是,新增收在出入库流水中添加对应的流水,这个流水类型就是损溢。以便统计时候使用 |
| | | * |
| | | * |
| | | * @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", "正常")); |
| | | 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); |
| | | } |
| | | |
| | | } |