Browse Source

处理周期托管时间解析出错的bug

master
xyiege 3 years ago
parent
commit
7d9fc1c64f
  1. 11
      src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java

11
src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java

@ -506,9 +506,6 @@ public class GoodsServiceImpl implements GoodsService {
*/
@Override
public int manuImportGoods(JSONObject jsonObject) {
String host = ProperUtils.getSzwhProp("ENTRUST_URL");
//创建签名
String sign = SignUtils.createSign("entrust");
//处理json数据
return opGoodsInfo(jsonObject);
}
@ -633,6 +630,8 @@ public class GoodsServiceImpl implements GoodsService {
if (StringUtils.isBlank(cend)) {
cend = "2099-12-31";
}
// 加上时间
cend=cend+" 23:59:59";
//委托开始时间,取当前时间
Timestamp ncst = new Timestamp(System.currentTimeMillis());
//委托结束时间 default value 2099-12-31 23:59:59
@ -646,11 +645,7 @@ public class GoodsServiceImpl implements GoodsService {
ncst = new Timestamp(wtStart.getTime());
// 委托终止时间
Date wtEnd = WorkDayUtil.getWorkDay(wtStart, day);
// 统计该时间段内的节假日
//int fdays = festivalsMapper.countDayBetweenDays(wtStart, wtEnd, iyear);
// 节假日顺延后的日期
//Date fwtEnd = DateUtils.daysAgoOrAfter(wtEnd, fdays);
// 20221018 经咨询,不计算法定节假日的时长,故此暂作注释
// 20221018 经咨询,不计算法定节假日的时长
Date fwtEnd = wtEnd;
SimpleDateFormat ysdf = new SimpleDateFormat("yyyy-MM-dd");
cend = ysdf.format(fwtEnd) + " 23:59:59";

Loading…
Cancel
Save