Initial commit
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
package com.gxwebsoft.tower.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.tower.service.TowerAccessoryService;
|
||||
import com.gxwebsoft.tower.entity.TowerAccessory;
|
||||
import com.gxwebsoft.tower.param.TowerAccessoryParam;
|
||||
import com.gxwebsoft.common.core.web.ApiResult;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.BatchParam;
|
||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 配件管理控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 11:53:48
|
||||
*/
|
||||
@Api(tags = "配件管理管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/tower/tower-accessory")
|
||||
public class TowerAccessoryController extends BaseController {
|
||||
@Resource
|
||||
private TowerAccessoryService towerAccessoryService;
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("分页查询配件管理")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<TowerAccessory>> page(TowerAccessoryParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerAccessoryService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("查询全部配件管理")
|
||||
@GetMapping()
|
||||
public ApiResult<List<TowerAccessory>> list(TowerAccessoryParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerAccessoryService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询配件管理")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<TowerAccessory> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(towerAccessoryService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加配件管理")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody TowerAccessory towerAccessory) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
towerAccessory.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (towerAccessoryService.save(towerAccessory)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改配件管理")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody TowerAccessory towerAccessory) {
|
||||
if (towerAccessoryService.updateById(towerAccessory)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("删除配件管理")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (towerAccessoryService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加配件管理")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<TowerAccessory> list) {
|
||||
if (towerAccessoryService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改配件管理")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<TowerAccessory> batchParam) {
|
||||
if (batchParam.update(towerAccessoryService, "accessory_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerAccessory:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量删除配件管理")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (towerAccessoryService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package com.gxwebsoft.tower.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||
import com.gxwebsoft.common.core.web.ApiResult;
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.core.web.BatchParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.tower.entity.TowerEquipment;
|
||||
import com.gxwebsoft.tower.param.TowerEquipmentParam;
|
||||
import com.gxwebsoft.tower.service.TowerEquipmentService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔吊设备管理控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Api(tags = "塔吊设备管理管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/tower/tower-equipment")
|
||||
public class TowerEquipmentController extends BaseController {
|
||||
@Resource
|
||||
private TowerEquipmentService towerEquipmentService;
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("分页查询塔吊设备管理")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<TowerEquipment>> page(TowerEquipmentParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerEquipmentService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("查询全部塔吊设备管理")
|
||||
@GetMapping()
|
||||
public ApiResult<List<TowerEquipment>> list(TowerEquipmentParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerEquipmentService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询塔吊设备管理")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<TowerEquipment> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(towerEquipmentService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加塔吊设备管理")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody TowerEquipment towerEquipment) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
towerEquipment.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (towerEquipmentService.save(towerEquipment)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改塔吊设备管理")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody TowerEquipment towerEquipment) {
|
||||
if (towerEquipmentService.updateById(towerEquipment)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("删除塔吊设备管理")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (towerEquipmentService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加塔吊设备管理")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<TowerEquipment> list) {
|
||||
if (towerEquipmentService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改塔吊设备管理")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<TowerEquipment> batchParam) {
|
||||
if (batchParam.update(towerEquipmentService, "equipment_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量删除塔吊设备管理")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (towerEquipmentService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerEquipment:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改塔吊设备状态")
|
||||
@PutMapping("/status")
|
||||
public ApiResult<?> statusBatch(@RequestBody List<TowerEquipment> batchParam) {
|
||||
if (towerEquipmentService.updateBatchById(batchParam)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package com.gxwebsoft.tower.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||
import com.gxwebsoft.common.core.web.*;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.tower.entity.TowerModel;
|
||||
import com.gxwebsoft.tower.param.TowerModelParam;
|
||||
import com.gxwebsoft.tower.service.TowerModelService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备型号管理表控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-29 14:07:46
|
||||
*/
|
||||
@Api(tags = "设备型号管理表管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/tower/tower-model")
|
||||
public class TowerModelController extends BaseController {
|
||||
@Resource
|
||||
private TowerModelService towerModelService;
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("分页查询设备型号管理表")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<TowerModel>> page(TowerModelParam param) {
|
||||
PageParam<TowerModel, TowerModelParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(towerModelService.page(page, page.getWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(towerModelService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("查询全部设备型号管理表")
|
||||
@GetMapping()
|
||||
public ApiResult<List<TowerModel>> list(TowerModelParam param) {
|
||||
PageParam<TowerModel, TowerModelParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return success(towerModelService.list(page.getOrderWrapper()));
|
||||
// 使用关联查询
|
||||
//return success(towerModelService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询设备型号管理表")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<TowerModel> get(@PathVariable("id") Integer id) {
|
||||
return success(towerModelService.getById(id));
|
||||
// 使用关联查询
|
||||
//return success(towerModelService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加设备型号管理表")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody TowerModel towerModel) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
towerModel.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (towerModelService.save(towerModel)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改设备型号管理表")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody TowerModel towerModel) {
|
||||
if (towerModelService.updateById(towerModel)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("删除设备型号管理表")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (towerModelService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加设备型号管理表")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<TowerModel> list) {
|
||||
if (towerModelService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改设备型号管理表")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<TowerModel> batchParam) {
|
||||
if (batchParam.update(towerModelService, "category_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerModel:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量删除设备型号管理表")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (towerModelService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
package com.gxwebsoft.tower.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.tower.service.TowerProjectService;
|
||||
import com.gxwebsoft.tower.entity.TowerProject;
|
||||
import com.gxwebsoft.tower.param.TowerProjectParam;
|
||||
import com.gxwebsoft.common.core.web.ApiResult;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.BatchParam;
|
||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目管理控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 13:30:39
|
||||
*/
|
||||
@Api(tags = "项目管理管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/tower/tower-project")
|
||||
public class TowerProjectController extends BaseController {
|
||||
@Resource
|
||||
private TowerProjectService towerProjectService;
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("分页查询项目管理")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<TowerProject>> page(TowerProjectParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerProjectService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("查询全部项目管理")
|
||||
@GetMapping()
|
||||
public ApiResult<List<TowerProject>> list(TowerProjectParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerProjectService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询项目管理")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<TowerProject> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(towerProjectService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加项目管理")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody TowerProject towerProject) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
towerProject.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (towerProjectService.save(towerProject)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改项目管理")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody TowerProject towerProject) {
|
||||
if (towerProjectService.updateById(towerProject)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("删除项目管理")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (towerProjectService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加项目管理")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<TowerProject> list) {
|
||||
if (towerProjectService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改项目管理")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<TowerProject> batchParam) {
|
||||
if (batchParam.update(towerProjectService, "project_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerProject:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量删除项目管理")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (towerProjectService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
package com.gxwebsoft.tower.controller;
|
||||
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.tower.service.TowerWarehouseService;
|
||||
import com.gxwebsoft.tower.entity.TowerWarehouse;
|
||||
import com.gxwebsoft.tower.param.TowerWarehouseParam;
|
||||
import com.gxwebsoft.common.core.web.ApiResult;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.BatchParam;
|
||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 仓库管理控制器
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Api(tags = "仓库管理管理")
|
||||
@RestController
|
||||
@RequestMapping("/api/tower/tower-warehouse")
|
||||
public class TowerWarehouseController extends BaseController {
|
||||
@Resource
|
||||
private TowerWarehouseService towerWarehouseService;
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("分页查询仓库管理")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<TowerWarehouse>> page(TowerWarehouseParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerWarehouseService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("查询全部仓库管理")
|
||||
@GetMapping()
|
||||
public ApiResult<List<TowerWarehouse>> list(TowerWarehouseParam param) {
|
||||
// 使用关联查询
|
||||
return success(towerWarehouseService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:list')")
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询仓库管理")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<TowerWarehouse> get(@PathVariable("id") Integer id) {
|
||||
// 使用关联查询
|
||||
return success(towerWarehouseService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加仓库管理")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody TowerWarehouse towerWarehouse) {
|
||||
// 记录当前登录用户id
|
||||
User loginUser = getLoginUser();
|
||||
if (loginUser != null) {
|
||||
towerWarehouse.setUserId(loginUser.getUserId());
|
||||
}
|
||||
if (towerWarehouseService.save(towerWarehouse)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改仓库管理")
|
||||
@PutMapping()
|
||||
public ApiResult<?> update(@RequestBody TowerWarehouse towerWarehouse) {
|
||||
if (towerWarehouseService.updateById(towerWarehouse)) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("删除仓库管理")
|
||||
@DeleteMapping("/{id}")
|
||||
public ApiResult<?> remove(@PathVariable("id") Integer id) {
|
||||
if (towerWarehouseService.removeById(id)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加仓库管理")
|
||||
@PostMapping("/batch")
|
||||
public ApiResult<?> saveBatch(@RequestBody List<TowerWarehouse> list) {
|
||||
if (towerWarehouseService.saveBatch(list)) {
|
||||
return success("添加成功");
|
||||
}
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改仓库管理")
|
||||
@PutMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody BatchParam<TowerWarehouse> batchParam) {
|
||||
if (batchParam.update(towerWarehouseService, "warehouse_id")) {
|
||||
return success("修改成功");
|
||||
}
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('tower:towerWarehouse:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量删除仓库管理")
|
||||
@DeleteMapping("/batch")
|
||||
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
|
||||
if (towerWarehouseService.removeByIds(ids)) {
|
||||
return success("删除成功");
|
||||
}
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
109
src/main/java/com/gxwebsoft/tower/entity/TowerAccessory.java
Normal file
109
src/main/java/com/gxwebsoft/tower/entity/TowerAccessory.java
Normal file
@@ -0,0 +1,109 @@
|
||||
package com.gxwebsoft.tower.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import java.time.LocalDate;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 配件管理
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 11:53:48
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "TowerAccessory对象", description = "配件管理")
|
||||
public class TowerAccessory implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@TableId(value = "accessory_id", type = IdType.AUTO)
|
||||
private Integer accessoryId;
|
||||
|
||||
@ApiModelProperty(value = "配件名称")
|
||||
private String accessoryName;
|
||||
|
||||
@ApiModelProperty(value = "配件编号")
|
||||
private String accessoryNo;
|
||||
|
||||
@ApiModelProperty(value = "配件分类")
|
||||
private String accessoryCategory;
|
||||
|
||||
@ApiModelProperty(value = "适用设备型号")
|
||||
private String accessoryModel;
|
||||
|
||||
@ApiModelProperty(value = "配件规格")
|
||||
private String accessorySpecs;
|
||||
|
||||
@ApiModelProperty(value = "单价")
|
||||
private BigDecimal accessoryPrice;
|
||||
|
||||
@ApiModelProperty(value = "配件单位")
|
||||
private String accessoryUnit;
|
||||
|
||||
@ApiModelProperty(value = "重量")
|
||||
private String accessoryWeight;
|
||||
|
||||
@ApiModelProperty(value = "库存总量")
|
||||
private Integer accessoryStock;
|
||||
|
||||
@ApiModelProperty(value = "产权单位名称")
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty(value = "产权单位编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "制造厂商")
|
||||
private String manufactor;
|
||||
|
||||
@ApiModelProperty(value = "制造厂商编号")
|
||||
private String manufactorNo;
|
||||
|
||||
@ApiModelProperty(value = "使用年限")
|
||||
private String lifeYear;
|
||||
|
||||
@ApiModelProperty(value = "出厂日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date factoryDate;
|
||||
|
||||
@ApiModelProperty(value = "报废日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date scrapDate;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "排序号")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
160
src/main/java/com/gxwebsoft/tower/entity/TowerEquipment.java
Normal file
160
src/main/java/com/gxwebsoft/tower/entity/TowerEquipment.java
Normal file
@@ -0,0 +1,160 @@
|
||||
package com.gxwebsoft.tower.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 塔吊设备管理
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "TowerEquipment对象", description = "塔吊设备管理")
|
||||
public class TowerEquipment implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@TableId(value = "equipment_id", type = IdType.AUTO)
|
||||
private Integer equipmentId;
|
||||
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "设备型号")
|
||||
private String model;
|
||||
|
||||
@ApiModelProperty(value = "设备编号")
|
||||
private String equipmentNo;
|
||||
|
||||
@ApiModelProperty(value = "出厂编号")
|
||||
private String factoryNo;
|
||||
|
||||
@ApiModelProperty(value = "出厂日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date factoryDate;
|
||||
|
||||
@ApiModelProperty(value = "制造厂商")
|
||||
private String manufactor;
|
||||
|
||||
@ApiModelProperty(value = "使用年限")
|
||||
private String lifeYear;
|
||||
|
||||
@ApiModelProperty(value = "报废日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date scrapDate;
|
||||
|
||||
@ApiModelProperty(value = "备案编号")
|
||||
private String filingNo;
|
||||
|
||||
@ApiModelProperty(value = "机号")
|
||||
private String machineNo;
|
||||
|
||||
@ApiModelProperty(value = "备案许可证号")
|
||||
private String licenceNo;
|
||||
|
||||
@ApiModelProperty(value = "产权单位")
|
||||
private String company;
|
||||
|
||||
@ApiModelProperty(value = "所属部门")
|
||||
private String organization;
|
||||
|
||||
@ApiModelProperty(value = "所属仓库")
|
||||
private String warehouse;
|
||||
|
||||
@ApiModelProperty(value = "设备来源")
|
||||
private String source;
|
||||
|
||||
@ApiModelProperty(value = "采购日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date buyDate;
|
||||
|
||||
@ApiModelProperty(value = "当前位置")
|
||||
private String currentLocation;
|
||||
|
||||
@ApiModelProperty(value = "设计高度")
|
||||
private String designHeight;
|
||||
|
||||
@ApiModelProperty(value = "独立高度")
|
||||
private String height;
|
||||
|
||||
@ApiModelProperty(value = "额定载重")
|
||||
private String ratedLoad;
|
||||
|
||||
@ApiModelProperty(value = "最大幅度处额定载重")
|
||||
private String maxRatedLoad;
|
||||
|
||||
@ApiModelProperty(value = "最大起升高度")
|
||||
private String maxLiftingHeight;
|
||||
|
||||
@ApiModelProperty(value = "臂长")
|
||||
private String armLength;
|
||||
|
||||
@ApiModelProperty(value = "附件1")
|
||||
private String file1;
|
||||
|
||||
@ApiModelProperty(value = "附件2")
|
||||
private String file2;
|
||||
|
||||
@ApiModelProperty(value = "附件3")
|
||||
private String file3;
|
||||
|
||||
@ApiModelProperty(value = "附件4")
|
||||
private String file4;
|
||||
|
||||
@ApiModelProperty(value = "附件5")
|
||||
private String file5;
|
||||
|
||||
@ApiModelProperty(value = "附件6")
|
||||
private String file6;
|
||||
|
||||
@ApiModelProperty(value = "附件7")
|
||||
private String file7;
|
||||
|
||||
@ApiModelProperty(value = "当前位置")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "是否外协标识")
|
||||
@TableField(exist = false)
|
||||
private Boolean isOutOrg;
|
||||
|
||||
@ApiModelProperty(value = "所属人员")
|
||||
private String users;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
67
src/main/java/com/gxwebsoft/tower/entity/TowerModel.java
Normal file
67
src/main/java/com/gxwebsoft/tower/entity/TowerModel.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package com.gxwebsoft.tower.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备型号管理表
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-29 14:07:46
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "TowerModel对象", description = "设备型号管理表")
|
||||
public class TowerModel implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "型号ID")
|
||||
@TableId(value = "category_id", type = IdType.AUTO)
|
||||
private Integer categoryId;
|
||||
|
||||
@ApiModelProperty(value = "设备型号名称")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "上级分类ID")
|
||||
private Integer parentId;
|
||||
|
||||
@ApiModelProperty(value = "分类图片")
|
||||
private String image;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "使用年限")
|
||||
private Integer yearLife;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "注册时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
113
src/main/java/com/gxwebsoft/tower/entity/TowerProject.java
Normal file
113
src/main/java/com/gxwebsoft/tower/entity/TowerProject.java
Normal file
@@ -0,0 +1,113 @@
|
||||
package com.gxwebsoft.tower.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 项目管理
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 13:30:39
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "TowerProject对象", description = "项目管理")
|
||||
public class TowerProject implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@TableId(value = "project_id", type = IdType.AUTO)
|
||||
private Integer projectId;
|
||||
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
@ApiModelProperty(value = "项目封面图")
|
||||
private String projectLogo;
|
||||
|
||||
@ApiModelProperty(value = "租赁单位")
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty(value = "承租单位")
|
||||
private String customerName;
|
||||
|
||||
@ApiModelProperty(value = "项目地址")
|
||||
private String projectRegion;
|
||||
|
||||
@ApiModelProperty(value = "详细地址")
|
||||
private String projectAddress;
|
||||
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "报监编号")
|
||||
private String superviseNo;
|
||||
|
||||
@ApiModelProperty(value = "施工许可证")
|
||||
private String licenceNo;
|
||||
|
||||
@ApiModelProperty(value = "安全状态")
|
||||
private String securityStatus;
|
||||
|
||||
@ApiModelProperty(value = "主管部门")
|
||||
private String competentDepartment;
|
||||
|
||||
@ApiModelProperty(value = "安拆单位")
|
||||
private String dismantlingCompany;
|
||||
|
||||
@ApiModelProperty(value = "汽吊规格")
|
||||
private String truckCraneSpecs;
|
||||
|
||||
@ApiModelProperty(value = "合同其他说明")
|
||||
private String contract;
|
||||
|
||||
@ApiModelProperty(value = "项目负责人")
|
||||
private String director;
|
||||
|
||||
@ApiModelProperty(value = "项目经理")
|
||||
private String projectDirector;
|
||||
|
||||
@ApiModelProperty(value = "项目状态")
|
||||
private String projectStatus;
|
||||
|
||||
@ApiModelProperty(value = "业务员")
|
||||
private String salesman;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "排序号")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
88
src/main/java/com/gxwebsoft/tower/entity/TowerWarehouse.java
Normal file
88
src/main/java/com/gxwebsoft/tower/entity/TowerWarehouse.java
Normal file
@@ -0,0 +1,88 @@
|
||||
package com.gxwebsoft.tower.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 仓库管理
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "TowerWarehouse对象", description = "仓库管理")
|
||||
public class TowerWarehouse implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@TableId(value = "warehouse_id", type = IdType.AUTO)
|
||||
private Integer warehouseId;
|
||||
|
||||
@ApiModelProperty(value = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
@ApiModelProperty(value = "负责人")
|
||||
private String warehouseKeeper;
|
||||
|
||||
@ApiModelProperty(value = "联系电话")
|
||||
private String warehousePhone;
|
||||
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "所在国家")
|
||||
private String country;
|
||||
|
||||
@ApiModelProperty(value = "所在省份")
|
||||
private String province;
|
||||
|
||||
@ApiModelProperty(value = "所在城市")
|
||||
private String city;
|
||||
|
||||
@ApiModelProperty(value = "所在辖区")
|
||||
private String region;
|
||||
|
||||
@ApiModelProperty(value = "街道地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "区域名称")
|
||||
private String regionName;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.tower.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.tower.entity.TowerAccessory;
|
||||
import com.gxwebsoft.tower.param.TowerAccessoryParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 配件管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 11:53:48
|
||||
*/
|
||||
public interface TowerAccessoryMapper extends BaseMapper<TowerAccessory> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<TowerAccessory>
|
||||
*/
|
||||
List<TowerAccessory> selectPageRel(@Param("page") IPage<TowerAccessory> page,
|
||||
@Param("param") TowerAccessoryParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<TowerAccessory> selectListRel(@Param("param") TowerAccessoryParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.tower.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.tower.entity.TowerEquipment;
|
||||
import com.gxwebsoft.tower.param.TowerEquipmentParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔吊设备管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
public interface TowerEquipmentMapper extends BaseMapper<TowerEquipment> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<TowerEquipment>
|
||||
*/
|
||||
List<TowerEquipment> selectPageRel(@Param("page") IPage<TowerEquipment> page,
|
||||
@Param("param") TowerEquipmentParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<TowerEquipment> selectListRel(@Param("param") TowerEquipmentParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.tower.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.tower.entity.TowerModel;
|
||||
import com.gxwebsoft.tower.param.TowerModelParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备型号管理表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-29 14:07:46
|
||||
*/
|
||||
public interface TowerModelMapper extends BaseMapper<TowerModel> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<TowerModel>
|
||||
*/
|
||||
List<TowerModel> selectPageRel(@Param("page") IPage<TowerModel> page,
|
||||
@Param("param") TowerModelParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<TowerModel> selectListRel(@Param("param") TowerModelParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.tower.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.tower.entity.TowerProject;
|
||||
import com.gxwebsoft.tower.param.TowerProjectParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 13:30:39
|
||||
*/
|
||||
public interface TowerProjectMapper extends BaseMapper<TowerProject> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<TowerProject>
|
||||
*/
|
||||
List<TowerProject> selectPageRel(@Param("page") IPage<TowerProject> page,
|
||||
@Param("param") TowerProjectParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<TowerProject> selectListRel(@Param("param") TowerProjectParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.tower.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.tower.entity.TowerWarehouse;
|
||||
import com.gxwebsoft.tower.param.TowerWarehouseParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 仓库管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
public interface TowerWarehouseMapper extends BaseMapper<TowerWarehouse> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<TowerWarehouse>
|
||||
*/
|
||||
List<TowerWarehouse> selectPageRel(@Param("page") IPage<TowerWarehouse> page,
|
||||
@Param("param") TowerWarehouseParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<TowerWarehouse> selectListRel(@Param("param") TowerWarehouseParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.tower.mapper.TowerAccessoryMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_accessory a
|
||||
<where>
|
||||
<if test="param.accessoryId != null">
|
||||
AND a.accessory_id = #{param.accessoryId}
|
||||
</if>
|
||||
<if test="param.accessoryName != null">
|
||||
AND a.accessory_name LIKE CONCAT('%', #{param.accessoryName}, '%')
|
||||
</if>
|
||||
<if test="param.accessoryCategory != null">
|
||||
AND a.accessory_category LIKE CONCAT('%', #{param.accessoryCategory}, '%')
|
||||
</if>
|
||||
<if test="param.accessoryModel != null">
|
||||
AND a.accessory_model LIKE CONCAT('%', #{param.accessoryModel}, '%')
|
||||
</if>
|
||||
<if test="param.accessorySpecs != null">
|
||||
AND a.accessory_specs LIKE CONCAT('%', #{param.accessorySpecs}, '%')
|
||||
</if>
|
||||
<if test="param.accessoryPrice != null">
|
||||
AND a.accessory_price = #{param.accessoryPrice}
|
||||
</if>
|
||||
<if test="param.accessoryUnit != null">
|
||||
AND a.accessory_unit LIKE CONCAT('%', #{param.accessoryUnit}, '%')
|
||||
</if>
|
||||
<if test="param.accessoryStock != null">
|
||||
AND a.accessory_stock LIKE CONCAT('%', #{param.accessoryStock}, '%')
|
||||
</if>
|
||||
<if test="param.companyName != null">
|
||||
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
|
||||
</if>
|
||||
<if test="param.manufactor != null">
|
||||
AND a.manufactor LIKE CONCAT('%', #{param.manufactor}, '%')
|
||||
</if>
|
||||
<if test="param.manufactorNo != null">
|
||||
AND a.manufactor_no LIKE CONCAT('%', #{param.manufactorNo}, '%')
|
||||
</if>
|
||||
<if test="param.lifeYear != null">
|
||||
AND a.life_year LIKE CONCAT('%', #{param.lifeYear}, '%')
|
||||
</if>
|
||||
<if test="param.factoryDate != null">
|
||||
AND a.factory_date LIKE CONCAT('%', #{param.factoryDate}, '%')
|
||||
</if>
|
||||
<if test="param.scrapDate != null">
|
||||
AND a.scrap_date LIKE CONCAT('%', #{param.scrapDate}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (
|
||||
a.accessory_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.accessory_no LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.company_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerAccessory">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerAccessory">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.tower.mapper.TowerEquipmentMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_equipment a
|
||||
<where>
|
||||
<if test="param.equipmentId != null">
|
||||
AND a.equipment_id = #{param.equipmentId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.model != null">
|
||||
AND a.model LIKE CONCAT('%', #{param.model}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentNo != null">
|
||||
AND a.equipment_no LIKE CONCAT('%', #{param.equipmentNo}, '%')
|
||||
</if>
|
||||
<if test="param.factoryNo != null">
|
||||
AND a.factory_no LIKE CONCAT('%', #{param.factoryNo}, '%')
|
||||
</if>
|
||||
<if test="param.factoryDate != null">
|
||||
AND a.factory_date LIKE CONCAT('%', #{param.factoryDate}, '%')
|
||||
</if>
|
||||
<if test="param.manufactor != null">
|
||||
AND a.manufactor LIKE CONCAT('%', #{param.manufactor}, '%')
|
||||
</if>
|
||||
<if test="param.lifeYear != null">
|
||||
AND a.life_year LIKE CONCAT('%', #{param.lifeYear}, '%')
|
||||
</if>
|
||||
<if test="param.scrapDate != null">
|
||||
AND a.scrap_date LIKE CONCAT('%', #{param.scrapDate}, '%')
|
||||
</if>
|
||||
<if test="param.licenceNo != null">
|
||||
AND a.licence_no LIKE CONCAT('%', #{param.licenceNo}, '%')
|
||||
</if>
|
||||
<if test="param.company != null">
|
||||
AND a.company = #{param.company}
|
||||
</if>
|
||||
<if test="param.organization != null">
|
||||
AND a.organization = #{param.organization}
|
||||
</if>
|
||||
<if test="param.warehouse != null">
|
||||
AND a.warehouse = #{param.warehouse}
|
||||
</if>
|
||||
<if test="param.source != null">
|
||||
AND a.source LIKE CONCAT('%', #{param.source}, '%')
|
||||
</if>
|
||||
<if test="param.buyDate != null">
|
||||
AND a.buy_date LIKE CONCAT('%', #{param.buyDate}, '%')
|
||||
</if>
|
||||
<if test="param.currentLocation != null">
|
||||
AND a.current_location LIKE CONCAT('%', #{param.currentLocation}, '%')
|
||||
</if>
|
||||
<if test="param.designHeight != null">
|
||||
AND a.design_height LIKE CONCAT('%', #{param.designHeight}, '%')
|
||||
</if>
|
||||
<if test="param.height != null">
|
||||
AND a.height LIKE CONCAT('%', #{param.height}, '%')
|
||||
</if>
|
||||
<if test="param.ratedLoad != null">
|
||||
AND a.rated_load LIKE CONCAT('%', #{param.ratedLoad}, '%')
|
||||
</if>
|
||||
<if test="param.maxRatedLoad != null">
|
||||
AND a.max_rated_load LIKE CONCAT('%', #{param.maxRatedLoad}, '%')
|
||||
</if>
|
||||
<if test="param.files != null">
|
||||
AND a.files LIKE CONCAT('%', #{param.files}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (
|
||||
a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.model LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.equipment_no LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.company LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.tower.mapper.TowerModelMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_model a
|
||||
<where>
|
||||
<if test="param.categoryId != null">
|
||||
AND a.category_id = #{param.categoryId}
|
||||
</if>
|
||||
<if test="param.title != null">
|
||||
AND a.title LIKE CONCAT('%', #{param.title}, '%')
|
||||
</if>
|
||||
<if test="param.parentId != null">
|
||||
AND a.parent_id = #{param.parentId}
|
||||
</if>
|
||||
<if test="param.image != null">
|
||||
AND a.image LIKE CONCAT('%', #{param.image}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.yearLife != null">
|
||||
AND a.year_life = #{param.yearLife}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerModel">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerModel">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.tower.mapper.TowerProjectMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_project a
|
||||
<where>
|
||||
<if test="param.projectId != null">
|
||||
AND a.project_id = #{param.projectId}
|
||||
</if>
|
||||
<if test="param.projectName != null">
|
||||
AND a.project_name LIKE CONCAT('%', #{param.projectName}, '%')
|
||||
</if>
|
||||
<if test="param.companyName != null">
|
||||
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
|
||||
</if>
|
||||
<if test="param.customerName != null">
|
||||
AND a.customer_name LIKE CONCAT('%', #{param.customerName}, '%')
|
||||
</if>
|
||||
<if test="param.projectRegion != null">
|
||||
AND a.project_region LIKE CONCAT('%', #{param.projectRegion}, '%')
|
||||
</if>
|
||||
<if test="param.projectAddress != null">
|
||||
AND a.project_address LIKE CONCAT('%', #{param.projectAddress}, '%')
|
||||
</if>
|
||||
<if test="param.longitude != null">
|
||||
AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%')
|
||||
</if>
|
||||
<if test="param.latitude != null">
|
||||
AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%')
|
||||
</if>
|
||||
<if test="param.superviseNo != null">
|
||||
AND a.supervise_no LIKE CONCAT('%', #{param.superviseNo}, '%')
|
||||
</if>
|
||||
<if test="param.licenceNo != null">
|
||||
AND a.licence_no LIKE CONCAT('%', #{param.licenceNo}, '%')
|
||||
</if>
|
||||
<if test="param.securityStatus != null">
|
||||
AND a.security_status LIKE CONCAT('%', #{param.securityStatus}, '%')
|
||||
</if>
|
||||
<if test="param.competentDepartment != null">
|
||||
AND a.competent_department LIKE CONCAT('%', #{param.competentDepartment}, '%')
|
||||
</if>
|
||||
<if test="param.dismantlingCompany != null">
|
||||
AND a.dismantling_company LIKE CONCAT('%', #{param.dismantlingCompany}, '%')
|
||||
</if>
|
||||
<if test="param.truckCraneSpecs != null">
|
||||
AND a.truck_crane_specs LIKE CONCAT('%', #{param.truckCraneSpecs}, '%')
|
||||
</if>
|
||||
<if test="param.contract != null">
|
||||
AND a.contract LIKE CONCAT('%', #{param.contract}, '%')
|
||||
</if>
|
||||
<if test="param.director != null">
|
||||
AND a.director = #{param.director}
|
||||
</if>
|
||||
<if test="param.projectDirector != null">
|
||||
AND a.project_director LIKE CONCAT('%', #{param.projectDirector}, '%')
|
||||
</if>
|
||||
<if test="param.projectStatus != null">
|
||||
AND a.project_status LIKE CONCAT('%', #{param.projectStatus}, '%')
|
||||
</if>
|
||||
<if test="param.salesman != null">
|
||||
AND a.salesman LIKE CONCAT('%', #{param.salesman}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerProject">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerProject">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.tower.mapper.TowerWarehouseMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_warehouse a
|
||||
<where>
|
||||
<if test="param.warehouseId != null">
|
||||
AND a.warehouse_id = #{param.warehouseId}
|
||||
</if>
|
||||
<if test="param.warehouseName != null">
|
||||
AND a.warehouse_name LIKE CONCAT('%', #{param.warehouseName}, '%')
|
||||
</if>
|
||||
<if test="param.warehouseKeeper != null">
|
||||
AND a.warehouse_keeper LIKE CONCAT('%', #{param.warehouseKeeper}, '%')
|
||||
</if>
|
||||
<if test="param.warehousePhone != null">
|
||||
AND a.warehouse_phone LIKE CONCAT('%', #{param.warehousePhone}, '%')
|
||||
</if>
|
||||
<if test="param.longitude != null">
|
||||
AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%')
|
||||
</if>
|
||||
<if test="param.latitude != null">
|
||||
AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%')
|
||||
</if>
|
||||
<if test="param.country != null">
|
||||
AND a.country LIKE CONCAT('%', #{param.country}, '%')
|
||||
</if>
|
||||
<if test="param.province != null">
|
||||
AND a.province LIKE CONCAT('%', #{param.province}, '%')
|
||||
</if>
|
||||
<if test="param.city != null">
|
||||
AND a.city LIKE CONCAT('%', #{param.city}, '%')
|
||||
</if>
|
||||
<if test="param.region != null">
|
||||
AND a.region LIKE CONCAT('%', #{param.region}, '%')
|
||||
</if>
|
||||
<if test="param.address != null">
|
||||
AND a.address LIKE CONCAT('%', #{param.address}, '%')
|
||||
</if>
|
||||
<if test="param.regionName != null">
|
||||
AND a.region_name LIKE CONCAT('%', #{param.regionName}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.username != null">
|
||||
AND a.username = #{param.username}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.title LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.warehouse_name = #{param.keywords
|
||||
OR a.warehouse_keeper = #{param.keywords}
|
||||
OR a.warehouse_phone = #{param.keywords}
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerWarehouse">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWarehouse">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.gxwebsoft.tower.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 配件管理查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 11:53:48
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "TowerAccessoryParam对象", description = "配件管理查询参数")
|
||||
public class TowerAccessoryParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer accessoryId;
|
||||
|
||||
@ApiModelProperty(value = "配件名称")
|
||||
private String accessoryName;
|
||||
|
||||
@ApiModelProperty(value = "配件分类")
|
||||
private String accessoryCategory;
|
||||
|
||||
@ApiModelProperty(value = "适用设备型号")
|
||||
private String accessoryModel;
|
||||
|
||||
@ApiModelProperty(value = "配件规格")
|
||||
private String accessorySpecs;
|
||||
|
||||
@ApiModelProperty(value = "单价")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private BigDecimal accessoryPrice;
|
||||
|
||||
@ApiModelProperty(value = "配件单位")
|
||||
private String accessoryUnit;
|
||||
|
||||
@ApiModelProperty(value = "库存总量")
|
||||
private String accessoryStock;
|
||||
|
||||
@ApiModelProperty(value = "产权单位名称")
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty(value = "制造厂商")
|
||||
private String manufactor;
|
||||
|
||||
@ApiModelProperty(value = "制造厂商编号")
|
||||
private String manufactorNo;
|
||||
|
||||
@ApiModelProperty(value = "使用年限")
|
||||
private String lifeYear;
|
||||
|
||||
@ApiModelProperty(value = "出厂日期")
|
||||
private String factoryDate;
|
||||
|
||||
@ApiModelProperty(value = "报废日期")
|
||||
private String scrapDate;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "排序号")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
110
src/main/java/com/gxwebsoft/tower/param/TowerEquipmentParam.java
Normal file
110
src/main/java/com/gxwebsoft/tower/param/TowerEquipmentParam.java
Normal file
@@ -0,0 +1,110 @@
|
||||
package com.gxwebsoft.tower.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 塔吊设备管理查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "TowerEquipmentParam对象", description = "塔吊设备管理查询参数")
|
||||
public class TowerEquipmentParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer equipmentId;
|
||||
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "设备型号")
|
||||
private String model;
|
||||
|
||||
@ApiModelProperty(value = "设备编号")
|
||||
private String equipmentNo;
|
||||
|
||||
@ApiModelProperty(value = "出厂编号")
|
||||
private String factoryNo;
|
||||
|
||||
@ApiModelProperty(value = "出厂日期")
|
||||
private String factoryDate;
|
||||
|
||||
@ApiModelProperty(value = "制造厂商")
|
||||
private String manufactor;
|
||||
|
||||
@ApiModelProperty(value = "使用年限")
|
||||
private String lifeYear;
|
||||
|
||||
@ApiModelProperty(value = "报废日期")
|
||||
private String scrapDate;
|
||||
|
||||
@ApiModelProperty(value = "备案许可证号")
|
||||
private String licenceNo;
|
||||
|
||||
@ApiModelProperty(value = "产权单位")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private String company;
|
||||
|
||||
@ApiModelProperty(value = "产权单位名称")
|
||||
private String propertyCompany;
|
||||
|
||||
@ApiModelProperty(value = "所属部门")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private String organization;
|
||||
|
||||
@ApiModelProperty(value = "所属仓库")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private String warehouse;
|
||||
|
||||
@ApiModelProperty(value = "设备来源")
|
||||
private String source;
|
||||
|
||||
@ApiModelProperty(value = "采购日期")
|
||||
private String buyDate;
|
||||
|
||||
@ApiModelProperty(value = "当前位置")
|
||||
private String currentLocation;
|
||||
|
||||
@ApiModelProperty(value = "设计高度")
|
||||
private String designHeight;
|
||||
|
||||
@ApiModelProperty(value = "独立高度")
|
||||
private String height;
|
||||
|
||||
@ApiModelProperty(value = "额定载重")
|
||||
private String ratedLoad;
|
||||
|
||||
@ApiModelProperty(value = "最大幅度处额定载重")
|
||||
private String maxRatedLoad;
|
||||
|
||||
@ApiModelProperty(value = "附件信息")
|
||||
private String files;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
61
src/main/java/com/gxwebsoft/tower/param/TowerModelParam.java
Normal file
61
src/main/java/com/gxwebsoft/tower/param/TowerModelParam.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package com.gxwebsoft.tower.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 设备型号管理表查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-29 14:07:46
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "TowerModelParam对象", description = "设备型号管理表查询参数")
|
||||
public class TowerModelParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "型号ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer categoryId;
|
||||
|
||||
@ApiModelProperty(value = "设备型号名称")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "上级分类ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer parentId;
|
||||
|
||||
@ApiModelProperty(value = "分类图片")
|
||||
private String image;
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "使用年限")
|
||||
private Integer yearLife;
|
||||
|
||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0正常, 1冻结")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
103
src/main/java/com/gxwebsoft/tower/param/TowerProjectParam.java
Normal file
103
src/main/java/com/gxwebsoft/tower/param/TowerProjectParam.java
Normal file
@@ -0,0 +1,103 @@
|
||||
package com.gxwebsoft.tower.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 项目管理查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 13:30:39
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "TowerProjectParam对象", description = "项目管理查询参数")
|
||||
public class TowerProjectParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer projectId;
|
||||
|
||||
@ApiModelProperty(value = "配件名称")
|
||||
private String projectName;
|
||||
|
||||
@ApiModelProperty(value = "租赁单位")
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty(value = "承租单位")
|
||||
private String customerName;
|
||||
|
||||
@ApiModelProperty(value = "项目地址")
|
||||
private String projectRegion;
|
||||
|
||||
@ApiModelProperty(value = "详细地址")
|
||||
private String projectAddress;
|
||||
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "报监编号")
|
||||
private String superviseNo;
|
||||
|
||||
@ApiModelProperty(value = "施工许可证")
|
||||
private String licenceNo;
|
||||
|
||||
@ApiModelProperty(value = "安全状态")
|
||||
private String securityStatus;
|
||||
|
||||
@ApiModelProperty(value = "主管部门")
|
||||
private String competentDepartment;
|
||||
|
||||
@ApiModelProperty(value = "安拆单位")
|
||||
private String dismantlingCompany;
|
||||
|
||||
@ApiModelProperty(value = "汽吊规格")
|
||||
private String truckCraneSpecs;
|
||||
|
||||
@ApiModelProperty(value = "合同其他说明")
|
||||
private String contract;
|
||||
|
||||
@ApiModelProperty(value = "项目负责人")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer director;
|
||||
|
||||
@ApiModelProperty(value = "项目经理")
|
||||
private String projectDirector;
|
||||
|
||||
@ApiModelProperty(value = "项目状态")
|
||||
private String projectStatus;
|
||||
|
||||
@ApiModelProperty(value = "业务员")
|
||||
private String salesman;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "排序号")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer sortNumber;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.gxwebsoft.tower.param;
|
||||
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 仓库管理查询参数
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "TowerWarehouseParam对象", description = "仓库管理查询参数")
|
||||
public class TowerWarehouseParam extends BaseParam {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "自增ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer warehouseId;
|
||||
|
||||
@ApiModelProperty(value = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
@ApiModelProperty(value = "负责人")
|
||||
private String warehouseKeeper;
|
||||
|
||||
@ApiModelProperty(value = "联系电话")
|
||||
private String warehousePhone;
|
||||
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty(value = "所在国家")
|
||||
private String country;
|
||||
|
||||
@ApiModelProperty(value = "所在省份")
|
||||
private String province;
|
||||
|
||||
@ApiModelProperty(value = "所在城市")
|
||||
private String city;
|
||||
|
||||
@ApiModelProperty(value = "所在辖区")
|
||||
private String region;
|
||||
|
||||
@ApiModelProperty(value = "街道地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "区域名称")
|
||||
private String regionName;
|
||||
|
||||
@ApiModelProperty(value = "状态, 0待发布, 1已发布")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String comments;
|
||||
|
||||
@ApiModelProperty(value = "所有人")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "是否删除, 0否, 1是")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.tower.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.tower.entity.TowerAccessory;
|
||||
import com.gxwebsoft.tower.param.TowerAccessoryParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 配件管理Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 11:53:48
|
||||
*/
|
||||
public interface TowerAccessoryService extends IService<TowerAccessory> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<TowerAccessory>
|
||||
*/
|
||||
PageResult<TowerAccessory> pageRel(TowerAccessoryParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<TowerAccessory>
|
||||
*/
|
||||
List<TowerAccessory> listRel(TowerAccessoryParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param accessoryId 自增ID
|
||||
* @return TowerAccessory
|
||||
*/
|
||||
TowerAccessory getByIdRel(Integer accessoryId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.tower.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.tower.entity.TowerEquipment;
|
||||
import com.gxwebsoft.tower.param.TowerEquipmentParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔吊设备管理Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
public interface TowerEquipmentService extends IService<TowerEquipment> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<TowerEquipment>
|
||||
*/
|
||||
PageResult<TowerEquipment> pageRel(TowerEquipmentParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<TowerEquipment>
|
||||
*/
|
||||
List<TowerEquipment> listRel(TowerEquipmentParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param equipmentId 自增ID
|
||||
* @return TowerEquipment
|
||||
*/
|
||||
TowerEquipment getByIdRel(Integer equipmentId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.tower.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.tower.entity.TowerModel;
|
||||
import com.gxwebsoft.tower.param.TowerModelParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备型号管理表Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-29 14:07:46
|
||||
*/
|
||||
public interface TowerModelService extends IService<TowerModel> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<TowerModel>
|
||||
*/
|
||||
PageResult<TowerModel> pageRel(TowerModelParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<TowerModel>
|
||||
*/
|
||||
List<TowerModel> listRel(TowerModelParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param categoryId 型号ID
|
||||
* @return TowerModel
|
||||
*/
|
||||
TowerModel getByIdRel(Integer categoryId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.tower.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.tower.entity.TowerProject;
|
||||
import com.gxwebsoft.tower.param.TowerProjectParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目管理Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 13:30:39
|
||||
*/
|
||||
public interface TowerProjectService extends IService<TowerProject> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<TowerProject>
|
||||
*/
|
||||
PageResult<TowerProject> pageRel(TowerProjectParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<TowerProject>
|
||||
*/
|
||||
List<TowerProject> listRel(TowerProjectParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param projectId 自增ID
|
||||
* @return TowerProject
|
||||
*/
|
||||
TowerProject getByIdRel(Integer projectId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.gxwebsoft.tower.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import com.gxwebsoft.tower.entity.TowerWarehouse;
|
||||
import com.gxwebsoft.tower.param.TowerWarehouseParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 仓库管理Service
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
public interface TowerWarehouseService extends IService<TowerWarehouse> {
|
||||
|
||||
/**
|
||||
* 分页关联查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return PageResult<TowerWarehouse>
|
||||
*/
|
||||
PageResult<TowerWarehouse> pageRel(TowerWarehouseParam param);
|
||||
|
||||
/**
|
||||
* 关联查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<TowerWarehouse>
|
||||
*/
|
||||
List<TowerWarehouse> listRel(TowerWarehouseParam param);
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param warehouseId 自增ID
|
||||
* @return TowerWarehouse
|
||||
*/
|
||||
TowerWarehouse getByIdRel(Integer warehouseId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.tower.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.tower.mapper.TowerAccessoryMapper;
|
||||
import com.gxwebsoft.tower.service.TowerAccessoryService;
|
||||
import com.gxwebsoft.tower.entity.TowerAccessory;
|
||||
import com.gxwebsoft.tower.param.TowerAccessoryParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 配件管理Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 11:53:48
|
||||
*/
|
||||
@Service
|
||||
public class TowerAccessoryServiceImpl extends ServiceImpl<TowerAccessoryMapper, TowerAccessory> implements TowerAccessoryService {
|
||||
|
||||
@Override
|
||||
public PageResult<TowerAccessory> pageRel(TowerAccessoryParam param) {
|
||||
PageParam<TowerAccessory, TowerAccessoryParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<TowerAccessory> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TowerAccessory> listRel(TowerAccessoryParam param) {
|
||||
List<TowerAccessory> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<TowerAccessory, TowerAccessoryParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TowerAccessory getByIdRel(Integer accessoryId) {
|
||||
TowerAccessoryParam param = new TowerAccessoryParam();
|
||||
param.setAccessoryId(accessoryId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.tower.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.tower.mapper.TowerEquipmentMapper;
|
||||
import com.gxwebsoft.tower.service.TowerEquipmentService;
|
||||
import com.gxwebsoft.tower.entity.TowerEquipment;
|
||||
import com.gxwebsoft.tower.param.TowerEquipmentParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔吊设备管理Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Service
|
||||
public class TowerEquipmentServiceImpl extends ServiceImpl<TowerEquipmentMapper, TowerEquipment> implements TowerEquipmentService {
|
||||
|
||||
@Override
|
||||
public PageResult<TowerEquipment> pageRel(TowerEquipmentParam param) {
|
||||
PageParam<TowerEquipment, TowerEquipmentParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<TowerEquipment> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TowerEquipment> listRel(TowerEquipmentParam param) {
|
||||
List<TowerEquipment> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<TowerEquipment, TowerEquipmentParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TowerEquipment getByIdRel(Integer equipmentId) {
|
||||
TowerEquipmentParam param = new TowerEquipmentParam();
|
||||
param.setEquipmentId(equipmentId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.tower.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.tower.mapper.TowerModelMapper;
|
||||
import com.gxwebsoft.tower.service.TowerModelService;
|
||||
import com.gxwebsoft.tower.entity.TowerModel;
|
||||
import com.gxwebsoft.tower.param.TowerModelParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备型号管理表Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-29 14:07:46
|
||||
*/
|
||||
@Service
|
||||
public class TowerModelServiceImpl extends ServiceImpl<TowerModelMapper, TowerModel> implements TowerModelService {
|
||||
|
||||
@Override
|
||||
public PageResult<TowerModel> pageRel(TowerModelParam param) {
|
||||
PageParam<TowerModel, TowerModelParam> page = new PageParam<>(param);
|
||||
//page.setDefaultOrder("create_time desc");
|
||||
List<TowerModel> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TowerModel> listRel(TowerModelParam param) {
|
||||
List<TowerModel> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<TowerModel, TowerModelParam> page = new PageParam<>();
|
||||
//page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TowerModel getByIdRel(Integer categoryId) {
|
||||
TowerModelParam param = new TowerModelParam();
|
||||
param.setCategoryId(categoryId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.tower.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.tower.mapper.TowerProjectMapper;
|
||||
import com.gxwebsoft.tower.service.TowerProjectService;
|
||||
import com.gxwebsoft.tower.entity.TowerProject;
|
||||
import com.gxwebsoft.tower.param.TowerProjectParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目管理Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-22 13:30:39
|
||||
*/
|
||||
@Service
|
||||
public class TowerProjectServiceImpl extends ServiceImpl<TowerProjectMapper, TowerProject> implements TowerProjectService {
|
||||
|
||||
@Override
|
||||
public PageResult<TowerProject> pageRel(TowerProjectParam param) {
|
||||
PageParam<TowerProject, TowerProjectParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<TowerProject> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TowerProject> listRel(TowerProjectParam param) {
|
||||
List<TowerProject> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<TowerProject, TowerProjectParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TowerProject getByIdRel(Integer projectId) {
|
||||
TowerProjectParam param = new TowerProjectParam();
|
||||
param.setProjectId(projectId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.gxwebsoft.tower.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.gxwebsoft.tower.mapper.TowerWarehouseMapper;
|
||||
import com.gxwebsoft.tower.service.TowerWarehouseService;
|
||||
import com.gxwebsoft.tower.entity.TowerWarehouse;
|
||||
import com.gxwebsoft.tower.param.TowerWarehouseParam;
|
||||
import com.gxwebsoft.common.core.web.PageParam;
|
||||
import com.gxwebsoft.common.core.web.PageResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 仓库管理Service实现
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-20 15:06:43
|
||||
*/
|
||||
@Service
|
||||
public class TowerWarehouseServiceImpl extends ServiceImpl<TowerWarehouseMapper, TowerWarehouse> implements TowerWarehouseService {
|
||||
|
||||
@Override
|
||||
public PageResult<TowerWarehouse> pageRel(TowerWarehouseParam param) {
|
||||
PageParam<TowerWarehouse, TowerWarehouseParam> page = new PageParam<>(param);
|
||||
page.setDefaultOrder("create_time desc");
|
||||
List<TowerWarehouse> list = baseMapper.selectPageRel(page, param);
|
||||
return new PageResult<>(list, page.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TowerWarehouse> listRel(TowerWarehouseParam param) {
|
||||
List<TowerWarehouse> list = baseMapper.selectListRel(param);
|
||||
// 排序
|
||||
PageParam<TowerWarehouse, TowerWarehouseParam> page = new PageParam<>();
|
||||
page.setDefaultOrder("create_time desc");
|
||||
return page.sortRecords(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TowerWarehouse getByIdRel(Integer warehouseId) {
|
||||
TowerWarehouseParam param = new TowerWarehouseParam();
|
||||
param.setWarehouseId(warehouseId);
|
||||
return param.getOne(baseMapper.selectListRel(param));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user