|
@@ -10,6 +10,7 @@ import com.kmall.common.utils.HttpUtil;
|
|
|
import org.apache.commons.logging.Log;
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
@@ -17,6 +18,7 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+@Service
|
|
|
public class SalesDetailServiceImpl implements SalesDetailService {
|
|
|
|
|
|
private static Log logger = LogFactory.getLog(SalesDetailService.class);
|
|
@@ -30,11 +32,8 @@ public class SalesDetailServiceImpl implements SalesDetailService {
|
|
|
logger.info(">>>>>>>>>>>>>>>>>>>>pushSalesDetailData is start ");
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
String date = DateUtils.formatDate(DateUtils.addDate(new Date(),-1),"yyyy-MM-dd");
|
|
|
- params.put("startTime", DateUtils.getDateAddTime(date,"00:00:00"));
|
|
|
- params.put("endTime",DateUtils.getDateAddTime(date,"23:59:59"));
|
|
|
-
|
|
|
-// params.put("startTime", "2021-03-07 00:00:00");
|
|
|
-// params.put("endTime","2021-03-11 23:59:59");
|
|
|
+ params.put("startTime",date + " " +"00:00:00");
|
|
|
+ params.put("endTime",date+ " " +"23:59:59");
|
|
|
params.put("isOnfiilineOrder","1");
|
|
|
List<NewSystemFormatEntiy> dtoList = salesDetailMapper.querySalesSystemFormatList(params);
|
|
|
pushDateEccs(dtoList);
|
|
@@ -69,7 +68,7 @@ public class SalesDetailServiceImpl implements SalesDetailService {
|
|
|
String msg = HttpUtil.doPostJson(valueUrl, JSON.toJSONString(bean));
|
|
|
if(msg!=null&&!msg.equals("")){
|
|
|
Map<String, Object> kmallMsg = com.alibaba.fastjson.JSONObject.toJavaObject(JSON.parseObject(msg), Map.class);
|
|
|
- if (kmallMsg.get("code").equals(200)) {
|
|
|
+ if (kmallMsg.get("code").equals("200")) {
|
|
|
bean.setSalesDetStatus("1");
|
|
|
} else {
|
|
|
bean.setSalesDetStatus("2");
|
|
@@ -90,8 +89,8 @@ public class SalesDetailServiceImpl implements SalesDetailService {
|
|
|
logger.info(">>>>>>>>>>>>>>>>>>>>pushSalesDetailDataAgain is start ");
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
String date = DateUtils.formatDate(DateUtils.addDate(new Date(),-1),"yyyy-MM-dd");
|
|
|
- params.put("startTime", DateUtils.getDateAddTime(date,"00:00:00"));
|
|
|
- params.put("endTime",DateUtils.getDateAddTime(date,"23:59:59"));
|
|
|
+ params.put("startTime",date + " " +"00:00:00");
|
|
|
+ params.put("endTime",date+ " " +"23:59:59");
|
|
|
List<NewSystemFormatEntiy> dtoList = salesDetailMapper.querySalesAgain(params);
|
|
|
pushDateEccs(dtoList);
|
|
|
|