zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 package com.changhong.epc.parsing.service.bill.group;
Z 2
3 import com.changhong.epc.bean.form.Fieldsets;
4 import com.changhong.epc.bean.tenant.bill.OCRBillEntity;
5 import com.changhong.epc.constter.parsing.bill.ConstBill;
6 import com.changhong.epc.parsing.service.util.IFromOperate;
7 import org.springframework.stereotype.Service;
8
9 import javax.annotation.Resource;
10 import java.util.HashMap;
11 import java.util.Map;
12
13 /**
14  * 将票据val转换为code
15  * @author wangZX
16  *
17  */
18 @Service("billValToCode")
19 public class BillValToCode implements ConstBill {
20
21     private static final Map<String, String> MAPPING_MD = new HashMap<>();
22     
23     @Resource
24     private IFromOperate fromOperate;
25     
26     static {
27         MAPPING_MD.put(FROM    , FROM_SIT);
28         MAPPING_MD.put(TO    , TO_SIT);
29     }
30
31
32     public Fieldsets getFieldsets(OCRBillEntity bill) {
33         return new Fieldsets(fromOperate.selectFromAll(bill));
34     }
35 }