4 changed files with 48 additions and 11 deletions
@ -0,0 +1,24 @@ |
|||
package org.nl.quartz.task; |
|||
|
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.nl.acs.agv.server.NDCAgvService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @author liejiu |
|||
*/ |
|||
@Slf4j |
|||
@Component |
|||
public class AutoCreateChargingTaskToNDC { |
|||
|
|||
@Autowired |
|||
NDCAgvService ndcAgvService; |
|||
|
|||
public void run(String threadCode) throws Exception { |
|||
String[] threadCodes = threadCode.split(","); |
|||
for (String code : threadCodes) { |
|||
ndcAgvService.createChargingTaskToNDC(code); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue