Showing
3 changed files
with
64 additions
and
11 deletions
| ... | @@ -64,7 +64,7 @@ public class Constant { | ... | @@ -64,7 +64,7 @@ public class Constant { |
| 64 | 64 | ||
| 65 | public static String NATURE_EXEMPTION ="natureExemption_"; | 65 | public static String NATURE_EXEMPTION ="natureExemption_"; |
| 66 | 66 | ||
| 67 | - | 67 | + public static String DECLARED_DOC_TYPE="declaredDocType_"; |
| 68 | 68 | ||
| 69 | 69 | ||
| 70 | 70 | ... | ... |
| ... | @@ -86,6 +86,20 @@ public class ChmConsignment implements Serializable { | ... | @@ -86,6 +86,20 @@ public class ChmConsignment implements Serializable { |
| 86 | @Column(name = "THROUGH_STOP_PORT") | 86 | @Column(name = "THROUGH_STOP_PORT") |
| 87 | private String throughStopPort; | 87 | private String throughStopPort; |
| 88 | 88 | ||
| 89 | + | ||
| 90 | + /** | ||
| 91 | + * 报关单类型ID | ||
| 92 | + */ | ||
| 93 | + @ManyToOne(targetEntity = DictionaryEntries.class) | ||
| 94 | + @JoinColumn(name = "DECLARED_DOC_TYPE_ID") | ||
| 95 | + private DictionaryEntries declaredDocTypeDic; | ||
| 96 | + | ||
| 97 | + /** | ||
| 98 | + * 报关单类型 | ||
| 99 | + */ | ||
| 100 | + @Column(name = "DECLARED_DOC_TYPE") | ||
| 101 | + private String declaredDocType; | ||
| 102 | + | ||
| 89 | /** | 103 | /** |
| 90 | * 运费(币制)ID | 104 | * 运费(币制)ID |
| 91 | */ | 105 | */ |
| ... | @@ -334,6 +348,26 @@ public class ChmConsignment implements Serializable { | ... | @@ -334,6 +348,26 @@ public class ChmConsignment implements Serializable { |
| 334 | private String consStatus; | 348 | private String consStatus; |
| 335 | 349 | ||
| 336 | 350 | ||
| 351 | + /** | ||
| 352 | + * 生产核销位海关编码 | ||
| 353 | + */ | ||
| 354 | + @Column(name = "OWNER_CODE") | ||
| 355 | + private String ownerCode; | ||
| 356 | + | ||
| 357 | + /** | ||
| 358 | + * 生产核销单位 | ||
| 359 | + */ | ||
| 360 | + @Column(name = "OWNER_NAME") | ||
| 361 | + private String ownerName; | ||
| 362 | + | ||
| 363 | + | ||
| 364 | + /** | ||
| 365 | + * 生产核销单位编码 | ||
| 366 | + */ | ||
| 367 | + @Column(name = "OWNER_CODE_SCC") | ||
| 368 | + private String ownerCodeScc; | ||
| 369 | + | ||
| 370 | + | ||
| 337 | @OneToMany(mappedBy = "chmConsignment", cascade = CascadeType.ALL) | 371 | @OneToMany(mappedBy = "chmConsignment", cascade = CascadeType.ALL) |
| 338 | private List<ChmConsignmentDetail> chmConsignmentDetailList; | 372 | private List<ChmConsignmentDetail> chmConsignmentDetailList; |
| 339 | 373 | ... | ... |
| ... | @@ -44,7 +44,7 @@ public class ChmConsignmentService { | ... | @@ -44,7 +44,7 @@ public class ChmConsignmentService { |
| 44 | ChmConsignment result = new ChmConsignment(); | 44 | ChmConsignment result = new ChmConsignment(); |
| 45 | try{ | 45 | try{ |
| 46 | //进出口标志:固定值 E | 46 | //进出口标志:固定值 E |
| 47 | - //报关类型:填写固定值EX,但字典表里没有这个值 | 47 | + //TODO 报关类型:填写固定值EX,但字典表里没有这个值 |
| 48 | // result.setDeclaredDocTypeDic(); | 48 | // result.setDeclaredDocTypeDic(); |
| 49 | // result.setDeclaredCode(); | 49 | // result.setDeclaredCode(); |
| 50 | //申报单位代码:固定值 1111980005 | 50 | //申报单位代码:固定值 1111980005 |
| ... | @@ -70,12 +70,16 @@ public class ChmConsignmentService { | ... | @@ -70,12 +70,16 @@ public class ChmConsignmentService { |
| 70 | result.setTaxNature(levyTypeDictionaryEntries.getChineseName()); | 70 | result.setTaxNature(levyTypeDictionaryEntries.getChineseName()); |
| 71 | //报关/转关关系标志:固定值0 ,但数据字典里没有0 | 71 | //报关/转关关系标志:固定值0 ,但数据字典里没有0 |
| 72 | 72 | ||
| 73 | + | ||
| 73 | //经停港/指运港 | 74 | //经停港/指运港 |
| 74 | ChmCarryPort chmCarryPort =Constant.chmCarryPortCache.get(mawb.getDistinatePort()); | 75 | ChmCarryPort chmCarryPort =Constant.chmCarryPortCache.get(mawb.getDistinatePort()); |
| 75 | result.setThroughStopPortDic(chmCarryPort); | 76 | result.setThroughStopPortDic(chmCarryPort); |
| 76 | result.setThroughStopPort(chmCarryPort.getPortNo()); | 77 | result.setThroughStopPort(chmCarryPort.getPortNo()); |
| 77 | 78 | ||
| 78 | - //报关标志 | 79 | + //TODO 报关标志【待确认】 |
| 80 | + DictionaryEntries declaredDocTypeDictionaryEntries = Constant.dictionaryEntriesCache.get(Constant.DECLARED_DOC_TYPE + mawb.getEdiId()); | ||
| 81 | + result.setDeclaredDocTypeDic(declaredDocTypeDictionaryEntries); | ||
| 82 | + result.setDeclaredDocType(declaredDocTypeDictionaryEntries.getChineseName()); | ||
| 79 | 83 | ||
| 80 | //海关编号 | 84 | //海关编号 |
| 81 | result.setCustomsNo(mawb.getEntryId()); | 85 | result.setCustomsNo(mawb.getEntryId()); |
| ... | @@ -84,18 +88,23 @@ public class ChmConsignmentService { | ... | @@ -84,18 +88,23 @@ public class ChmConsignmentService { |
| 84 | result.setTransCurrencyDic(currencyDictionaryEntries); | 88 | result.setTransCurrencyDic(currencyDictionaryEntries); |
| 85 | result.setTransCurrency(currencyDictionaryEntries.getChineseName()); | 89 | result.setTransCurrency(currencyDictionaryEntries.getChineseName()); |
| 86 | 90 | ||
| 87 | - //运费标记:固定值 3 | 91 | + //TODO 运费标记:固定值 3 【iclear中, 和成交方式相关,只有成交方式 1、2 时,才能传 3 】 |
| 92 | + | ||
| 93 | + | ||
| 88 | //运费总价 | 94 | //运费总价 |
| 89 | result.setTransCost(mawb.getFeeRate()); | 95 | result.setTransCost(mawb.getFeeRate()); |
| 90 | //毛重 | 96 | //毛重 |
| 91 | result.setGrossWeight(BigDecimal.valueOf(mawb.getGrossWet())); | 97 | result.setGrossWeight(BigDecimal.valueOf(mawb.getGrossWet())); |
| 92 | //出入境关闭:固定值 0101 | 98 | //出入境关闭:固定值 0101 |
| 93 | //录入人名称:固定值 必填项,但填的值是空值 | 99 | //录入人名称:固定值 必填项,但填的值是空值 |
| 100 | + | ||
| 94 | //保险费币制 | 101 | //保险费币制 |
| 95 | DictionaryEntries insuranceDictionaryEntries = Constant.dictionaryEntriesCache.get(Constant.CURRENCY_SYSTEM+mawb.getInsurCurr()); | 102 | DictionaryEntries insuranceDictionaryEntries = Constant.dictionaryEntriesCache.get(Constant.CURRENCY_SYSTEM+mawb.getInsurCurr()); |
| 96 | result.setInsuranceCostCurrencyDic(insuranceDictionaryEntries); | 103 | result.setInsuranceCostCurrencyDic(insuranceDictionaryEntries); |
| 97 | result.setInsuranceCostCurrency(insuranceDictionaryEntries.getChineseName()); | 104 | result.setInsuranceCostCurrency(insuranceDictionaryEntries.getChineseName()); |
| 98 | - //保险费标记 | 105 | + |
| 106 | + //保险费标记 ,根据transMode决定 | ||
| 107 | + | ||
| 99 | //保险费/率 | 108 | //保险费/率 |
| 100 | result.setInsuranceCost(mawb.getInsurRate()); | 109 | result.setInsuranceCost(mawb.getInsurRate()); |
| 101 | //备案号 | 110 | //备案号 |
| ... | @@ -109,9 +118,12 @@ public class ChmConsignmentService { | ... | @@ -109,9 +118,12 @@ public class ChmConsignmentService { |
| 109 | //杂费/率 | 118 | //杂费/率 |
| 110 | result.setOtherCost(mawb.getOtherRate()); | 119 | result.setOtherCost(mawb.getOtherRate()); |
| 111 | //杂费标志 | 120 | //杂费标志 |
| 112 | - //消费使用/生产销售单位代码 | 121 | + //TODO 消费使用/生产销售单位代码 |
| 122 | + result.setOwnerCode(mawb.getOwnerCode()); | ||
| 123 | + //TODO 消费使用/生产销售单位名称 | ||
| 124 | + result.setOwnerName(mawb.getOwnerName()); | ||
| 125 | + | ||
| 113 | 126 | ||
| 114 | - //消费使用/生产销售单位名称 | ||
| 115 | //件数 | 127 | //件数 |
| 116 | result.setCounts(mawb.getPackNo().longValue()); | 128 | result.setCounts(mawb.getPackNo().longValue()); |
| 117 | //预录入编号 | 129 | //预录入编号 |
| ... | @@ -148,19 +160,26 @@ public class ChmConsignmentService { | ... | @@ -148,19 +160,26 @@ public class ChmConsignmentService { |
| 148 | result.setPackageType(packageTypeDictionaryEntries.getChineseName()); | 160 | result.setPackageType(packageTypeDictionaryEntries.getChineseName()); |
| 149 | 161 | ||
| 150 | 162 | ||
| 151 | - //生产核销单位统一信用代码---报关形式类型 | 163 | + //TODO 生产核销单位统一信用代码---报关形式类型 |
| 152 | - //消费使用/生产销售单位单位统一编码 | 164 | + result.setTradeCoSCC(mawb.getTradeCodeScc()); |
| 165 | + | ||
| 166 | + | ||
| 167 | + //TODO 消费使用/生产销售单位单位统一编码 | ||
| 168 | + result.setOwnerCodeScc(mawb.getOwnerCodeScc()); | ||
| 169 | + | ||
| 170 | + | ||
| 153 | //贸易国别 | 171 | //贸易国别 |
| 154 | DictionaryEntries tradeAreaCodeDictionaryEntries=Constant.dictionaryEntriesCache.get(Constant.COUNTRY+mawb.getTradeAreaCode()); | 172 | DictionaryEntries tradeAreaCodeDictionaryEntries=Constant.dictionaryEntriesCache.get(Constant.COUNTRY+mawb.getTradeAreaCode()); |
| 155 | result.setTradeAreaCodeDic(tradeAreaCodeDictionaryEntries); | 173 | result.setTradeAreaCodeDic(tradeAreaCodeDictionaryEntries); |
| 156 | result.setTradeAreaCode(tradeAreaCodeDictionaryEntries.getChineseName()); | 174 | result.setTradeAreaCode(tradeAreaCodeDictionaryEntries.getChineseName()); |
| 157 | 175 | ||
| 158 | - | ||
| 159 | - | ||
| 160 | //标记及号码 | 176 | //标记及号码 |
| 161 | result.setDeclaredRemark(mawb.getMarkNo()); | 177 | result.setDeclaredRemark(mawb.getMarkNo()); |
| 178 | + | ||
| 162 | //入境口岸代码:固定值 310302 | 179 | //入境口岸代码:固定值 310302 |
| 180 | + | ||
| 163 | //存放地点:固定值 空值 | 181 | //存放地点:固定值 空值 |
| 182 | + | ||
| 164 | //申报人员姓名---报关员证号 | 183 | //申报人员姓名---报关员证号 |
| 165 | result.setDeclaredUnitName(mawb.getDeclareName()); | 184 | result.setDeclaredUnitName(mawb.getDeclareName()); |
| 166 | //境外发货人代码 | 185 | //境外发货人代码 | ... | ... |
-
Please register or login to post a comment