版本提交
This commit is contained in:
parent
bde639c717
commit
129ea0e597
@ -58,9 +58,9 @@ spring:
|
|||||||
lazy: true
|
lazy: true
|
||||||
type: ${spring.datasource.type}
|
type: ${spring.datasource.type}
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://nj-cynosdbmysql-grp-1v6vxn5f.sql.tencentcdb.com:26247/task?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://36.212.7.35:3306/task?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||||
username: root
|
username: zhishu
|
||||||
password: Long6166@@
|
password: KSwx1MDcRW
|
||||||
taskSlave:
|
taskSlave:
|
||||||
lazy: true
|
lazy: true
|
||||||
type: ${spring.datasource.type}
|
type: ${spring.datasource.type}
|
||||||
|
|||||||
@ -61,9 +61,9 @@ spring:
|
|||||||
lazy: true
|
lazy: true
|
||||||
type: ${spring.datasource.type}
|
type: ${spring.datasource.type}
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://nj-cynosdbmysql-grp-1v6vxn5f.sql.tencentcdb.com:26247/task?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://36.212.7.35:3306/task?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||||
username: root
|
username: zhishu
|
||||||
password: Long6166@@
|
password: KSwx1MDcRW
|
||||||
taskSlave:
|
taskSlave:
|
||||||
lazy: true
|
lazy: true
|
||||||
type: ${spring.datasource.type}
|
type: ${spring.datasource.type}
|
||||||
|
|||||||
@ -43,6 +43,7 @@ public class TLogisticsController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询物流管理列表
|
* 查询物流管理列表
|
||||||
*/
|
*/
|
||||||
|
@SaCheckPermission("zhishu:logistics:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<TLogisticsVo> list(TLogisticsBo bo, PageQuery pageQuery) {
|
public TableDataInfo<TLogisticsVo> list(TLogisticsBo bo, PageQuery pageQuery) {
|
||||||
return tLogisticsService.queryPageList(bo, pageQuery);
|
return tLogisticsService.queryPageList(bo, pageQuery);
|
||||||
@ -53,6 +54,7 @@ public class TLogisticsController extends BaseController {
|
|||||||
* @param bo
|
* @param bo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@SaCheckPermission("zhishu:logistics:list")
|
||||||
@GetMapping("/listNoPage")
|
@GetMapping("/listNoPage")
|
||||||
public List<TLogisticsVo> listNoPage(TLogisticsBo bo){
|
public List<TLogisticsVo> listNoPage(TLogisticsBo bo){
|
||||||
return tLogisticsService.queryList(bo);
|
return tLogisticsService.queryList(bo);
|
||||||
@ -84,10 +86,10 @@ public class TLogisticsController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 新增物流管理
|
* 新增物流管理
|
||||||
*/
|
*/
|
||||||
|
@SaCheckPermission("zhishu:logistics:add")
|
||||||
@Log(title = "物流管理", businessType = BusinessType.INSERT)
|
@Log(title = "物流管理", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
@SaIgnore
|
|
||||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody TLogisticsBo bo) {
|
public R<Void> add(@Validated(AddGroup.class) @RequestBody TLogisticsBo bo) {
|
||||||
return toAjax(tLogisticsService.insertByBo(bo));
|
return toAjax(tLogisticsService.insertByBo(bo));
|
||||||
}
|
}
|
||||||
@ -95,10 +97,10 @@ public class TLogisticsController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改物流管理
|
* 修改物流管理
|
||||||
*/
|
*/
|
||||||
|
@SaCheckPermission("zhishu:logistics:edit")
|
||||||
@Log(title = "物流管理", businessType = BusinessType.UPDATE)
|
@Log(title = "物流管理", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
@SaIgnore
|
|
||||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody TLogisticsBo bo) {
|
public R<Void> edit(@Validated(EditGroup.class) @RequestBody TLogisticsBo bo) {
|
||||||
return toAjax(tLogisticsService.updateByBo(bo));
|
return toAjax(tLogisticsService.updateByBo(bo));
|
||||||
}
|
}
|
||||||
@ -108,9 +110,9 @@ public class TLogisticsController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param ids 主键串
|
* @param ids 主键串
|
||||||
*/
|
*/
|
||||||
|
@SaCheckPermission("zhishu:logistics:remove")
|
||||||
@Log(title = "物流管理", businessType = BusinessType.DELETE)
|
@Log(title = "物流管理", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
@SaIgnore
|
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@PathVariable Long[] ids) {
|
@PathVariable Long[] ids) {
|
||||||
return toAjax(tLogisticsService.deleteWithValidByIds(List.of(ids), true));
|
return toAjax(tLogisticsService.deleteWithValidByIds(List.of(ids), true));
|
||||||
@ -124,13 +126,6 @@ public class TLogisticsController extends BaseController {
|
|||||||
return TableDataInfo.build(list);
|
return TableDataInfo.build(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getList")
|
|
||||||
@SaIgnore
|
|
||||||
public TableDataInfo<TLogisticsVo> getList(Long userId) {
|
|
||||||
List<TLogisticsVo> list= tLogisticsService.getList(userId);
|
|
||||||
return TableDataInfo.build(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小程序获取运费模板
|
* 小程序获取运费模板
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -68,7 +68,5 @@ public interface ITLogisticsService {
|
|||||||
|
|
||||||
List<TLogisticsVo> queryNameList();
|
List<TLogisticsVo> queryNameList();
|
||||||
|
|
||||||
List<TLogisticsVo> getList(Long userId);
|
|
||||||
|
|
||||||
List<TLogisticsVo> queryNameListByXcx(Long userId);
|
List<TLogisticsVo> queryNameListByXcx(Long userId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,6 @@ import org.dromara.zhishu.domain.vo.ExcelTaskVo;
|
|||||||
import org.dromara.zhishu.domain.vo.TDepotVo;
|
import org.dromara.zhishu.domain.vo.TDepotVo;
|
||||||
import org.dromara.zhishu.domain.vo.TLogisticsVo;
|
import org.dromara.zhishu.domain.vo.TLogisticsVo;
|
||||||
import org.dromara.zhishu.mapper.TLogisticsMapper;
|
import org.dromara.zhishu.mapper.TLogisticsMapper;
|
||||||
import org.dromara.zhishu.service.IFastMailService;
|
|
||||||
import org.dromara.zhishu.service.ITLogisticsService;
|
import org.dromara.zhishu.service.ITLogisticsService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -61,13 +60,7 @@ public class TLogisticsServiceImpl implements ITLogisticsService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public TableDataInfo<TLogisticsVo> queryPageList(TLogisticsBo bo, PageQuery pageQuery) {
|
public TableDataInfo<TLogisticsVo> queryPageList(TLogisticsBo bo, PageQuery pageQuery) {
|
||||||
Long userId;
|
Long userId = LoginHelper.getUserId();
|
||||||
if (bo.getUserId() != null){
|
|
||||||
userId = bo.getUserId();
|
|
||||||
}else{
|
|
||||||
userId = LoginHelper.getUserId();
|
|
||||||
}
|
|
||||||
|
|
||||||
bo.setUserId(userId);
|
bo.setUserId(userId);
|
||||||
LambdaQueryWrapper<TLogistics> lqw = buildQueryWrapper(bo);
|
LambdaQueryWrapper<TLogistics> lqw = buildQueryWrapper(bo);
|
||||||
// 物流类型转换
|
// 物流类型转换
|
||||||
@ -92,12 +85,7 @@ public class TLogisticsServiceImpl implements ITLogisticsService {
|
|||||||
@Override
|
@Override
|
||||||
public List<TLogisticsVo> queryList(TLogisticsBo bo) {
|
public List<TLogisticsVo> queryList(TLogisticsBo bo) {
|
||||||
// 获取当前用户id
|
// 获取当前用户id
|
||||||
Long userId;
|
Long userId = LoginHelper.getUserId();
|
||||||
if (bo.getUserId() != null){
|
|
||||||
userId = bo.getUserId();
|
|
||||||
}else{
|
|
||||||
userId = LoginHelper.getUserId();
|
|
||||||
}
|
|
||||||
// 获取白名单
|
// 获取白名单
|
||||||
if (userId != 1) {
|
if (userId != 1) {
|
||||||
bo.setCreateBy(userId);
|
bo.setCreateBy(userId);
|
||||||
@ -213,11 +201,6 @@ public class TLogisticsServiceImpl implements ITLogisticsService {
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<TLogisticsVo> getList(Long userId){
|
|
||||||
return baseMapper.selectUserId(userId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<TLogisticsVo> queryNameListByXcx(Long userId) {
|
public List<TLogisticsVo> queryNameListByXcx(Long userId) {
|
||||||
return baseMapper.selectUserId(userId);
|
return baseMapper.selectUserId(userId);
|
||||||
|
|||||||
@ -59,6 +59,7 @@ public class WarehouseSettingsServiceImpl implements IWarehouseSettingsService {
|
|||||||
params.put("pageNum",pageQuery.getPageNum());
|
params.put("pageNum",pageQuery.getPageNum());
|
||||||
params.put("pageSize",pageQuery.getPageSize());
|
params.put("pageSize",pageQuery.getPageSize());
|
||||||
params.put("delFlag",0);
|
params.put("delFlag",0);
|
||||||
|
params.put("createBy",LoginHelper.getUserId());
|
||||||
String WarehouseSettingsListStr = InterfaceUtils.getInterfaceGetWithParams(UrlUtil.getOrderServiceUrl(),"/api/warehouseSetting/getList",params);
|
String WarehouseSettingsListStr = InterfaceUtils.getInterfaceGetWithParams(UrlUtil.getOrderServiceUrl(),"/api/warehouseSetting/getList",params);
|
||||||
Map dataMap = JsonUtil.transferToObj(WarehouseSettingsListStr,Map.class);
|
Map dataMap = JsonUtil.transferToObj(WarehouseSettingsListStr,Map.class);
|
||||||
List WarehouseSettingsList = (List) dataMap.get("data");
|
List WarehouseSettingsList = (List) dataMap.get("data");
|
||||||
|
|||||||
@ -44,8 +44,8 @@ public final class UrlUtil {
|
|||||||
* 新订单服务地址
|
* 新订单服务地址
|
||||||
*/
|
*/
|
||||||
public static String getOrderServiceUrl(){
|
public static String getOrderServiceUrl(){
|
||||||
return "http://119.45.237.193:8073";
|
// return "http://119.45.237.193:8073";
|
||||||
//return "http://localhost:8075";
|
return "http://localhost:8075";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getNewTaskUrl(){
|
public static String getNewTaskUrl(){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user