Commit 1f5ab683 by 高晓磊

添加字段

parent 4fae35bd
......@@ -449,7 +449,8 @@ public class SalesRecordServiceImpl implements SalesRecordService {
BigDecimal dealAmount = BigDecimal.valueOf(row.getCell(11).getNumericCellValue());
BigDecimal price = BigDecimal.valueOf(row.getCell(13).getNumericCellValue());
BigDecimal amount = BigDecimal.valueOf(row.getCell(14).getNumericCellValue());
KObject record = createRecord(organization, retailInfo, station, productionLine, dinasType, carNumber, billCode, grossWeight, tareWeight, dealAmount, price, amount);
Date dateCellValue = row.getCell(15).getDateCellValue();
KObject record = createRecord(organization, retailInfo, station, productionLine, dinasType, carNumber, billCode, grossWeight, tareWeight, dealAmount, price, amount,dateCellValue);
saleRecord.add(record);
}
if(strings.size()>0){
......@@ -461,7 +462,7 @@ public class SalesRecordServiceImpl implements SalesRecordService {
private KObject createRecord(KObject regionalCompany,KObject retailInfo,KObject station,KObject productionLine,KObject dinasType,String carNum,
String billCode,BigDecimal grossWeight,BigDecimal tareWeight,BigDecimal dealAmount,BigDecimal price,BigDecimal amount){
String billCode,BigDecimal grossWeight,BigDecimal tareWeight,BigDecimal dealAmount,BigDecimal price,BigDecimal amount,Date dealTime){
KObject salesRecord = salesRecordClass.newInstance();
salesRecord.set(SalesRecordConstant.ID, UUID.randomUUID());
salesRecord.set(SalesRecordConstant.CREATETIME, new Date());
......@@ -474,7 +475,7 @@ public class SalesRecordServiceImpl implements SalesRecordService {
salesRecord.set(SalesRecordConstant.PRODUCTIONLINE, productionLine);
salesRecord.set(SalesRecordConstant.DINASTYPE, dinasType);
salesRecord.set(SalesRecordConstant.CUSTOMERTYPE,CustomerTypeEnum.RetailInfo.name());
salesRecord.set(SalesRecordConstant.DEALTIME, new Date());
salesRecord.set(SalesRecordConstant.DEALTIME, dealTime);
salesRecord.set(SalesRecordConstant.SYNCTIME, new Date());
salesRecord.set(SalesRecordConstant.CARINFO, carNum);
salesRecord.set(SalesRecordConstant.DEALAMOUNT, dealAmount);
......
......@@ -66,6 +66,12 @@
<property name="dealAmount" type="big_decimal" not-null="false">
<column name="deal_amount" precision="12" scale="4"></column>
</property>
<property name="grossWeight" type="big_decimal" not-null="false">
<column name="gross_weight" precision="12" scale="4"></column>
</property>
<property name="tareWeight" type="big_decimal" not-null="false">
<column name="tare_weight" precision="12" scale="4"></column>
</property>
<property name="price" type="big_decimal" not-null="false">
<column name="price" precision="12" scale="2"></column>
</property>
......
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