10 changed files with 119 additions and 10 deletions
@ -1,4 +1,4 @@
|
||||
package com.logpm.trunkline.entity; |
||||
package com.logpm.warehouse.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
@ -1,6 +1,6 @@
|
||||
package com.logpm.trunkline.controller; |
||||
package com.logpm.warehouse.controller; |
||||
|
||||
import com.logpm.trunkline.service.IMainlineWaybillService; |
||||
import com.logpm.warehouse.service.IMainlineWaybillService; |
||||
import io.swagger.annotations.Api; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
@ -0,0 +1,25 @@
|
||||
package com.logpm.warehouse.controller; |
||||
|
||||
import com.logpm.warehouse.service.IMainlineWaybillService; |
||||
import io.swagger.annotations.Api; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
/** |
||||
* 运单;(logpm_mainline_waybill)表控制层 |
||||
* @author : http://www.chiner.pro
|
||||
* @date : 2023-7-8 |
||||
*/ |
||||
@Api(tags = "老系统推送数据功能接口") |
||||
@RestController |
||||
@RequestMapping("/oldpush") |
||||
public class OldSystemPushController { |
||||
@Autowired |
||||
private IMainlineWaybillService mainlineWaybillService; |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,60 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.launcher; |
||||
|
||||
import org.springblade.core.auto.service.AutoService; |
||||
import org.springblade.core.launch.constant.NacosConstant; |
||||
import org.springblade.core.launch.service.LauncherService; |
||||
import org.springblade.core.launch.utils.PropsUtil; |
||||
import org.springframework.boot.builder.SpringApplicationBuilder; |
||||
|
||||
import java.util.Properties; |
||||
|
||||
/** |
||||
* 启动参数拓展 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
@AutoService(LauncherService.class) |
||||
public class WarehouseLauncherServiceImpl implements LauncherService { |
||||
|
||||
@Override |
||||
public void launcher(SpringApplicationBuilder builder, String appName, String profile, boolean isLocalDev) { |
||||
Properties props = System.getProperties(); |
||||
// 开启多数据源
|
||||
PropsUtil.setProperty(props, "spring.datasource.dynamic.enabled", "true"); |
||||
// 指定注册配置信息
|
||||
PropsUtil.setProperty(props, "spring.cloud.nacos.config.extension-configs[0].data-id", NacosConstant.dataId(appName, profile)); |
||||
PropsUtil.setProperty(props, "spring.cloud.nacos.config.extension-configs[0].group", NacosConstant.NACOS_CONFIG_GROUP); |
||||
PropsUtil.setProperty(props, "spring.cloud.nacos.config.extension-configs[0].refresh", NacosConstant.NACOS_CONFIG_REFRESH); |
||||
// 指定注册IP
|
||||
// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.ip", "127.0.0.1");
|
||||
// 指定注册端口
|
||||
// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.port", "8200");
|
||||
// 自定义命名空间
|
||||
// PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", LauncherConstant.NACOS_NAMESPACE);
|
||||
// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", LauncherConstant.NACOS_NAMESPACE);
|
||||
// 自定义分组
|
||||
// PropsUtil.setProperty(props, "spring.cloud.nacos.config.group", NacosConstant.NACOS_CONFIG_GROUP);
|
||||
// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.group", NacosConstant.NACOS_CONFIG_GROUP);
|
||||
} |
||||
|
||||
@Override |
||||
public int getOrder() { |
||||
return 20; |
||||
} |
||||
} |
@ -1,7 +1,7 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
package com.logpm.warehouse.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.trunkline.entity.MainlineWaybill; |
||||
import com.logpm.warehouse.entity.MainlineWaybill; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
/** |
@ -1,4 +1,4 @@
|
||||
package com.logpm.trunkline.service; |
||||
package com.logpm.warehouse.service; |
||||
|
||||
/** |
||||
* 运单;(logpm_mainline_waybill)表服务接口 |
@ -0,0 +1,18 @@
|
||||
package com.logpm.warehouse.service.impl; |
||||
|
||||
import com.logpm.warehouse.mapper.MainlineWaybillMapper; |
||||
import com.logpm.warehouse.service.IMainlineWaybillService; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* 运单;(logpm_mainline_waybill)表服务实现类 |
||||
* @author : http://www.chiner.pro
|
||||
* @date : 2023-7-4 |
||||
*/ |
||||
@Service |
||||
public class MainlineWaybillServiceImpl implements IMainlineWaybillService { |
||||
@Autowired |
||||
private MainlineWaybillMapper mainlineWaybillMapper; |
||||
|
||||
} |
Loading…
Reference in new issue