no message
parent
776d2b09e1
commit
100622fee3
|
|
@ -169,10 +169,18 @@ public class DefaultCustomsRecordManager extends DefaultBaseManager implements C
|
|||
}
|
||||
|
||||
//海关备案
|
||||
CustomsRecord customsRecord =null;
|
||||
List<CustomsRecord> CustomsRecords=commonDao.findByQuery(" from CustomsRecord cr where upper(cr.code)=upper(:code) and cr.hsCode=:hsCode and cr.name=:name and cr.country=:country and cr.neworold=:neworold ",
|
||||
new String[]{"code"},new Object[]{code.trim(),hsCode.trim(),name.trim(),ysc.trim(),neworold});
|
||||
new String[]{"code","hsCode","name","country","neworold"},new Object[]{code.trim(),hsCode.trim(),name.trim(),ysc.trim(),neworold});
|
||||
if(CustomsRecords.size()>0){
|
||||
CustomsRecord customsRecord=CustomsRecords.get(0);
|
||||
customsRecord.setItemNumber(item_Number);//项号
|
||||
commonDao.store(customsRecord);
|
||||
}
|
||||
|
||||
CustomsRecord customsRecord =null;
|
||||
List<CustomsRecord> CustomsRecordList=commonDao.findByQuery(" from CustomsRecord cr where upper(cr.code)=upper(:code) and cr.neworold=:neworold ",
|
||||
new String[]{"code","neworold"},new Object[]{code.trim(),neworold});
|
||||
if(CustomsRecordList.size()>0){
|
||||
customsRecord=CustomsRecords.get(0);
|
||||
customsRecord.setItemNumber(item_Number);//项号
|
||||
customsRecord.setHsCode(hsCode);//HSCODE
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
left join customsRecord.legalSecondUint
|
||||
where 1=1
|
||||
and customsRecord.noninsuranceTpey='保税'
|
||||
and customsRecord.neworold=0
|
||||
and customsRecord.warehouse = #{SESSION_WAREHOUSE}
|
||||
/~customsRecord.code: and upper(customsRecord.code) like upper({customsRecord.code})~/
|
||||
/~customsRecord.name: and upper(customsRecord.name) like upper({customsRecord.name})~/
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
left join customsRecord.legalSecondUint
|
||||
where 1=1
|
||||
and customsRecord.noninsuranceTpey='保税'
|
||||
and customsRecord.neworold=0
|
||||
and customsRecord.warehouse = #{SESSION_WAREHOUSE}
|
||||
/~customsRecord.code: and upper(customsRecord.code) like upper({customsRecord.code})~/
|
||||
/~customsRecord.name: and upper(customsRecord.name) like upper({customsRecord.name})~/
|
||||
|
|
|
|||
Loading…
Reference in New Issue