Просмотр исходного кода

平台邀请记录判断条件更新为“供应商名称” + “时间”,是今天的已经发送的单据就不再进行发送操作

hejq 8 лет назад
Родитель
Сommit
05759a84ab

+ 1 - 1
src/main/java/com/uas/platform/b2b/erp/service/impl/VendorServiceImpl.java

@@ -162,7 +162,7 @@ public class VendorServiceImpl implements VendorService{
      * @return
      */
     private List<ErpInviteRecord> getRecord(String name) {
-        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd");
+        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
         // 判断是否是当天的单据
         String sql = "select * from invitation_tplrecord where ve_name = '" + name +"' and substr(ve_date, 1, 10) = '"
                 + simpleDateFormat.format(new Date()) + "'";