|
|
@@ -7,7 +7,6 @@ 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;
|
|
|
@@ -225,7 +224,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
}
|
|
|
System.out.println("获取订单信息缺失");
|
|
|
long l1 = System.currentTimeMillis();
|
|
|
- System.err.println("l1--------------l" + (l1 - l));
|
|
|
+ System.err.println("l1--------------l testyuj" + (l1 - l));
|
|
|
Long userUU = SystemSession.getUser().getUserUU();
|
|
|
Long enUU = SystemSession.getUser().getEnterprise().getUu();
|
|
|
if (!isAPerson) {
|
|
|
@@ -248,10 +247,10 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
}
|
|
|
commonDao.save(releaseProductByBatchs, ReleaseProductByBatch.class);
|
|
|
long l2 = System.currentTimeMillis();
|
|
|
- System.err.println("l2--------------l1" + (l2 - l1));
|
|
|
+ System.err.println("l2--------------l1 testyuj" + (l2 - l1));
|
|
|
releaseProductByBatchDao.callReleaseExistValidProcedure(batch, isAPerson, enUU);
|
|
|
long l3 = System.currentTimeMillis();
|
|
|
- System.err.println("l3--------------l2" + (l3 - l2));
|
|
|
+ System.err.println("l3--------------l2 testyuj" + (l3 - l2));
|
|
|
if (isAPerson) {
|
|
|
for (ReleaseProductByBatch releaseProductByBatch : releaseProductByBatchs) {
|
|
|
Long productid = releaseProductByBatch.getProductid();
|
|
|
@@ -319,15 +318,26 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
// });
|
|
|
releaseProductByBatchDao.callValidProcedure(enUU, batch);
|
|
|
l4 = System.currentTimeMillis();
|
|
|
- System.err.println("l4--------------l3" + (l4 - l3));
|
|
|
+ System.err.println("l4--------------l3 testyuj" + (l4 - l3));
|
|
|
}
|
|
|
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]);
|
|
|
- }
|
|
|
+// 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]);
|
|
|
+// }
|
|
|
+
|
|
|
+ filter = releaseProductByBatchDao.getCountOfImportFail(userUU, batch, failCode);
|
|
|
+ long l5 = System.currentTimeMillis();
|
|
|
+ System.out.print("l5-l4---------testyuj" + (l5-l4));
|
|
|
+ failure = releaseProductByBatchDao.getCountPublisherUuAndBatchAndReleaseCode(userUU, batch, ReleaseStatus.failure.value());
|
|
|
+ long l6 = System.currentTimeMillis();
|
|
|
+ System.out.print("l6-l5---------testyuj" + (l6-l5));
|
|
|
+ success = releaseProductByBatchDao.getCountPublisherUuAndBatchAndReleaseCode(userUU, batch, ReleaseStatus.success.value());
|
|
|
+ long l7 = System.currentTimeMillis();
|
|
|
+ System.out.print("l7-l6---------testyuj" + (l7-l6));
|
|
|
+ modelMap.put("total", total);
|
|
|
modelMap.put("total", total);
|
|
|
modelMap.put("success", success);
|
|
|
modelMap.put("failure", failure);
|