master
parent
aea75f3476
commit
d4c77a504a
@ -0,0 +1,130 @@
|
||||
package com.gszc.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.gszc.build.Result;
|
||||
import com.gszc.build.ResultBuilder;
|
||||
import com.gszc.entity.Custom;
|
||||
import com.gszc.entity.Invoice;
|
||||
import com.gszc.entity.PcUser;
|
||||
import com.gszc.service.impl.CustomServiceImpl;
|
||||
import com.gszc.service.impl.PcUserServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(value = "工商注册 API", tags = {"后台公司api"})
|
||||
@RestController
|
||||
@RequestMapping("/pc/custom")
|
||||
public class PcCustomController {
|
||||
|
||||
@Autowired
|
||||
CustomServiceImpl customService;
|
||||
|
||||
@Autowired
|
||||
PcUserServiceImpl pcUserService;
|
||||
|
||||
@PostMapping("/pcTodoCustomList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "待接单列表", notes = "待接单列表")
|
||||
public Result pcTodoCustomList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
List<Custom> customs = customService.pcTodoCustomList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
@PostMapping("/pcDisableCustomList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "待认证列表", notes = "待认证列表")
|
||||
public Result pcDisableCustomList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
List<Custom> customs = customService.pcDisableCustomList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
@PostMapping("/pcEnableCustomList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "已认证列表", notes = "已认证列表")
|
||||
public Result pcEnableCustomList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
List<Custom> customs = customService.pcEnableCustomList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
@PostMapping("/pcUserList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "跟单员列表", notes = "跟单员列表")
|
||||
public Result pcUserList() {
|
||||
|
||||
List<PcUser> pcUsers = pcUserService.userList();
|
||||
return ResultBuilder.withPayload(pcUsers).build();
|
||||
}
|
||||
|
||||
@PostMapping("/doCustom")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "接单", notes = "接单")
|
||||
public Result doCustom(String customId,String userId) {
|
||||
|
||||
customService.doCustom(customId,userId);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
@PostMapping("/changeCopycat")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "修改接单员", notes = "修改接单员")
|
||||
public Result changeCopycat(String customId,String userId) {
|
||||
|
||||
customService.changeCopycat(customId,userId);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
@PostMapping("/customNotice")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "跟进备注", notes = "跟进备注")
|
||||
public Result customNotice(String customId, String notice, String noticeContent) {
|
||||
|
||||
customService.customNotice(customId,notice,noticeContent);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
@PostMapping("/enableCustom")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "认证公司", notes = "认证公司")
|
||||
public Result enableCustom(String customId, String businessLicense, String socialCreditCode,Long serviceBeginDate,Long serviceEndDate) {
|
||||
|
||||
customService.enableCustom(customId,businessLicense,socialCreditCode,serviceBeginDate,serviceEndDate);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
@PostMapping("/customDetail")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "注册公司详情", notes = "注册公司详情")
|
||||
public Result customDetail(String customId) {
|
||||
|
||||
JSONObject jsonObject = customService.customDetail(customId);
|
||||
return ResultBuilder.withPayload(jsonObject).build();
|
||||
}
|
||||
|
||||
@PostMapping("/enableCustomDetail")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "已认证公司详情", notes = "已认证公司详情")
|
||||
public Result enableCustomDetail(String customId) {
|
||||
|
||||
JSONObject jsonObject = customService.enableCustomDetail(customId);
|
||||
return ResultBuilder.withPayload(jsonObject).build();
|
||||
}
|
||||
|
||||
@PostMapping("/enableCustomDetailInvoiceList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "已认证公司详情开票记录", notes = "已认证公司详情开票记录")
|
||||
public Result enableCustomDetailInvoiceList(String customId,Integer pageNum,Integer pageSize) {
|
||||
|
||||
List<Invoice> invoiceList = customService.enableCustomDetailInvoiceList(customId, pageNum, pageSize);
|
||||
return ResultBuilder.withPayload(invoiceList).build();
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.gszc.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.gszc.build.Result;
|
||||
import com.gszc.build.ResultBuilder;
|
||||
import com.gszc.entity.Invoice;
|
||||
import com.gszc.entity.InvoiceHeader;
|
||||
import com.gszc.service.impl.InvoiceServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
@Api(value = "工商注册 API", tags = {"后台开票api"})
|
||||
@RestController
|
||||
@RequestMapping("/pc/invoice")
|
||||
public class PcInvoiceController {
|
||||
|
||||
@Autowired
|
||||
InvoiceServiceImpl invoiceService;
|
||||
|
||||
@PostMapping("/pcDisableInvoiceList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "待开票列表", notes = "待开票列表")
|
||||
public Result pcDisableInvoiceList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
List<Invoice> invoiceList = invoiceService.pcDisableInvoiceList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(invoiceList).build();
|
||||
}
|
||||
|
||||
@PostMapping("/pcEnableInvoiceList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "已开票列表", notes = "已开票列表")
|
||||
public Result pcEnableInvoiceList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
List<Invoice> invoiceList = invoiceService.pcEnableInvoiceList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(invoiceList).build();
|
||||
}
|
||||
|
||||
@PostMapping("/invoiceDetail")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "开票详情", notes = "开票详情")
|
||||
public Result invoiceDetail(String invoiceId) {
|
||||
|
||||
JSONObject jsonObject = invoiceService.invoiceDetail(invoiceId);
|
||||
return ResultBuilder.withPayload(jsonObject).build();
|
||||
}
|
||||
|
||||
@PostMapping("/invoiceConfirm")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "开票确认", notes = "开票确认")
|
||||
public Result invoiceConfirm(String invoiceId,String trackingCompany,String trackingCode,String trackingImg) {
|
||||
|
||||
invoiceService.invoiceConfirm(invoiceId,trackingCompany,trackingCode,trackingImg);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.gszc.controller;
|
||||
|
||||
import com.gszc.build.Result;
|
||||
import com.gszc.build.ResultBuilder;
|
||||
import com.gszc.entity.PcUser;
|
||||
import com.gszc.service.impl.PcUserServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
@Api(value = "工商注册 API", tags = {"后台用户api"})
|
||||
@RestController
|
||||
@RequestMapping("/pc/user")
|
||||
public class PcUserController {
|
||||
|
||||
@Autowired
|
||||
PcUserServiceImpl pcUserService;
|
||||
|
||||
@PostMapping("/pcUserList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "跟单员列表", notes = "跟单员列表")
|
||||
public Result pcUserList() {
|
||||
List<PcUser> pcUsers = pcUserService.userList();
|
||||
return ResultBuilder.withPayload(pcUsers).build();
|
||||
}
|
||||
|
||||
@PostMapping("/addPcUser")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "增加跟单员", notes = "增加跟单员")
|
||||
public Result addPcUser(@ModelAttribute @Valid PcUser pcUser) {
|
||||
pcUserService.addUser(pcUser);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
@PostMapping("/updateUser")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "编辑跟单员", notes = "编辑跟单员")
|
||||
public Result updateUser(@ModelAttribute @Valid PcUser pcUser) {
|
||||
pcUserService.updateUser(pcUser);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
@PostMapping("/deleteUser")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "删除跟单员", notes = "删除跟单员")
|
||||
public Result deleteUser(String pcUserId) {
|
||||
pcUserService.deleteUser(pcUserId);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package com.gszc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.service.IService;
|
||||
import com.gszc.entity.CustomSupport;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author ky
|
||||
* @since 2020-04-27
|
||||
*/
|
||||
public interface ICustomSupportService extends IService<CustomSupport> {
|
||||
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package com.gszc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.service.IService;
|
||||
import com.gszc.entity.InvoiceHeader;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 发票抬头 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author ky
|
||||
* @since 2020-04-27
|
||||
*/
|
||||
public interface IInvoiceHeaderService extends IService<InvoiceHeader> {
|
||||
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package com.gszc.service;
|
||||
|
||||
import com.baomidou.mybatisplus.service.IService;
|
||||
import com.gszc.entity.MiniUser;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author ky
|
||||
* @since 2020-04-27
|
||||
*/
|
||||
public interface IMiniUserService extends IService<MiniUser> {
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.gszc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
||||
import com.gszc.entity.CustomSupport;
|
||||
import com.gszc.mapper.CustomSupportMapper;
|
||||
import com.gszc.service.ICustomSupportService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author ky
|
||||
* @since 2020-04-27
|
||||
*/
|
||||
@Service
|
||||
public class CustomSupportServiceImpl extends ServiceImpl<CustomSupportMapper, CustomSupport> implements ICustomSupportService {
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.gszc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
||||
import com.gszc.entity.InvoiceHeader;
|
||||
import com.gszc.mapper.InvoiceHeaderMapper;
|
||||
import com.gszc.service.IInvoiceHeaderService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 发票抬头 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author ky
|
||||
* @since 2020-04-27
|
||||
*/
|
||||
@Service
|
||||
public class InvoiceHeaderServiceImpl extends ServiceImpl<InvoiceHeaderMapper, InvoiceHeader> implements IInvoiceHeaderService {
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.gszc.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
||||
import com.gszc.entity.MiniUser;
|
||||
import com.gszc.mapper.MiniUserMapper;
|
||||
import com.gszc.service.IMiniUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author ky
|
||||
* @since 2020-04-27
|
||||
*/
|
||||
@Service
|
||||
public class MiniUserServiceImpl extends ServiceImpl<MiniUserMapper, MiniUser> implements IMiniUserService {
|
||||
|
||||
}
|
Loading…
Reference in New Issue