|
|
@@ -15,6 +15,7 @@ import com.poteviohealth.cgp.statistics.model.Distinction;
|
|
|
import com.poteviohealth.cgp.statistics.service.IDistinctionService;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -48,7 +49,7 @@ public class DistinctionServiceImpl extends BaseServiceImpl<DistinctionMapper, D
|
|
|
Double threshold = Double.parseDouble(orderCacheVal(CgpTool.CACHE_ORDER_PHOTO_THRESHOLD));
|
|
|
|
|
|
String uid = ImageUtils.readImagePix(inputStream);
|
|
|
- Long orderId = baseMapper.checkDis(TokenContext.cureOperatorId(),dbName,uid,ImageUtils.different(threshold),DateUtils.caculDays(new Date(), -day));
|
|
|
+ Long orderId = baseMapper.checkDis(TokenContext.cureOperatorId(),dbName,uid,ImageUtils.different(threshold), DateFormatUtils.format(DateUtils.caculDays(new Date(), -day),"yyyy-MM-dd HH:mm:ss"));
|
|
|
log.info("orderId==="+orderId);
|
|
|
return orderId;
|
|
|
}
|