1. 统一包名修改
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
package com.zt.plat.module.backendlogistics;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* BackendLogistics 模块的启动类
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
//@SpringBootApplication
|
||||
public class BackendLogisticsServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BackendLogisticsServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.module.backendlogistics.controller.admin.backendlogistics;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
/**
|
||||
* BackendLogistics 控制器
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@Tag(name = "管理后台 - BackendLogistics")
|
||||
@RestController
|
||||
@RequestMapping("/admin/backend-logistics/backend-logistics")
|
||||
public class BackendLogisticsController {
|
||||
|
||||
@GetMapping("/hello")
|
||||
@Operation(summary = "Hello BackendLogistics")
|
||||
public CommonResult<String> hello() {
|
||||
return success("Hello, BackendLogistics!");
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,37 @@
|
||||
package com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct;
|
||||
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountPageReqVo;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountRespVo;
|
||||
import com.zt.plat.module.backendlogistics.service.bseMngt.acct.ChildAccountService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
@Tag(name = "管理后台 - 子账号")
|
||||
@RestController
|
||||
@RequestMapping("/lgst/child-account")
|
||||
@Validated
|
||||
@FileUploadController(source = "lgst.childaccount")
|
||||
public class ChildAccountController implements BusinessControllerMarker {
|
||||
@Resource
|
||||
private ChildAccountService childAccountService;
|
||||
@PostMapping("/page")
|
||||
@Operation(summary = "获取子账号分页数据")
|
||||
// @PreAuthorize("@ss.hasPermission('lgst:carrier-account:query')")
|
||||
public CommonResult<PageResult<ChildAccountRespVo>> getCarrierAccountPage(@RequestBody ChildAccountPageReqVo pageReqVO) {
|
||||
PageResult<ChildAccountRespVo> pageResult =childAccountService.getChildAccountPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, ChildAccountRespVo.class));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct;
|
||||
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountPageReqVo;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountRespVo;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountSaveReqVo;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.common.vo.IdVo;
|
||||
import com.zt.plat.module.backendlogistics.service.bseMngt.acct.ChildAccountService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
@Tag(name = "物流协同 - 子账号")
|
||||
@RestController
|
||||
@RequestMapping("/lgst/collaboration/child-account")
|
||||
@Validated
|
||||
public class CollaborationChildAccountController implements BusinessControllerMarker {
|
||||
@Resource
|
||||
private ChildAccountService childAccountService;
|
||||
/**
|
||||
* 协同查询子账号分页数据
|
||||
* @param reqVo
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/page")
|
||||
@Operation(summary = "获取子账号分页数据")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:collaboration:child-account:query')")
|
||||
public CommonResult<PageResult<ChildAccountRespVo>> getCollChildAccountPage(@RequestBody ChildAccountPageReqVo reqVo){
|
||||
PageResult<ChildAccountRespVo> collChildAccountPage = childAccountService.getCollChildAccountPage(reqVo);
|
||||
return success(collChildAccountPage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除子账号
|
||||
* @param vo
|
||||
*/
|
||||
@PostMapping("/delete")
|
||||
@Operation(summary = "删除子账号")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:collaboration:child-account:delete')")
|
||||
public CommonResult<Boolean> deleteChildAccount(@RequestBody IdVo vo){
|
||||
childAccountService.deleteChildAccount(vo.getId());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改子账号数据
|
||||
* @param saveReqVo
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@Operation(summary = "修改子账号")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:collaboration:child-account:update')")
|
||||
public CommonResult<Boolean> updateChildAccount(@RequestBody ChildAccountSaveReqVo saveReqVo){
|
||||
childAccountService.updateChildAccount(saveReqVo);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改子账号密码
|
||||
* @param saveReqVo
|
||||
*/
|
||||
@PostMapping("/updatePassword")
|
||||
@Operation(summary = "修改子账号密码")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:collaboration:child-account:updatePassword')")
|
||||
public CommonResult<Boolean> updateChildPassword(@RequestBody ChildAccountSaveReqVo saveReqVo){
|
||||
childAccountService.updateChildPassword(saveReqVo);
|
||||
return success(true);
|
||||
}
|
||||
/**
|
||||
* 创建子账号
|
||||
* @param saveReqVo
|
||||
*/
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建子账号")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:collaboration:child-account:create')")
|
||||
public CommonResult<Boolean> create(@RequestBody ChildAccountSaveReqVo saveReqVo){
|
||||
childAccountService.craete(saveReqVo);
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct;
|
||||
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.CollaborationCompanyRespVo;
|
||||
import com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.CollaborationCompanySaveReqVo;
|
||||
import com.zt.plat.module.backendlogistics.service.bseMngt.acct.CollaborationCompanyService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
@Tag(name = "物流协同 -企业信息")
|
||||
@RestController
|
||||
@RequestMapping("/lgst/collaboration/company")
|
||||
@Validated
|
||||
@FileUploadController(source = "lgst.coll.company")
|
||||
public class CollaborationCompanyController implements BusinessControllerMarker {
|
||||
@Resource
|
||||
private CollaborationCompanyService collaborationCompanyService;
|
||||
|
||||
@GetMapping("/getCompanyDetail")
|
||||
@Operation(summary = "获取企业信息")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:coll:company:getCompanyDetail')")
|
||||
public CommonResult<CollaborationCompanyRespVo> getCompanyDetail() {
|
||||
CollaborationCompanyRespVo collaborationCompany = collaborationCompanyService.getCollaborationCompany();
|
||||
return success(collaborationCompany);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改登录手机号
|
||||
*
|
||||
* @param saveReqVo
|
||||
*/
|
||||
@PostMapping("/updateTel")
|
||||
@Operation(summary = "修改手机号")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:coll:company:updateTel')")
|
||||
public CommonResult<Boolean> updateTel(@RequestBody CollaborationCompanySaveReqVo saveReqVo) {
|
||||
collaborationCompanyService.updateTel(saveReqVo);
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,76 @@
|
||||
package com.zt.plat.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 物流服务商协同账号分页 Request VO")
|
||||
@Data
|
||||
public class CarrierAccountPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "状态", example = "2")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "登录账号", example = "27315")
|
||||
private String loginAccount;
|
||||
|
||||
@Schema(description = "登录手机号")
|
||||
private String loginTel;
|
||||
|
||||
@Schema(description = "公司名称", example = "李四")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "社会统一信用代码")
|
||||
private String creditCode;
|
||||
|
||||
@Schema(description = "法人姓名", example = "王五")
|
||||
private String agentName;
|
||||
|
||||
@Schema(description = "法人身份证")
|
||||
private String identityNumber;
|
||||
|
||||
@Schema(description = "经营范围")
|
||||
private String operateScope;
|
||||
|
||||
@Schema(description = "地址")
|
||||
private String address;
|
||||
|
||||
@Schema(description = "成立日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] establishDate;
|
||||
|
||||
@Schema(description = "注册资本")
|
||||
private BigDecimal registrationAmount;
|
||||
|
||||
@Schema(description = "营业期限开始")
|
||||
private LocalDateTime businessCycleStart;
|
||||
|
||||
@Schema(description = "营业期限结束")
|
||||
private LocalDateTime businessCycleEnd;
|
||||
|
||||
@Schema(description = "是否长期")
|
||||
private Integer isPermanently;
|
||||
|
||||
@Schema(description = "开户行", example = "15940")
|
||||
private String bankAccount;
|
||||
|
||||
@Schema(description = "登记机关")
|
||||
private String registrationAgency;
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user