Explorar el Código

bug

release_toaliyun_real
xhxu hace 5 años
padre
commit
474b07920d
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/mapper/WxCreditHistoryMapper.java
  2. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java

+ 1
- 1
mallinkService/src/main/java/com/iformall/mapper/WxCreditHistoryMapper.java Ver fichero

@@ -34,5 +34,5 @@ public interface WxCreditHistoryMapper extends CommonMapper<WxCreditHistory, Lon
int deleteById(@Param("id")Long id,@Param("tenantId")String tenantId);


void userCreditClear(@Param("cutOffDate")Date cutOffDate,@Param("finalTableIndex")String finalTableIndex);
void userCreditClear(@Param("cutOffDate")String cutOffDate,@Param("finalTableIndex")String finalTableIndex);
}

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java Ver fichero

@@ -48,7 +48,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {

private final Logger logger = LoggerFactory.getLogger(this.getClass());

private final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
private final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

@Autowired
WxCreditHistoryMapper wxCreditHistoryMapper;
@@ -105,7 +105,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
wxCreditHistory.setEndTime(new Date());
}
String tableSuffix = "_" + Integer.parseInt(wxCreditHistory.getFinalTenantId())%100;
wxCreditHistoryMapper.userCreditClear(wxCreditHistory.getEndTime(),tableSuffix);
wxCreditHistoryMapper.userCreditClear(dateFormat.format(wxCreditHistory.getEndTime()),tableSuffix);

}



Cargando…
Cancelar
Guardar