diff --git a/base-fast/src/main/java/com/boge/modules/car/controller/CarController.java b/base-fast/src/main/java/com/boge/modules/car/controller/CarController.java new file mode 100644 index 0000000..a51480a --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/car/controller/CarController.java @@ -0,0 +1,89 @@ +package com.boge.modules.car.controller; + +import java.util.Arrays; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.boge.modules.car.entity.CarEntity; +import com.boge.modules.car.service.CarService; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.R; + + + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:51:45 + */ +@RestController +@RequestMapping("car/car") +public class CarController { + @Autowired + private CarService carService; + + /** + * 列表 + */ + @RequestMapping("/list") + //@RequiresPermissions("car:car:list") + public R list(@RequestParam Map params){ + PageUtils page = carService.queryPage(params); + + return R.ok().put("page", page); + } + + + /** + * 信息 + */ + @RequestMapping("/info/{carId}") + //@RequiresPermissions("car:car:info") + public R info(@PathVariable("carId") Long carId){ + CarEntity car = carService.getById(carId); + + return R.ok().put("car", car); + } + + /** + * 保存 + */ + @RequestMapping("/save") + //@RequiresPermissions("car:car:save") + public R save(@RequestBody CarEntity car){ + carService.save(car); + + return R.ok(); + } + + /** + * 修改 + */ + @RequestMapping("/update") + //@RequiresPermissions("car:car:update") + public R update(@RequestBody CarEntity car){ + carService.updateById(car); + + return R.ok(); + } + + /** + * 删除 + */ + @RequestMapping("/delete") + //@RequiresPermissions("car:car:delete") + public R delete(@RequestBody Long[] carIds){ + carService.removeByIds(Arrays.asList(carIds)); + + return R.ok(); + } + +} diff --git a/base-fast/src/main/java/com/boge/modules/car/dao/CarDao.java b/base-fast/src/main/java/com/boge/modules/car/dao/CarDao.java new file mode 100644 index 0000000..caa226e --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/car/dao/CarDao.java @@ -0,0 +1,17 @@ +package com.boge.modules.car.dao; + +import com.boge.modules.car.entity.CarEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:51:45 + */ +@Mapper +public interface CarDao extends BaseMapper { + +} diff --git a/base-fast/src/main/java/com/boge/modules/car/entity/CarEntity.java b/base-fast/src/main/java/com/boge/modules/car/entity/CarEntity.java new file mode 100644 index 0000000..ca04aad --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/car/entity/CarEntity.java @@ -0,0 +1,52 @@ +package com.boge.modules.car.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:51:45 + */ +@Data +@TableName("sys_car") +public class CarEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId + private Long carId; + /** + * 车型名称 + */ + private String carName; + /** + * 导航类型 + */ + private Integer navigationType; + /** + * 备注 + */ + private String remarks; + /** + * 是否启用 + */ + private Integer isOn; + /** + * 创建者ID + */ + private Long createUserId; + /** + * 创建时间 + */ + private Date createTime; + +} diff --git a/base-fast/src/main/java/com/boge/modules/car/service/CarService.java b/base-fast/src/main/java/com/boge/modules/car/service/CarService.java new file mode 100644 index 0000000..7f737d9 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/car/service/CarService.java @@ -0,0 +1,20 @@ +package com.boge.modules.car.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.boge.common.utils.PageUtils; +import com.boge.modules.car.entity.CarEntity; + +import java.util.Map; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:51:45 + */ +public interface CarService extends IService { + + PageUtils queryPage(Map params); +} + diff --git a/base-fast/src/main/java/com/boge/modules/car/service/impl/CarServiceImpl.java b/base-fast/src/main/java/com/boge/modules/car/service/impl/CarServiceImpl.java new file mode 100644 index 0000000..4648b98 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/car/service/impl/CarServiceImpl.java @@ -0,0 +1,29 @@ +package com.boge.modules.car.service.impl; + +import org.springframework.stereotype.Service; +import java.util.Map; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.Query; + +import com.boge.modules.car.dao.CarDao; +import com.boge.modules.car.entity.CarEntity; +import com.boge.modules.car.service.CarService; + + +@Service("carService") +public class CarServiceImpl extends ServiceImpl implements CarService { + + @Override + public PageUtils queryPage(Map params) { + IPage page = this.page( + new Query().getPage(params), + new QueryWrapper() + ); + + return new PageUtils(page); + } + +} \ No newline at end of file diff --git a/base-fast/src/main/java/com/boge/modules/client/controller/ClientController.java b/base-fast/src/main/java/com/boge/modules/client/controller/ClientController.java new file mode 100644 index 0000000..a2e6dd7 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/client/controller/ClientController.java @@ -0,0 +1,89 @@ +package com.boge.modules.client.controller; + +import java.util.Arrays; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.boge.modules.client.entity.ClientEntity; +import com.boge.modules.client.service.ClientService; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.R; + + + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:46:19 + */ +@RestController +@RequestMapping("client/client") +public class ClientController { + @Autowired + private ClientService clientService; + + /** + * 列表 + */ + @RequestMapping("/list") + //@RequiresPermissions("client:client:list") + public R list(@RequestParam Map params){ + PageUtils page = clientService.queryPage(params); + + return R.ok().put("page", page); + } + + + /** + * 信息 + */ + @RequestMapping("/info/{clientId}") + //@RequiresPermissions("client:client:info") + public R info(@PathVariable("clientId") Long clientId){ + ClientEntity client = clientService.getById(clientId); + + return R.ok().put("client", client); + } + + /** + * 保存 + */ + @RequestMapping("/save") + //@RequiresPermissions("client:client:save") + public R save(@RequestBody ClientEntity client){ + clientService.save(client); + + return R.ok(); + } + + /** + * 修改 + */ + @RequestMapping("/update") + //@RequiresPermissions("client:client:update") + public R update(@RequestBody ClientEntity client){ + clientService.updateById(client); + + return R.ok(); + } + + /** + * 删除 + */ + @RequestMapping("/delete") + //@RequiresPermissions("client:client:delete") + public R delete(@RequestBody Long[] clientIds){ + clientService.removeByIds(Arrays.asList(clientIds)); + + return R.ok(); + } + +} diff --git a/base-fast/src/main/java/com/boge/modules/client/dao/ClientDao.java b/base-fast/src/main/java/com/boge/modules/client/dao/ClientDao.java new file mode 100644 index 0000000..0c4f0de --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/client/dao/ClientDao.java @@ -0,0 +1,17 @@ +package com.boge.modules.client.dao; + +import com.boge.modules.client.entity.ClientEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:46:19 + */ +@Mapper +public interface ClientDao extends BaseMapper { + +} diff --git a/base-fast/src/main/java/com/boge/modules/client/entity/ClientEntity.java b/base-fast/src/main/java/com/boge/modules/client/entity/ClientEntity.java new file mode 100644 index 0000000..98d466c --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/client/entity/ClientEntity.java @@ -0,0 +1,52 @@ +package com.boge.modules.client.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:46:19 + */ +@Data +@TableName("sys_client") +public class ClientEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId + private Long clientId; + /** + * 客户名称 + */ + private String clientName; + /** + * 法人代表 + */ + private String juridicalPerson; + /** + * 地址 + */ + private String address; + /** + * 行业 + */ + private String industry; + /** + * 是否启用 + */ + private Integer isOn; + /** + * 创建日期 + */ + private Date createTime; + +} diff --git a/base-fast/src/main/java/com/boge/modules/client/service/ClientService.java b/base-fast/src/main/java/com/boge/modules/client/service/ClientService.java new file mode 100644 index 0000000..ea348d1 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/client/service/ClientService.java @@ -0,0 +1,20 @@ +package com.boge.modules.client.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.boge.common.utils.PageUtils; +import com.boge.modules.client.entity.ClientEntity; + +import java.util.Map; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:46:19 + */ +public interface ClientService extends IService { + + PageUtils queryPage(Map params); +} + diff --git a/base-fast/src/main/java/com/boge/modules/client/service/impl/ClientServiceImpl.java b/base-fast/src/main/java/com/boge/modules/client/service/impl/ClientServiceImpl.java new file mode 100644 index 0000000..e169fc6 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/client/service/impl/ClientServiceImpl.java @@ -0,0 +1,29 @@ +package com.boge.modules.client.service.impl; + +import org.springframework.stereotype.Service; +import java.util.Map; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.Query; + +import com.boge.modules.client.dao.ClientDao; +import com.boge.modules.client.entity.ClientEntity; +import com.boge.modules.client.service.ClientService; + + +@Service("clientService") +public class ClientServiceImpl extends ServiceImpl implements ClientService { + + @Override + public PageUtils queryPage(Map params) { + IPage page = this.page( + new Query().getPage(params), + new QueryWrapper() + ); + + return new PageUtils(page); + } + +} \ No newline at end of file diff --git a/base-fast/src/main/java/com/boge/modules/contract/controller/ContractController.java b/base-fast/src/main/java/com/boge/modules/contract/controller/ContractController.java new file mode 100644 index 0000000..461bf2d --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/contract/controller/ContractController.java @@ -0,0 +1,89 @@ +package com.boge.modules.contract.controller; + +import java.util.Arrays; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.boge.modules.contract.entity.ContractEntity; +import com.boge.modules.contract.service.ContractService; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.R; + + + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:33:35 + */ +@RestController +@RequestMapping("flow/contract") +public class ContractController { + @Autowired + private ContractService contractService; + + /** + * 列表 + */ + @RequestMapping("/list") + //@RequiresPermissions("flow:contract:list") + public R list(@RequestParam Map params){ + PageUtils page = contractService.queryPage(params); + + return R.ok().put("page", page); + } + + + /** + * 信息 + */ + @RequestMapping("/info/{contractId}") + //@RequiresPermissions("flow:contract:info") + public R info(@PathVariable("contractId") Integer contractId){ + ContractEntity contract = contractService.getById(contractId); + + return R.ok().put("contract", contract); + } + + /** + * 保存 + */ + @RequestMapping("/save") + //@RequiresPermissions("flow:contract:save") + public R save(@RequestBody ContractEntity contract){ + contractService.save(contract); + + return R.ok(); + } + + /** + * 修改 + */ + @RequestMapping("/update") + //@RequiresPermissions("flow:contract:update") + public R update(@RequestBody ContractEntity contract){ + contractService.updateById(contract); + + return R.ok(); + } + + /** + * 删除 + */ + @RequestMapping("/delete") + //@RequiresPermissions("flow:contract:delete") + public R delete(@RequestBody Integer[] contractIds){ + contractService.removeByIds(Arrays.asList(contractIds)); + + return R.ok(); + } + +} diff --git a/base-fast/src/main/java/com/boge/modules/contract/dao/ContractDao.java b/base-fast/src/main/java/com/boge/modules/contract/dao/ContractDao.java new file mode 100644 index 0000000..97c228a --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/contract/dao/ContractDao.java @@ -0,0 +1,17 @@ +package com.boge.modules.contract.dao; + +import com.boge.modules.contract.entity.ContractEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:33:35 + */ +@Mapper +public interface ContractDao extends BaseMapper { + +} diff --git a/base-fast/src/main/java/com/boge/modules/contract/entity/ContractEntity.java b/base-fast/src/main/java/com/boge/modules/contract/entity/ContractEntity.java new file mode 100644 index 0000000..bb9f496 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/contract/entity/ContractEntity.java @@ -0,0 +1,64 @@ +package com.boge.modules.contract.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:33:35 + */ +@Data +@TableName("sys_contract") +public class ContractEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId + private Integer contractId; + /** + * 合同类型 + */ + private Integer contractType; + /** + * 是否是主合同 + */ + private Integer isMaster; + /** + * 合同编号 + */ + private String contractNumber; + /** + * 客户id + */ + private Long clientId; + /** + * 物料信息 + */ + private String materialJson; + /** + * 是否验收 + */ + private Integer isAcceptance; + /** + * 创建日期 + */ + private Date createTime; + /** + * 创建日期 + */ + private Date acceptanceTime; + /** + * 备注 + */ + private String remarks; + +} diff --git a/base-fast/src/main/java/com/boge/modules/contract/service/ContractService.java b/base-fast/src/main/java/com/boge/modules/contract/service/ContractService.java new file mode 100644 index 0000000..77a9045 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/contract/service/ContractService.java @@ -0,0 +1,20 @@ +package com.boge.modules.contract.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.boge.common.utils.PageUtils; +import com.boge.modules.contract.entity.ContractEntity; + +import java.util.Map; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:33:35 + */ +public interface ContractService extends IService { + + PageUtils queryPage(Map params); +} + diff --git a/base-fast/src/main/java/com/boge/modules/contract/service/impl/ContractServiceImpl.java b/base-fast/src/main/java/com/boge/modules/contract/service/impl/ContractServiceImpl.java new file mode 100644 index 0000000..04e0a67 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/contract/service/impl/ContractServiceImpl.java @@ -0,0 +1,29 @@ +package com.boge.modules.contract.service.impl; + +import org.springframework.stereotype.Service; +import java.util.Map; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.Query; + +import com.boge.modules.contract.dao.ContractDao; +import com.boge.modules.contract.entity.ContractEntity; +import com.boge.modules.contract.service.ContractService; + + +@Service("contractService") +public class ContractServiceImpl extends ServiceImpl implements ContractService { + + @Override + public PageUtils queryPage(Map params) { + IPage page = this.page( + new Query().getPage(params), + new QueryWrapper() + ); + + return new PageUtils(page); + } + +} diff --git a/base-fast/src/main/java/com/boge/modules/flow/controller/FlwDeModelController.java b/base-fast/src/main/java/com/boge/modules/flow/controller/FlwDeModelController.java index 26eab4e..978bfaf 100644 --- a/base-fast/src/main/java/com/boge/modules/flow/controller/FlwDeModelController.java +++ b/base-fast/src/main/java/com/boge/modules/flow/controller/FlwDeModelController.java @@ -26,7 +26,7 @@ import com.boge.common.utils.R; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2025-01-09 13:56:25 */ diff --git a/base-fast/src/main/java/com/boge/modules/flow/dao/FlwDeModelDao.java b/base-fast/src/main/java/com/boge/modules/flow/dao/FlwDeModelDao.java index 243cf42..fe9cb64 100644 --- a/base-fast/src/main/java/com/boge/modules/flow/dao/FlwDeModelDao.java +++ b/base-fast/src/main/java/com/boge/modules/flow/dao/FlwDeModelDao.java @@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Mapper; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2025-01-09 13:56:25 */ diff --git a/base-fast/src/main/java/com/boge/modules/flow/entity/FlwDeModelEntity.java b/base-fast/src/main/java/com/boge/modules/flow/entity/FlwDeModelEntity.java index bb169f9..f20f9ae 100644 --- a/base-fast/src/main/java/com/boge/modules/flow/entity/FlwDeModelEntity.java +++ b/base-fast/src/main/java/com/boge/modules/flow/entity/FlwDeModelEntity.java @@ -10,7 +10,7 @@ import lombok.Data; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2025-01-09 13:56:25 */ diff --git a/base-fast/src/main/java/com/boge/modules/flow/service/FlwDeModelService.java b/base-fast/src/main/java/com/boge/modules/flow/service/FlwDeModelService.java index c0832cc..85207df 100644 --- a/base-fast/src/main/java/com/boge/modules/flow/service/FlwDeModelService.java +++ b/base-fast/src/main/java/com/boge/modules/flow/service/FlwDeModelService.java @@ -9,7 +9,7 @@ import java.util.Map; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2025-01-09 13:56:25 */ diff --git a/base-fast/src/main/java/com/boge/modules/material/controller/MaterialController.java b/base-fast/src/main/java/com/boge/modules/material/controller/MaterialController.java new file mode 100644 index 0000000..897c723 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/material/controller/MaterialController.java @@ -0,0 +1,89 @@ +package com.boge.modules.material.controller; + +import java.util.Arrays; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.boge.modules.material.entity.MaterialEntity; +import com.boge.modules.material.service.MaterialService; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.R; + + + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 20:06:39 + */ +@RestController +@RequestMapping("material/material") +public class MaterialController { + @Autowired + private MaterialService materialService; + + /** + * 列表 + */ + @RequestMapping("/list") + //@RequiresPermissions("material:material:list") + public R list(@RequestParam Map params){ + PageUtils page = materialService.queryPage(params); + + return R.ok().put("page", page); + } + + + /** + * 信息 + */ + @RequestMapping("/info/{materialId}") + //@RequiresPermissions("material:material:info") + public R info(@PathVariable("materialId") Long materialId){ + MaterialEntity material = materialService.getById(materialId); + + return R.ok().put("material", material); + } + + /** + * 保存 + */ + @RequestMapping("/save") + //@RequiresPermissions("material:material:save") + public R save(@RequestBody MaterialEntity material){ + materialService.save(material); + + return R.ok(); + } + + /** + * 修改 + */ + @RequestMapping("/update") + //@RequiresPermissions("material:material:update") + public R update(@RequestBody MaterialEntity material){ + materialService.updateById(material); + + return R.ok(); + } + + /** + * 删除 + */ + @RequestMapping("/delete") + //@RequiresPermissions("material:material:delete") + public R delete(@RequestBody Long[] materialIds){ + materialService.removeByIds(Arrays.asList(materialIds)); + + return R.ok(); + } + +} diff --git a/base-fast/src/main/java/com/boge/modules/material/dao/MaterialDao.java b/base-fast/src/main/java/com/boge/modules/material/dao/MaterialDao.java new file mode 100644 index 0000000..5ba0e1e --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/material/dao/MaterialDao.java @@ -0,0 +1,17 @@ +package com.boge.modules.material.dao; + +import com.boge.modules.material.entity.MaterialEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 20:06:39 + */ +@Mapper +public interface MaterialDao extends BaseMapper { + +} diff --git a/base-fast/src/main/java/com/boge/modules/material/entity/MaterialEntity.java b/base-fast/src/main/java/com/boge/modules/material/entity/MaterialEntity.java new file mode 100644 index 0000000..a543a00 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/material/entity/MaterialEntity.java @@ -0,0 +1,48 @@ +package com.boge.modules.material.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 20:06:39 + */ +@Data +@TableName("sys_material") +public class MaterialEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId + private Long materialId; + /** + * 物料编码 + */ + private String materialCode; + /** + * 物料名称 + */ + private String materialName; + /** + * 物料类型 + */ + private Integer materialType; + /** + * 是否启用 + */ + private Integer isOn; + /** + * 创建时间 + */ + private Date createTime; + +} diff --git a/base-fast/src/main/java/com/boge/modules/material/service/MaterialService.java b/base-fast/src/main/java/com/boge/modules/material/service/MaterialService.java new file mode 100644 index 0000000..1140b2d --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/material/service/MaterialService.java @@ -0,0 +1,20 @@ +package com.boge.modules.material.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.boge.common.utils.PageUtils; +import com.boge.modules.material.entity.MaterialEntity; + +import java.util.Map; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 20:06:39 + */ +public interface MaterialService extends IService { + + PageUtils queryPage(Map params); +} + diff --git a/base-fast/src/main/java/com/boge/modules/material/service/impl/MaterialServiceImpl.java b/base-fast/src/main/java/com/boge/modules/material/service/impl/MaterialServiceImpl.java new file mode 100644 index 0000000..581c277 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/material/service/impl/MaterialServiceImpl.java @@ -0,0 +1,29 @@ +package com.boge.modules.material.service.impl; + +import org.springframework.stereotype.Service; +import java.util.Map; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.Query; + +import com.boge.modules.material.dao.MaterialDao; +import com.boge.modules.material.entity.MaterialEntity; +import com.boge.modules.material.service.MaterialService; + + +@Service("materialService") +public class MaterialServiceImpl extends ServiceImpl implements MaterialService { + + @Override + public PageUtils queryPage(Map params) { + IPage page = this.page( + new Query().getPage(params), + new QueryWrapper() + ); + + return new PageUtils(page); + } + +} \ No newline at end of file diff --git a/base-fast/src/main/java/com/boge/modules/sys/controller/NoticeController.java b/base-fast/src/main/java/com/boge/modules/sys/controller/NoticeController.java index 75f7c03..26ca414 100644 --- a/base-fast/src/main/java/com/boge/modules/sys/controller/NoticeController.java +++ b/base-fast/src/main/java/com/boge/modules/sys/controller/NoticeController.java @@ -22,7 +22,7 @@ import com.boge.common.utils.R; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2023-05-31 23:44:03 */ diff --git a/base-fast/src/main/java/com/boge/modules/sys/dao/NoticeDao.java b/base-fast/src/main/java/com/boge/modules/sys/dao/NoticeDao.java index fd874f8..6172a0f 100644 --- a/base-fast/src/main/java/com/boge/modules/sys/dao/NoticeDao.java +++ b/base-fast/src/main/java/com/boge/modules/sys/dao/NoticeDao.java @@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Mapper; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2023-05-31 23:44:03 */ diff --git a/base-fast/src/main/java/com/boge/modules/sys/entity/NoticeEntity.java b/base-fast/src/main/java/com/boge/modules/sys/entity/NoticeEntity.java index 45dc6f1..d73803f 100644 --- a/base-fast/src/main/java/com/boge/modules/sys/entity/NoticeEntity.java +++ b/base-fast/src/main/java/com/boge/modules/sys/entity/NoticeEntity.java @@ -10,7 +10,7 @@ import lombok.Data; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2023-05-31 23:44:03 */ diff --git a/base-fast/src/main/java/com/boge/modules/sys/service/NoticeService.java b/base-fast/src/main/java/com/boge/modules/sys/service/NoticeService.java index 5c384e8..7c95b1f 100644 --- a/base-fast/src/main/java/com/boge/modules/sys/service/NoticeService.java +++ b/base-fast/src/main/java/com/boge/modules/sys/service/NoticeService.java @@ -9,7 +9,7 @@ import java.util.Map; /** * * - * @author boge + * @author ls * @email dengpbs@163.com * @date 2023-05-31 23:44:03 */ diff --git a/base-fast/src/main/java/com/boge/modules/tickets/controller/TicketsController.java b/base-fast/src/main/java/com/boge/modules/tickets/controller/TicketsController.java new file mode 100644 index 0000000..e5e7f0c --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/tickets/controller/TicketsController.java @@ -0,0 +1,89 @@ +package com.boge.modules.tickets.controller; + +import java.util.Arrays; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import com.boge.modules.tickets.entity.TicketsEntity; +import com.boge.modules.tickets.service.TicketsService; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.R; + + + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:56:28 + */ +@RestController +@RequestMapping("tickets/tickets") +public class TicketsController { + @Autowired + private TicketsService ticketsService; + + /** + * 列表 + */ + @RequestMapping("/list") + //@RequiresPermissions("tickets:tickets:list") + public R list(@RequestParam Map params){ + PageUtils page = ticketsService.queryPage(params); + + return R.ok().put("page", page); + } + + + /** + * 信息 + */ + @RequestMapping("/info/{ticketsId}") + //@RequiresPermissions("tickets:tickets:info") + public R info(@PathVariable("ticketsId") String ticketsId){ + TicketsEntity tickets = ticketsService.getById(ticketsId); + + return R.ok().put("tickets", tickets); + } + + /** + * 保存 + */ + @RequestMapping("/save") + //@RequiresPermissions("tickets:tickets:save") + public R save(@RequestBody TicketsEntity tickets){ + ticketsService.save(tickets); + + return R.ok(); + } + + /** + * 修改 + */ + @RequestMapping("/update") + //@RequiresPermissions("tickets:tickets:update") + public R update(@RequestBody TicketsEntity tickets){ + ticketsService.updateById(tickets); + + return R.ok(); + } + + /** + * 删除 + */ + @RequestMapping("/delete") + //@RequiresPermissions("tickets:tickets:delete") + public R delete(@RequestBody String[] ticketsIds){ + ticketsService.removeByIds(Arrays.asList(ticketsIds)); + + return R.ok(); + } + +} diff --git a/base-fast/src/main/java/com/boge/modules/tickets/dao/TicketsDao.java b/base-fast/src/main/java/com/boge/modules/tickets/dao/TicketsDao.java new file mode 100644 index 0000000..412ab02 --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/tickets/dao/TicketsDao.java @@ -0,0 +1,17 @@ +package com.boge.modules.tickets.dao; + +import com.boge.modules.tickets.entity.TicketsEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:56:28 + */ +@Mapper +public interface TicketsDao extends BaseMapper { + +} diff --git a/base-fast/src/main/java/com/boge/modules/tickets/entity/TicketsEntity.java b/base-fast/src/main/java/com/boge/modules/tickets/entity/TicketsEntity.java new file mode 100644 index 0000000..35711cc --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/tickets/entity/TicketsEntity.java @@ -0,0 +1,64 @@ +package com.boge.modules.tickets.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:56:28 + */ +@Data +@TableName("sys_tickets") +public class TicketsEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 工单id + */ + @TableId + private String ticketsId; + /** + * 小车类型 + */ + private Integer carType; + /** + * 异常类型 + */ + private Integer errorType; + /** + * 合同编号 + */ + private String contractNumber; + /** + * 客户id + */ + private Long clientId; + /** + * 故障描述 + */ + private String description; + /** + * 部门对接人 + */ + private String deptPeople; + /** + * 客户联系电话 + */ + private String deptPhone; + /** + * 创建者ID + */ + private Long createUserId; + /** + * 创建时间 + */ + private Date createTime; + +} diff --git a/base-fast/src/main/java/com/boge/modules/tickets/service/TicketsService.java b/base-fast/src/main/java/com/boge/modules/tickets/service/TicketsService.java new file mode 100644 index 0000000..a580b4e --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/tickets/service/TicketsService.java @@ -0,0 +1,20 @@ +package com.boge.modules.tickets.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.boge.common.utils.PageUtils; +import com.boge.modules.tickets.entity.TicketsEntity; + +import java.util.Map; + +/** + * + * + * @author ls + * @email dengpbs@163.com + * @date 2025-02-26 19:56:28 + */ +public interface TicketsService extends IService { + + PageUtils queryPage(Map params); +} + diff --git a/base-fast/src/main/java/com/boge/modules/tickets/service/impl/TicketsServiceImpl.java b/base-fast/src/main/java/com/boge/modules/tickets/service/impl/TicketsServiceImpl.java new file mode 100644 index 0000000..1d3091f --- /dev/null +++ b/base-fast/src/main/java/com/boge/modules/tickets/service/impl/TicketsServiceImpl.java @@ -0,0 +1,29 @@ +package com.boge.modules.tickets.service.impl; + +import org.springframework.stereotype.Service; +import java.util.Map; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.boge.common.utils.PageUtils; +import com.boge.common.utils.Query; + +import com.boge.modules.tickets.dao.TicketsDao; +import com.boge.modules.tickets.entity.TicketsEntity; +import com.boge.modules.tickets.service.TicketsService; + + +@Service("ticketsService") +public class TicketsServiceImpl extends ServiceImpl implements TicketsService { + + @Override + public PageUtils queryPage(Map params) { + IPage page = this.page( + new Query().getPage(params), + new QueryWrapper() + ); + + return new PageUtils(page); + } + +} \ No newline at end of file diff --git a/base-fast/src/main/resources/mapper/car/CarDao.xml b/base-fast/src/main/resources/mapper/car/CarDao.xml new file mode 100644 index 0000000..a86ce69 --- /dev/null +++ b/base-fast/src/main/resources/mapper/car/CarDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base-fast/src/main/resources/mapper/client/ClientDao.xml b/base-fast/src/main/resources/mapper/client/ClientDao.xml new file mode 100644 index 0000000..2380ef2 --- /dev/null +++ b/base-fast/src/main/resources/mapper/client/ClientDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base-fast/src/main/resources/mapper/contract/ContractDao.xml b/base-fast/src/main/resources/mapper/contract/ContractDao.xml new file mode 100644 index 0000000..fc72940 --- /dev/null +++ b/base-fast/src/main/resources/mapper/contract/ContractDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/base-fast/src/main/resources/mapper/material/MaterialDao.xml b/base-fast/src/main/resources/mapper/material/MaterialDao.xml new file mode 100644 index 0000000..016a222 --- /dev/null +++ b/base-fast/src/main/resources/mapper/material/MaterialDao.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base-fast/src/main/resources/mapper/tickets/TicketsDao.xml b/base-fast/src/main/resources/mapper/tickets/TicketsDao.xml new file mode 100644 index 0000000..c1052ca --- /dev/null +++ b/base-fast/src/main/resources/mapper/tickets/TicketsDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base-vue/src/views/modules/car/CarDao.xml b/base-vue/src/views/modules/car/CarDao.xml new file mode 100644 index 0000000..a86ce69 --- /dev/null +++ b/base-vue/src/views/modules/car/CarDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base-vue/src/views/modules/client/client-add-or-update.vue b/base-vue/src/views/modules/client/client-add-or-update.vue new file mode 100644 index 0000000..d5e91d5 --- /dev/null +++ b/base-vue/src/views/modules/client/client-add-or-update.vue @@ -0,0 +1,129 @@ + + + diff --git a/base-vue/src/views/modules/client/client.vue b/base-vue/src/views/modules/client/client.vue new file mode 100644 index 0000000..01fac17 --- /dev/null +++ b/base-vue/src/views/modules/client/client.vue @@ -0,0 +1,193 @@ + + + diff --git a/base-vue/src/views/modules/contract/ContractDao.xml b/base-vue/src/views/modules/contract/ContractDao.xml new file mode 100644 index 0000000..30893ba --- /dev/null +++ b/base-vue/src/views/modules/contract/ContractDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base-vue/src/views/modules/material/material-add-or-update.vue b/base-vue/src/views/modules/material/material-add-or-update.vue new file mode 100644 index 0000000..5d92f55 --- /dev/null +++ b/base-vue/src/views/modules/material/material-add-or-update.vue @@ -0,0 +1,120 @@ + + + diff --git a/base-vue/src/views/modules/material/material.vue b/base-vue/src/views/modules/material/material.vue new file mode 100644 index 0000000..7b84d1f --- /dev/null +++ b/base-vue/src/views/modules/material/material.vue @@ -0,0 +1,187 @@ + + + diff --git a/base-vue/src/views/modules/tickets/tickets-add-or-update.vue b/base-vue/src/views/modules/tickets/tickets-add-or-update.vue new file mode 100644 index 0000000..a7c1bde --- /dev/null +++ b/base-vue/src/views/modules/tickets/tickets-add-or-update.vue @@ -0,0 +1,156 @@ + + + diff --git a/base-vue/src/views/modules/tickets/tickets.vue b/base-vue/src/views/modules/tickets/tickets.vue new file mode 100644 index 0000000..07f34bb --- /dev/null +++ b/base-vue/src/views/modules/tickets/tickets.vue @@ -0,0 +1,211 @@ + + +