Commit 61f6e755 by java-李谡

同步代码bug

parent 5a89e4f7
package com.ejweb.modules.airport.service;
import com.ejweb.core.base.BaseService;
import com.ejweb.core.base.PageEntity;
import com.ejweb.modules.airport.bean.OilAnalysisBean;
import com.ejweb.modules.airport.dao.OilAnalysisDao;
import com.ejweb.modules.airport.entity.OilAnalysisEntity;
import com.ejweb.modules.airport.entity.StatisticalEntity;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import com.ejweb.core.base.PageEntity;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import sun.security.util.ArrayUtil;
import java.util.Collections;
import java.util.List;
@Service
......@@ -55,17 +51,15 @@ public class OilAnalysisService extends BaseService<OilAnalysisDao> {
String strKGS = oilArr[0];
String strLBS = oilArr[1];
if (strKGS.length() == 0)
{
if (strKGS.length() == 0) {
strKGS = "0";
}
if (strLBS.length() == 0)
{
if (strLBS.length() == 0) {
strKGS = "0";
}
oilAnalysisEntity.setTotalOilKGS(Integer.valueOf(strKGS.replaceAll("KGS","")));
oilAnalysisEntity.setTotalOilLBS(Integer.valueOf(strLBS.replaceAll("LBS","")));
oilAnalysisEntity.setTotalOilKGS(Integer.valueOf(strKGS.replaceAll("KGS", "")));
oilAnalysisEntity.setTotalOilLBS(Integer.valueOf(strLBS.replaceAll("LBS", "")));
}
String oilFuelReason = oilAnalysisEntity.getExtraOilFuelReason();
......@@ -95,8 +89,7 @@ public class OilAnalysisService extends BaseService<OilAnalysisDao> {
}
}
if (oilNum.length() == 0)
{
if (oilNum.length() == 0) {
oilNum = "0";
}
......
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