|
|
@ -26,6 +26,7 @@ import com.dxhy.erp.entity.sdny.SNInvoice; |
|
|
|
import com.dxhy.erp.entity.sdny.area.Area; |
|
|
|
import com.dxhy.erp.entity.sdny.area.Area; |
|
|
|
import com.dxhy.erp.utils.Base64; |
|
|
|
import com.dxhy.erp.utils.Base64; |
|
|
|
import com.dxhy.erp.utils.*; |
|
|
|
import com.dxhy.erp.utils.*; |
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -151,8 +152,8 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
recordInvoice.setInvoiceDate(sdf.format(kprq)); |
|
|
|
recordInvoice.setInvoiceDate(sdf.format(kprq)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US); |
|
|
|
String date = format.format(new Date()); |
|
|
|
Date date = format.parse(new Date().toString()); |
|
|
|
recordInvoice.setInvoiceDate(date); |
|
|
|
recordInvoice.setInvoiceDate(date.toString()); |
|
|
|
log.info("date={}",date); |
|
|
|
log.info("date={}",date); |
|
|
|
log.error("开票日期为空.请检查发票"); |
|
|
|
log.error("开票日期为空.请检查发票"); |
|
|
|
} |
|
|
|
} |
|
|
|