|
|
@@ -7,6 +7,7 @@ import com.uas.platform.b2c.common.base.dao.CommonDao;
|
|
|
import com.uas.platform.b2c.core.config.SysConf;
|
|
|
import com.uas.platform.b2c.core.constant.IntegerConstant;
|
|
|
import com.uas.platform.b2c.core.constant.ReleaseStatus;
|
|
|
+import com.uas.platform.b2c.core.constant.SplitChar;
|
|
|
import com.uas.platform.b2c.core.constant.Status;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.utils.NumberUtil;
|
|
|
@@ -266,23 +267,21 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
}
|
|
|
}
|
|
|
Long l4 = 0l;
|
|
|
+ String strCount = "";
|
|
|
if (isPcb) {
|
|
|
- releaseProductByBatchDao.callValidProcedurePcb(enUU, batch);
|
|
|
+ strCount = releaseProductByBatchDao.callValidProcedurePcb(enUU, batch);
|
|
|
} else {
|
|
|
- releaseProductByBatchDao.callValidProcedure(enUU, batch);
|
|
|
+ strCount = releaseProductByBatchDao.callValidProcedure(enUU, batch);
|
|
|
l4 = System.currentTimeMillis();
|
|
|
System.err.println("l4--------------l3" + (l4 - l3));
|
|
|
}
|
|
|
-
|
|
|
- Integer filter = releaseProductByBatchDao.getCountOfImportFail(userUU, batch, failCode);
|
|
|
- long l5 = System.currentTimeMillis();
|
|
|
- System.err.println("l5--------------l4" + (l5 - l4));
|
|
|
- Integer failure = releaseProductByBatchDao.getCountPublisherUuAndBatchAndReleaseCode(userUU, batch, ReleaseStatus.failure.value());
|
|
|
- long l6 = System.currentTimeMillis();
|
|
|
- System.err.println("l6--------------l5" + (l6 - l5));
|
|
|
- Integer success = releaseProductByBatchDao.getCountPublisherUuAndBatchAndReleaseCode(userUU, batch, ReleaseStatus.success.value());
|
|
|
- long l7 = System.currentTimeMillis();
|
|
|
- System.err.println("l7---------------------------l6" + (l7 - l6));
|
|
|
+ Integer filter = 0, failure = 0, success = 0;
|
|
|
+ if (!StringUtilB2C.isEmpty(strCount)) {
|
|
|
+ String[] split = strCount.split(SplitChar.HYPHEN);
|
|
|
+ filter = Integer.valueOf(split[0]);
|
|
|
+ failure = Integer.valueOf(split[1]);
|
|
|
+ success = Integer.valueOf(split[2]);
|
|
|
+ }
|
|
|
modelMap.put("total", total);
|
|
|
modelMap.put("success", success);
|
|
|
modelMap.put("failure", failure);
|