Commit f1eeb082 authored by eddie.woo's avatar eddie.woo

modify

parent 2e790698
...@@ -73,20 +73,14 @@ public class DataImportService extends BaseService { ...@@ -73,20 +73,14 @@ public class DataImportService extends BaseService {
calendar.set(Calendar.MONTH, i - 1); calendar.set(Calendar.MONTH, i - 1);
GlBalanceExample example = new GlBalanceExample(); GlBalanceExample example = new GlBalanceExample();
//科目段 //科目段
GlBalanceExample.Criteria c = example.createCriteria().andSegment1EqualTo(organization.getClientCode()) example.createCriteria().andSegment1EqualTo(organization.getClientCode())
.andPeriodNameEqualTo(dateFormat.format(calendar.getTime())); .andPeriodNameEqualTo(dateFormat.format(calendar.getTime())).andSegment3In(etCodeList);
// if(CollectionUtils.isNotEmpty(etCodeList)){
c.andSegment3In(etCodeList);
// }
List<GlBalance> sg3List = glBalanceMapper.selectByExample(example); List<GlBalance> sg3List = glBalanceMapper.selectByExample(example);
GlBalanceExample example2 = new GlBalanceExample(); GlBalanceExample example2 = new GlBalanceExample();
//明细段 //明细段
GlBalanceExample.Criteria c2 = example2.createCriteria().andSegment1EqualTo(organization.getClientCode()) example2.createCriteria().andSegment1EqualTo(organization.getClientCode())
.andPeriodNameEqualTo(dateFormat.format(calendar.getTime())); .andPeriodNameEqualTo(dateFormat.format(calendar.getTime())).andSegment4In(etCodeList);
// if(CollectionUtils.isNotEmpty(etCodeList)){
c2.andSegment4In(etCodeList);
// }
List<GlBalance> sg4List = glBalanceMapper.selectByExample(example2); List<GlBalance> sg4List = glBalanceMapper.selectByExample(example2);
for (StandardAccount standardAccount : stdAccountList) { for (StandardAccount standardAccount : stdAccountList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment