app主程序中添加打印的包扫描

This commit is contained in:
彭枝刚 2024-11-29 16:26:20 +08:00
parent eb778a4122
commit 82f1e882e7
2 changed files with 6 additions and 4 deletions

View File

@ -8,6 +8,7 @@ import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;
/**
* @author mom archetype
@ -16,10 +17,11 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
*/
@EnableMomXxlJob
@EnableMomSwagger2
@EnableMomFeignClients(basePackages = {"com.foreverwin.mom", "com.foreverwin.iep"})
@EnableMomFeignClients(basePackages = {"com.foreverwin.nlv", "com.foreverwin.mom", "com.foreverwin.iep"})
@EnableDiscoveryClient
@EnableMomResourceServer
@SpringBootApplication(scanBasePackages = {"com.foreverwin.mom.*", "com.foreverwin.iep.*"})
@SpringBootApplication(scanBasePackages = {"com.foreverwin.nlv", "com.foreverwin.mom", "com.foreverwin.iep"})
@EnableAsync
@MapperScan(basePackages={"com.foreverwin.**.mapper"})
public class App {
public static void main(String[] args) {

View File

@ -123,7 +123,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
private final StoragRequestService storagRequestService;
private final StoragRequestDetailService storagRequestDetailService;
private final RemoteInvokeService remoteInvokeService;
// private final RemotePrintService remotePrintService;
private final RemotePrintService remotePrintService;
@Override
public IPage<Document> selectPage(Page<Document> frontPage, Document document) {
@ -2161,7 +2161,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
jsonObject.put("PRINT_NAME",printerName);
jsonObject.put("QUEUE_NAME","");
jsonObject.put("TEMPLATE","RAM_LABEL_001.lab");
// remotePrintService.remotePrintSaveLog(jsonObject,SecurityConstants.FROM_IN);
remotePrintService.remotePrintSaveLog(jsonObject,SecurityConstants.FROM_IN);
}
});
}