首次提交

main
刘胜超 2 weeks ago
parent 60bef14d39
commit 42c54522ec
  1. 76
      src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java
  2. 78
      src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java
  3. 77
      src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java
  4. 76
      src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java
  5. 90
      src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java
  6. 75
      src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java
  7. 74
      src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java
  8. 77
      src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java
  9. 77
      src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java
  10. 78
      src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java
  11. 78
      src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java
  12. 75
      src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java
  13. 67
      src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java
  14. 77
      src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java
  15. 77
      src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java
  16. 58
      src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java
  17. 68
      src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java
  18. 54
      src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java
  19. 58
      src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java
  20. 61
      src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java
  21. 20
      src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java
  22. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java
  23. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java
  24. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java
  25. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java
  26. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java
  27. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java
  28. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java
  29. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java
  30. 19
      src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java
  31. 22
      src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java
  32. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java
  33. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java
  34. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java
  35. 24
      src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java
  36. 22
      src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java
  37. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java
  38. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java
  39. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java
  40. 19
      src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java
  41. 32
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java
  42. 31
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java
  43. 33
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java
  44. 33
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java
  45. 83
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java
  46. 43
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java
  47. 34
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java
  48. 32
      src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java
  49. 32
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java
  50. 32
      src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java
  51. 78
      src/main/java/com/zilber/boot/system/controller/SysDictionaryController.java
  52. 15
      src/main/java/com/zilber/boot/system/dao/SysDictionaryMapper.java
  53. 75
      src/main/java/com/zilber/boot/system/pojo/SysDictionary.java
  54. 17
      src/main/java/com/zilber/boot/system/service/ISysDictionaryService.java
  55. 61
      src/main/java/com/zilber/boot/system/service/impl/SysDictionaryServiceImpl.java
  56. 13
      src/main/java/com/zilber/boot/utils/DateUtils.java
  57. 50
      src/main/resources/mappers/IConstructionReportMapper.xml
  58. 46
      src/main/resources/mappers/IEngineerLogMapper.xml
  59. 53
      src/main/resources/mappers/IManpowerMapper.xml
  60. 47
      src/main/resources/mappers/IMaterialsMapper.xml
  61. 47
      src/main/resources/mappers/IProductionPlanMapper.xml
  62. 43
      src/main/resources/mappers/IProgressMapper.xml
  63. 40
      src/main/resources/mappers/IResourceScheduleMapper.xml
  64. 33
      src/main/resources/mappers/ISafeMapper.xml
  65. 38
      src/main/resources/mappers/IUserMapper.xml
  66. 39
      src/main/resources/mappers/IWarnMapper.xml

@ -0,0 +1,76 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IConstructionReport;
import com.zilber.boot.intelligencesite.service.IIConstructionReportService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 施工报告 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iconstructionreport")
@Api(tags = "施工报告")
public class IConstructionReportController {
@Resource
private IIConstructionReportService iiConstructionReportService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IConstructionReport iConstructionReport, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IConstructionReport> iConstructionReports = iiConstructionReportService.queryList(iConstructionReport);
PageInfo<IConstructionReport> page = new PageInfo<>(iConstructionReports);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiConstructionReportService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IConstructionReport iConstructionReport) {
return AjaxResult.success(iiConstructionReportService.save(iConstructionReport));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IConstructionReport iConstructionReport) {
iiConstructionReportService.updateById(iConstructionReport);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiConstructionReportService.removeById(id));
}
}

@ -0,0 +1,78 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IConstructionReport;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.service.IIConstructionReportService;
import com.zilber.boot.intelligencesite.service.IIEngineerLogService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 工程日志 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iengineerlog")
@Api(tags = "工程日志")
public class IEngineerLogController {
@Resource
private IIEngineerLogService iiEngineerLogService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IEngineerLog iEngineerLog, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IEngineerLog> iEngineerLogs = iiEngineerLogService.queryList(iEngineerLog);
PageInfo<IEngineerLog> page = new PageInfo<>(iEngineerLogs);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiEngineerLogService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IEngineerLog iEngineerLog) {
return AjaxResult.success(iiEngineerLogService.save(iEngineerLog));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IEngineerLog iEngineerLog) {
iiEngineerLogService.updateById(iEngineerLog);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiEngineerLogService.removeById(id));
}
}

@ -0,0 +1,77 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IManpower;
import com.zilber.boot.intelligencesite.service.IIEngineerLogService;
import com.zilber.boot.intelligencesite.service.IIManpowerService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 人力信息表 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/imanpower")
@Api(tags = "人力信息")
public class IManpowerController {
@Resource
private IIManpowerService iiManpowerService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IManpower iManpower, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IManpower> iManpowers = iiManpowerService.queryList(iManpower);
PageInfo<IManpower> page = new PageInfo<>(iManpowers);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiManpowerService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IManpower iManpower) {
return AjaxResult.success(iiManpowerService.save(iManpower));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IManpower iManpower) {
iiManpowerService.updateById(iManpower);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiManpowerService.removeById(id));
}
}

@ -0,0 +1,76 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IManpower;
import com.zilber.boot.intelligencesite.entity.IMaterials;
import com.zilber.boot.intelligencesite.service.IIManpowerService;
import com.zilber.boot.intelligencesite.service.IIMaterialsService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 材料信息表 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/imaterials")
@Api(tags = "材料信息")
public class IMaterialsController {
@Resource
private IIMaterialsService iiMaterialsService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IMaterials iMaterials, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IMaterials> iMaterials1 = iiMaterialsService.queryList(iMaterials);
PageInfo<IMaterials> page = new PageInfo<>(iMaterials1);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiMaterialsService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IMaterials iMaterials) {
return AjaxResult.success(iiMaterialsService.save(iMaterials));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IMaterials iMaterials) {
iiMaterialsService.updateById(iMaterials);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiMaterialsService.removeById(id));
}
}

@ -0,0 +1,90 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IMaterials;
import com.zilber.boot.intelligencesite.entity.IProductionPlan;
import com.zilber.boot.intelligencesite.service.IIMaterialsService;
import com.zilber.boot.intelligencesite.service.IIProductionPlanService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 生产计划表 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iproductionplan")
@Api(tags = "生产计划")
public class IProductionPlanController {
@Resource
private IIProductionPlanService iiProductionPlanService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IProductionPlan iProductionPlan, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IProductionPlan> iProductionPlans = iiProductionPlanService.queryList(iProductionPlan);
PageInfo<IProductionPlan> page = new PageInfo<>(iProductionPlans);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiProductionPlanService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IProductionPlan iProductionPlan) {
return AjaxResult.success(iiProductionPlanService.save(iProductionPlan));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IProductionPlan iProductionPlan) {
iiProductionPlanService.updateById(iProductionPlan);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiProductionPlanService.removeById(id));
}
@GetMapping("/statistics")
@ApiOperation("自动统计计划进度与实际进度")
public AjaxResult statistics() {
return AjaxResult.success(iiProductionPlanService.statistics());
}
@GetMapping("/querywarn")
@ApiOperation("预警提示")
public AjaxResult querywarn(Integer day) {
return AjaxResult.success(iiProductionPlanService.querywarn(day));
}
}

@ -0,0 +1,75 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IProgress;
import com.zilber.boot.intelligencesite.service.IIProgressService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 进度跟踪表 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iprogress")
@Api(tags = "进度跟踪")
public class IProgressController {
@Resource
private IIProgressService iiProgressService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IProgress iProgress, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IProgress> iProgresses = iiProgressService.queryList(iProgress);
PageInfo<IProgress> page = new PageInfo<>(iProgresses);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiProgressService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IProgress iProgress) {
return AjaxResult.success(iiProgressService.add(iProgress));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IProgress iProgress) {
iiProgressService.updateById(iProgress);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiProgressService.removeById(id));
}
}

@ -0,0 +1,74 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IResourceSchedule;
import com.zilber.boot.intelligencesite.service.IIResourceScheduleService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 资源调度表 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iresourceschedule")
@Api(tags = "资源调度")
public class IResourceScheduleController {
@Resource
private IIResourceScheduleService iiResourceScheduleService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IResourceSchedule iResourceSchedule, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IResourceSchedule> iResourceSchedules = iiResourceScheduleService.queryList(iResourceSchedule);
PageInfo<IResourceSchedule> page = new PageInfo<>(iResourceSchedules);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiResourceScheduleService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IResourceSchedule iResourceSchedule) {
return AjaxResult.success(iiResourceScheduleService.save(iResourceSchedule));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IResourceSchedule iResourceSchedule) {
iiResourceScheduleService.updateById(iResourceSchedule);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiResourceScheduleService.removeById(id));
}
}

@ -0,0 +1,77 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IResourceSchedule;
import com.zilber.boot.intelligencesite.entity.ISafe;
import com.zilber.boot.intelligencesite.service.IIResourceScheduleService;
import com.zilber.boot.intelligencesite.service.IISafeService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 安全教育 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/isafe")
@Api(tags = "安全教育")
public class ISafeController {
@Resource
private IISafeService IISafeService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(ISafe iSafe, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<ISafe> iSafes = IISafeService.queryList(iSafe);
PageInfo<ISafe> page = new PageInfo<>(iSafes);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(IISafeService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody ISafe iSafe) {
return AjaxResult.success(IISafeService.save(iSafe));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated ISafe iSafe) {
IISafeService.updateById(iSafe);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(IISafeService.removeById(id));
}
}

@ -0,0 +1,77 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.ISafe;
import com.zilber.boot.intelligencesite.entity.IUser;
import com.zilber.boot.intelligencesite.service.IISafeService;
import com.zilber.boot.intelligencesite.service.IIUserService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 实名制与信息管理 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iuser")
@Api(tags = "实名制与信息管理")
public class IUserController {
@Resource
private IIUserService iiUserService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IUser iUser, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IUser> iUsers = iiUserService.queryList(iUser);
PageInfo<IUser> page = new PageInfo<>(iUsers);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiUserService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IUser iUser) {
return AjaxResult.success(iiUserService.save(iUser));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IUser iUser) {
iiUserService.updateById(iUser);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiUserService.removeById(id));
}
}

@ -0,0 +1,78 @@
package com.zilber.boot.intelligencesite.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zilber.boot.intelligencesite.entity.IUser;
import com.zilber.boot.intelligencesite.entity.IWarn;
import com.zilber.boot.intelligencesite.service.IIUserService;
import com.zilber.boot.intelligencesite.service.IIWarnService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 预警表 前端控制器
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@RestController
@RequestMapping("/iwarn")
@Api(tags = "预警")
public class IWarnController {
@Resource
private IIWarnService iiWarnService;
@GetMapping("/list")
@ApiOperation(value="分页查询",notes="分页查询")
@ResponseBody
public AjaxResult queryList(IWarn iWarn, @RequestParam(defaultValue = "1") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageHelper.startPage(pageNo, pageSize);
List<IWarn> iWarns = iiWarnService.queryList(iWarn);
PageInfo<IWarn> page = new PageInfo<>(iWarns);
return AjaxResult.success(page);
}
/***
* 查询单个
*/
@GetMapping("/getById")
@ApiOperation("查询单个")
public AjaxResult getById(Integer id) {
return AjaxResult.success(iiWarnService.getById(id));
}
@PostMapping("/add")
@ApiOperation("增加")
public AjaxResult add(@RequestBody IWarn iWarn) {
return AjaxResult.success(iiWarnService.save(iWarn));
}
@PutMapping("/update")
@ApiOperation("修改")
public AjaxResult update(@RequestBody @Validated IWarn iWarn) {
iiWarnService.updateById(iWarn);
return AjaxResult.success();
}
@DeleteMapping("/delete")
@ApiOperation("删除")
public AjaxResult delete(Integer id) {
return AjaxResult.success(iiWarnService.removeById(id));
}
}

@ -0,0 +1,78 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 施工报告
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_construction_report")
@ApiModel(value="IConstructionReport对象", description="施工报告")
public class IConstructionReport implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "报告日期")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime date;
@ApiModelProperty(value = "报告周期")
private String cycle;
@ApiModelProperty(value = "计划id")
private Long planId;
@ApiModelProperty(value = "计划名称")
private String planName;
@ApiModelProperty(value = "总体进度")
private String totalProgress;
@ApiModelProperty(value = "人力投入")
private String manpower;
@ApiModelProperty(value = "材料使用")
private String materialsUse;
@ApiModelProperty(value = "机械设备运行")
private String equipmentOperation;
@ApiModelProperty(value = "质量安全")
private String qs;
@ApiModelProperty(value = "建议")
private String advise;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,75 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 工程日志
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_engineer_log")
@ApiModel(value="IEngineerLog对象", description="工程日志")
public class IEngineerLog implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "日期")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime date;
@ApiModelProperty(value = "天气")
private String weather;
@ApiModelProperty(value = "温度")
private String temperature;
@ApiModelProperty(value = "风力")
private String wind;
@ApiModelProperty(value = "现场负责人姓名")
private String principalName;
@ApiModelProperty(value = "现场负责人联系方式")
private String principalTel;
@ApiModelProperty(value = "施工情况")
private String constructionSituation;
@ApiModelProperty(value = "其他事项")
private String otherBusiness;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,67 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 人力信息表
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_manpower")
@ApiModel(value="IManpower对象", description="人力信息表")
public class IManpower implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "姓名")
private String name;
@ApiModelProperty(value = "工种")
private String workType;
@ApiModelProperty(value = "数量")
private Integer quantity;
@ApiModelProperty(value = "计划投入时间")
private Integer planDevoteTime;
@ApiModelProperty(value = "实际投入时间")
private Integer actualDevoteTime;
@ApiModelProperty(value = "预计离场时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime leaveTime;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,77 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 材料信息表
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_materials")
@ApiModel(value="IMaterials对象", description="材料信息表")
public class IMaterials implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "材料名称")
private String name;
@ApiModelProperty(value = "规格型号")
private String specification;
@ApiModelProperty(value = "单位")
private String unit;
@ApiModelProperty(value = "计划需求量")
private Integer planNeed;
@ApiModelProperty(value = "实际进厂量")
private Integer actualIn;
@ApiModelProperty(value = "剩余量")
private Integer surplus;
@ApiModelProperty(value = "供应商名称")
private String supplierName;
@ApiModelProperty(value = "采购时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime purchaseTime;
@ApiModelProperty(value = "预计使用时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime planUseTime;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,77 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
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;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 生产计划表
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_production_plan")
@ApiModel(value="IProductionPlan对象", description="生产计划表")
public class IProductionPlan implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "计划名称")
private String planName;
@ApiModelProperty(value = "所属项目阶段")
private String projectStage;
@ApiModelProperty(value = "计划描述")
private String description;
@ApiModelProperty(value = "计划开始时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date startTime;
@ApiModelProperty(value = "计划结束时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date endTime;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTime;
@ApiModelProperty(value = "创建人")
private String creator;
@ApiModelProperty(value = "总工期天数")
private Integer duration;
@ApiModelProperty(value = "关键节点时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime keystageTime;
@ApiModelProperty(value = "计划负责人")
private String principal;
}

@ -0,0 +1,58 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 进度跟踪表
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_progress")
@ApiModel(value="IProgress对象", description="进度跟踪表")
public class IProgress implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "计划id")
private Long planId;
@ApiModelProperty(value = "计划名称")
private String planName;
@ApiModelProperty(value = "当日完成进度")
private Integer dayProgress;
@ApiModelProperty(value = "累计完成进度")
private Integer accumulativeProgress;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,68 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 资源调度表
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_resource_schedule")
@ApiModel(value="IResourceSchedule对象", description="资源调度表")
public class IResourceSchedule implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "计划id")
private Long planId;
@ApiModelProperty(value = "计划名称")
private String planName;
@ApiModelProperty(value = "计划开始时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime startTime;
@ApiModelProperty(value = "计划结束时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime endTime;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
@ApiModelProperty(value = "当前进度")
private Integer currentProgress;
@ApiModelProperty(value = "建议")
private String advise;
}

@ -0,0 +1,54 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 安全教育
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_safe")
@ApiModel(value="ISafe对象", description="安全教育")
public class ISafe implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "姓名")
private String name;
@ApiModelProperty(value = "进项安全教育啥时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime date;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,58 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 实名制与信息管理
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_user")
@ApiModel(value="IUser对象", description="实名制与信息管理")
public class IUser implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "姓名")
private String name;
@ApiModelProperty(value = "联系方式")
private String tel;
@ApiModelProperty(value = "身份证")
private String idCard;
@ApiModelProperty(value = "工种")
private String workType;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,61 @@
package com.zilber.boot.intelligencesite.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>
* 预警表
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("i_warn")
@ApiModel(value="IWarn对象", description="预警表")
public class IWarn implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "计划id")
private Long planId;
@ApiModelProperty(value = "计划名称")
private String planName;
@ApiModelProperty(value = "偏差类型1提前2滞后")
private Integer deviationType;
@ApiModelProperty(value = "偏差天数")
private Integer deviationDays;
@ApiModelProperty(value = "预警信息")
private String warnInfo;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime createTime;
@ApiModelProperty(value = "创建人")
private String creator;
}

@ -0,0 +1,20 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IConstructionReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 施工报告 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IConstructionReportMapper extends BaseMapper<IConstructionReport> {
List<IConstructionReport> queryList(IConstructionReport iConstructionReport);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 工程日志 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IEngineerLogMapper extends BaseMapper<IEngineerLog> {
List<IEngineerLog> queryList(IEngineerLog iEngineerLog);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IManpower;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 人力信息表 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IManpowerMapper extends BaseMapper<IManpower> {
List<IManpower> queryList(IManpower iManpower);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IMaterials;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 材料信息表 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IMaterialsMapper extends BaseMapper<IMaterials> {
List<IMaterials> queryList(IMaterials iMaterials);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IProductionPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 生产计划表 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IProductionPlanMapper extends BaseMapper<IProductionPlan> {
List<IProductionPlan> queryList(IProductionPlan iProductionPlan);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IProgress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 进度跟踪表 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IProgressMapper extends BaseMapper<IProgress> {
List<IProgress> queryList(IProgress iProgress);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IResourceSchedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 资源调度表 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IResourceScheduleMapper extends BaseMapper<IResourceSchedule> {
List<IResourceSchedule> queryList(IResourceSchedule iResourceSchedule);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.ISafe;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 安全教育 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface ISafeMapper extends BaseMapper<ISafe> {
List<ISafe> queryList(ISafe iSafe);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 实名制与信息管理 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IUserMapper extends BaseMapper<IUser> {
List<IUser> queryList(IUser iUser);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.mapper;
import com.zilber.boot.intelligencesite.entity.IWarn;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* 预警表 Mapper 接口
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IWarnMapper extends BaseMapper<IWarn> {
List<IWarn> queryList(IWarn iWarn);
}

@ -0,0 +1,22 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IConstructionReport;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zilber.boot.utils.AjaxResult;
import com.zilber.boot.utils.page.PageUtils;
import java.util.List;
/**
* <p>
* 施工报告 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIConstructionReportService extends IService<IConstructionReport> {
List<IConstructionReport> queryList(IConstructionReport iConstructionReport);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 工程日志 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIEngineerLogService extends IService<IEngineerLog> {
List<IEngineerLog> queryList(IEngineerLog iEngineerLog);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IManpower;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 人力信息表 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIManpowerService extends IService<IManpower> {
List<IManpower> queryList(IManpower iManpower);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IMaterials;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 材料信息表 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIMaterialsService extends IService<IMaterials> {
List<IMaterials> queryList(IMaterials iMaterials);
}

@ -0,0 +1,24 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IProductionPlan;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Map;
/**
* <p>
* 生产计划表 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIProductionPlanService extends IService<IProductionPlan> {
List<IProductionPlan> queryList(IProductionPlan iProductionPlan);
Map<String, Object> statistics();
List<IProductionPlan> querywarn(Integer day);
}

@ -0,0 +1,22 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IProgress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zilber.boot.utils.AjaxResult;
import java.util.List;
/**
* <p>
* 进度跟踪表 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIProgressService extends IService<IProgress> {
List<IProgress> queryList(IProgress iProgress);
AjaxResult add(IProgress iProgress);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IResourceSchedule;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 资源调度表 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIResourceScheduleService extends IService<IResourceSchedule> {
List<IResourceSchedule> queryList(IResourceSchedule iResourceSchedule);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.ISafe;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 安全教育 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IISafeService extends IService<ISafe> {
List<ISafe> queryList(ISafe iSafe);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IUser;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 实名制与信息管理 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIUserService extends IService<IUser> {
List<IUser> queryList(IUser iUser);
}

@ -0,0 +1,19 @@
package com.zilber.boot.intelligencesite.service;
import com.zilber.boot.intelligencesite.entity.IWarn;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 预警表 服务类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
public interface IIWarnService extends IService<IWarn> {
List<IWarn> queryList(IWarn iWarn);
}

@ -0,0 +1,32 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IConstructionReport;
import com.zilber.boot.intelligencesite.mapper.IConstructionReportMapper;
import com.zilber.boot.intelligencesite.service.IIConstructionReportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 施工报告 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IConstructionReportServiceImpl extends ServiceImpl<IConstructionReportMapper, IConstructionReport> implements IIConstructionReportService {
@Resource
private IConstructionReportMapper iConstructionReportMapper;
@Override
public List<IConstructionReport> queryList(IConstructionReport iConstructionReport) {
return iConstructionReportMapper.queryList(iConstructionReport);
}
}

@ -0,0 +1,31 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.mapper.IConstructionReportMapper;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.service.IIEngineerLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 工程日志 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IEngineerLogServiceImpl extends ServiceImpl<IEngineerLogMapper, IEngineerLog> implements IIEngineerLogService {
@Resource
private IEngineerLogMapper iEngineerLogMapper;
@Override
public List<IEngineerLog> queryList(IEngineerLog iEngineerLog) {
return iEngineerLogMapper.queryList(iEngineerLog);
}
}

@ -0,0 +1,33 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IManpower;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IManpowerMapper;
import com.zilber.boot.intelligencesite.service.IIManpowerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 人力信息表 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IManpowerServiceImpl extends ServiceImpl<IManpowerMapper, IManpower> implements IIManpowerService {
@Resource
private IManpowerMapper iManpowerMapper;
@Override
public List<IManpower> queryList(IManpower iManpower) {
return iManpowerMapper.queryList(iManpower);
}
}

@ -0,0 +1,33 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IMaterials;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IMaterialsMapper;
import com.zilber.boot.intelligencesite.service.IIMaterialsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 材料信息表 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IMaterialsServiceImpl extends ServiceImpl<IMaterialsMapper, IMaterials> implements IIMaterialsService {
@Resource
private IMaterialsMapper iMaterialsMapper;
@Override
public List<IMaterials> queryList(IMaterials iMaterials) {
return iMaterialsMapper.queryList(iMaterials);
}
}

@ -0,0 +1,83 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IProductionPlan;
import com.zilber.boot.intelligencesite.entity.IProgress;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IProductionPlanMapper;
import com.zilber.boot.intelligencesite.mapper.IProgressMapper;
import com.zilber.boot.intelligencesite.service.IIProductionPlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zilber.boot.utils.DateUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.temporal.ChronoUnit;
import java.util.*;
/**
* <p>
* 生产计划表 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IProductionPlanServiceImpl extends ServiceImpl<IProductionPlanMapper, IProductionPlan> implements IIProductionPlanService {
@Resource
private IProductionPlanMapper iProductionPlanMapper;
@Resource
private IProgressMapper iProgressMapper;
@Override
public List<IProductionPlan> queryList(IProductionPlan iProductionPlan) {
return iProductionPlanMapper.queryList(iProductionPlan);
}
@Override
public Map<String, Object> statistics() {
List<IProductionPlan> iProductionPlans = iProductionPlanMapper.queryList(null);
List<String> namelist=new ArrayList<>();
List<BigDecimal> planlist=new ArrayList<>();
List<Long> actuallist=new ArrayList<>();
for (IProductionPlan iProductionPlan : iProductionPlans) {
//获取每个计划时间差(结束时间-开始时间)
//long datePoorByDay = DateUtils.getDatePoorByDay(iProductionPlan.getEndTime(), iProductionPlan.getStartTime());
//获取每个计划每天应完成的百分比
BigDecimal daypercent = new BigDecimal(1).divide(new BigDecimal(iProductionPlan.getDuration()),2,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100));
//获取当前日期,减去开始日期,乘以每个计划每天应完成的百分比,算出截止今天应该完成的百分比
BigDecimal currentpercent = BigDecimal.valueOf(DateUtils.getDatePoorByDay(new Date(), iProductionPlan.getStartTime())).multiply(daypercent);
if (DateUtils.getDatePoorByDay(new Date(), iProductionPlan.getEndTime()) > 0) {
currentpercent = BigDecimal.valueOf(100);
}
planlist.add(currentpercent);
namelist.add(iProductionPlan.getPlanName());
//查询计划实际填报情况
List<IProgress> progresseslist = iProgressMapper.queryList(new IProgress().setPlanId(iProductionPlan.getId()));
long total = progresseslist.stream().mapToLong(IProgress::getDayProgress).sum();
actuallist.add(total);
}
Map<String, Object> result = new HashMap<>();
result.put("namelist",namelist);
result.put("planlist",planlist);
result.put("actuallist",actuallist);
return result;
}
@Override
public List<IProductionPlan> querywarn(Integer day) {
List<IProductionPlan> iProductionPlans = iProductionPlanMapper.queryList(null);
List<IProductionPlan> newiProductionPlans=new ArrayList<>();
for (IProductionPlan iProductionPlan : iProductionPlans) {
if (DateUtils.getDatePoorByDay(new Date(), iProductionPlan.getEndTime()) > day) {
newiProductionPlans.add(iProductionPlan);
}
}
return newiProductionPlans;
}
}

@ -0,0 +1,43 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IProgress;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IProgressMapper;
import com.zilber.boot.intelligencesite.service.IIProgressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zilber.boot.utils.AjaxResult;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 进度跟踪表 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IProgressServiceImpl extends ServiceImpl<IProgressMapper, IProgress> implements IIProgressService {
@Resource
private IProgressMapper iProgressMapper;
@Override
public List<IProgress> queryList(IProgress iProgress) {
return iProgressMapper.queryList(iProgress);
}
@Override
public AjaxResult add(IProgress iProgress) {
List<IProgress> list=iProgressMapper.queryList(new IProgress().setPlanId(iProgress.getPlanId()));
long total = list.stream().mapToLong(IProgress::getDayProgress).sum();
if(iProgress.getDayProgress()+total>100){
return AjaxResult.error("已超出最大值,最大值应为"+ (100 - total));
}
return AjaxResult.success(iProgressMapper.insert(iProgress));
}
}

@ -0,0 +1,34 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IResourceSchedule;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IResourceScheduleMapper;
import com.zilber.boot.intelligencesite.service.IIResourceScheduleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 资源调度表 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IResourceScheduleServiceImpl extends ServiceImpl<IResourceScheduleMapper, IResourceSchedule> implements IIResourceScheduleService {
@Resource
private IResourceScheduleMapper iResourceScheduleMapper;
@Override
public List<IResourceSchedule> queryList(IResourceSchedule iResourceSchedule) {
return iResourceScheduleMapper.queryList(iResourceSchedule);
}
}

@ -0,0 +1,32 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.ISafe;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.ISafeMapper;
import com.zilber.boot.intelligencesite.service.IISafeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 安全教育 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class ISafeServiceImpl extends ServiceImpl<ISafeMapper, ISafe> implements IISafeService {
@Resource
private ISafeMapper iSafeMapper;
@Override
public List<ISafe> queryList(ISafe iSafe) {
return iSafeMapper.queryList(iSafe);
}
}

@ -0,0 +1,32 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IUser;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IUserMapper;
import com.zilber.boot.intelligencesite.service.IIUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 实名制与信息管理 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IUserServiceImpl extends ServiceImpl<IUserMapper, IUser> implements IIUserService {
@Resource
private IUserMapper iUserMapper;
@Override
public List<IUser> queryList(IUser iUser) {
return iUserMapper.queryList(iUser);
}
}

@ -0,0 +1,32 @@
package com.zilber.boot.intelligencesite.service.impl;
import com.zilber.boot.intelligencesite.entity.IEngineerLog;
import com.zilber.boot.intelligencesite.entity.IWarn;
import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper;
import com.zilber.boot.intelligencesite.mapper.IWarnMapper;
import com.zilber.boot.intelligencesite.service.IIWarnService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* <p>
* 预警表 服务实现类
* </p>
*
* @author lsc
* @since 2025-05-06
*/
@Service
public class IWarnServiceImpl extends ServiceImpl<IWarnMapper, IWarn> implements IIWarnService {
@Resource
private IWarnMapper iWarnMapper;
@Override
public List<IWarn> queryList(IWarn iWarn) {
return iWarnMapper.queryList(iWarn);
}
}

@ -0,0 +1,78 @@
package com.zilber.boot.system.controller;
import com.zilber.boot.annotation.Anonymous;
import com.zilber.boot.system.pojo.SysDictionary;
import com.zilber.boot.system.service.ISysDictionaryService;
import com.zilber.boot.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 数据字典Controller
*/
@RestController
@RequestMapping("/system/dictionary")
@Api(tags = "数据字典管理")
@Anonymous
public class SysDictionaryController {
@Autowired
private ISysDictionaryService sysDictionaryService;
/**
* 获取数据字典列表(分页查询)
* @param sysDictionary
* @return
*/
//@PreAuthorize("@ss.hasPermi('system:dictionary:list')")
@ApiOperation(value="获取数据字典列表",notes="获取数据字典列表")
@GetMapping("/list")
public AjaxResult list(SysDictionary sysDictionary) {
/* PageHelper pageHelper = new PageHelper();
pageHelper.startPage(pageNo, pageSize);*/
if(sysDictionary.getParentId() == null){
sysDictionary.setParentId(0L);
}
List<SysDictionary> list = sysDictionaryService.getList(sysDictionary);
return AjaxResult.success(list);
}
@ApiOperation("新增数据字典数据")
@PostMapping
public AjaxResult add(@RequestBody SysDictionary sysDictionary){
try {
if(sysDictionaryService.addDict(sysDictionary)){
return AjaxResult.success();
}else {
return AjaxResult.error();
}
}catch (Exception e){
e.printStackTrace();
return AjaxResult.error(e.getMessage());
}
}
@ApiOperation("修改数据字典数据")
@PutMapping
public AjaxResult update(@RequestBody SysDictionary sysDictionary){
return AjaxResult.success(sysDictionaryService.updateById(sysDictionary));
}
@ApiOperation("删除数据字典数据")
@DeleteMapping("/{id}")
public AjaxResult delete(@PathVariable Long id){
return AjaxResult.success(sysDictionaryService.delDict(id));
}
@ApiOperation("根据id获取字典数据")
@GetMapping("/{id}")
public AjaxResult getById(@PathVariable Long id){
return AjaxResult.success(sysDictionaryService.getById(id));
}
}

@ -0,0 +1,15 @@
package com.zilber.boot.system.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zilber.boot.system.pojo.SysDictionary;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface SysDictionaryMapper extends BaseMapper<SysDictionary> {
List<SysDictionary> getList(SysDictionary sysDictionary);
}

@ -0,0 +1,75 @@
package com.zilber.boot.system.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@ApiModel(value = "系统数据字典",description = "包含系统分类管理")
@TableName("sys_dictionary")
@Data
public class SysDictionary {
@ApiModelProperty(name = "自增ID",notes = "")
@TableId(type = IdType.AUTO)
private Long id ;
/** 字典编码 */
@ApiModelProperty(name = "字典编码",notes = "")
private String code ;
/** 字典名称 */
@ApiModelProperty(name = "字典名称",notes = "")
private String name ;
/** 字典值 */
@ApiModelProperty(name = "字典值",notes = "")
private String value ;
/** 字典描述 */
@ApiModelProperty(name = "字典描述",notes = "")
private String remark ;
/** 字典级别 */
@ApiModelProperty(name = "字典级别",notes = "")
private Integer level ;
/** 多层级字典路径 */
@ApiModelProperty(name = "多层级字典路径",notes = "")
private String path ;
/** 父级节点ID */
@ApiModelProperty(name = "父级节点ID",notes = "")
private Long parentId ;
/** 关联业务编码 */
@ApiModelProperty(name = "关联业务编码",notes = "")
private String contactCode ;
/** 删除标识 0=删除;1=生效 */
@ApiModelProperty(name = "删除标识 0=删除;1=生效",notes = "")
private Integer isDel = 1;
/** 排序 */
@ApiModelProperty(name = "排序",notes = "")
private Integer sort ;
@ApiModelProperty(name = "子节点",notes = "")
@TableField(exist = false)
private List<SysDictionary> subSysDictionaryList;
@ApiModelProperty(name = "父节点",notes = "")
@TableField(exist = false)
private SysDictionary parentSysDictionary;
@ApiModelProperty(name = "导入附件-ID", notes = "")
@TableField(exist = false)
private Long fileId;
}

@ -0,0 +1,17 @@
package com.zilber.boot.system.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zilber.boot.system.pojo.SysDictionary;
import java.util.List;
public interface ISysDictionaryService extends IService<SysDictionary> {
boolean addDict(SysDictionary sysDictionary) throws Exception;
int delDict(Long id);
List<SysDictionary> getList(SysDictionary sysDictionary);
}

@ -0,0 +1,61 @@
package com.zilber.boot.system.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zilber.boot.file.dao.FileDao;
import com.zilber.boot.system.dao.SysDictionaryMapper;
import com.zilber.boot.system.pojo.SysDictionary;
import com.zilber.boot.system.service.ISysDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
public class SysDictionaryServiceImpl extends ServiceImpl<SysDictionaryMapper, SysDictionary> implements ISysDictionaryService {
@Autowired
private SysDictionaryMapper sysDictionaryMapper;
@Value("${zilberboot.profile}")
private String localtion;
@Autowired
private FileDao fileDao;
@Override
@Transactional(rollbackFor = Exception.class)
public boolean addDict(SysDictionary sysDictionary) {
sysDictionaryMapper.insert(sysDictionary);
Long parentId = sysDictionary.getParentId();
if(parentId != null && parentId > 0L){
SysDictionary parentDict = getById(parentId);
if(parentDict != null){
sysDictionary.setLevel(parentDict.getLevel() + 1);
sysDictionary.setPath(parentDict.getPath() + sysDictionary.getId()+",");
}
}else{
sysDictionary.setParentId(0L);
sysDictionary.setLevel(1);
sysDictionary.setPath(",0,"+sysDictionary.getId()+",");
}
return updateById(sysDictionary);
}
@Override
public int delDict(Long id) {
SysDictionary sysDictionary = new SysDictionary();
sysDictionary.setIsDel(0);
LambdaQueryWrapper<SysDictionary> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysDictionary::getId, id);
return sysDictionaryMapper.update(sysDictionary, queryWrapper);
}
@Override
public List<SysDictionary> getList(SysDictionary sysDictionary) {
return sysDictionaryMapper.getList(sysDictionary);
}
}

@ -181,4 +181,17 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault());
return Date.from(zdt.toInstant());
}
/**
* 计算两个时间差
*/
public static long getDatePoorByDay(Date endDate, Date nowDate)
{
long nd = 1000 * 24 * 60 * 60;
// long ns = 1000;
// 获得两个时间的毫秒时间差异
long diff = endDate.getTime() - nowDate.getTime();
// 计算差多少天
return diff / nd;
}
}

@ -0,0 +1,50 @@
<?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.zilber.boot.intelligencesite.mapper.IConstructionReportMapper">
<resultMap id="IConstructionReportResult" type="com.zilber.boot.intelligencesite.entity.IConstructionReport">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="date" column="date" jdbcType="TIMESTAMP"/>
<result property="cycle" column="cycle" jdbcType="VARCHAR"/>
<result property="planId" column="plan_id" jdbcType="INTEGER"/>
<result property="planName" column="plan_name" jdbcType="VARCHAR"/>
<result property="totalProgress" column="total_progress" jdbcType="VARCHAR"/>
<result property="manpower" column="manpower" jdbcType="VARCHAR"/>
<result property="materialsUse" column="materials_use" jdbcType="VARCHAR"/>
<result property="equipmentOperation" column="equipment_operation" jdbcType="VARCHAR"/>
<result property="qs" column="qs" jdbcType="VARCHAR"/>
<result property="advise" column="advise" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIConstructionReportVo">
select
id, date, cycle, plan_id, plan_name, total_progress, manpower, materials_use, equipment_operation, qs, advise, create_time, creator from i_construction_report
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IConstructionReport" resultMap="IConstructionReportResult">
<include refid="selectIConstructionReportVo"/>
<where>
<if test="date != null"> and date=#{date}</if>
<if test="cycle != null and cycle != ''"> and cycle=#{cycle}</if>
<if test="planId != null"> and plan_id=#{planId}</if>
<if test="planName != null and planName != ''"> and plan_name=#{planName}</if>
<if test="totalProgress != null and totalProgress != ''"> and total_progress=#{totalProgress}</if>
<if test="manpower != null and manpower != ''"> and manpower=#{manpower}</if>
<if test="materialsUse != null and materialsUse != ''"> and materials_use=#{materialsUse}</if>
<if test="equipmentOperation != null and equipmentOperation != ''"> and equipment_operation=#{equipmentOperation}</if>
<if test="qs != null and qs != ''"> and qs=#{qs}</if>
<if test="advise != null and advise != ''"> and advise=#{advise}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,46 @@
<?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.zilber.boot.intelligencesite.mapper.IEngineerLogMapper">
<resultMap id="IEngineerLogResult" type="com.zilber.boot.intelligencesite.entity.IEngineerLog">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="date" column="date" jdbcType="TIMESTAMP"/>
<result property="weather" column="weather" jdbcType="VARCHAR"/>
<result property="temperature" column="temperature" jdbcType="VARCHAR"/>
<result property="wind" column="wind" jdbcType="VARCHAR"/>
<result property="principalName" column="principal_name" jdbcType="VARCHAR"/>
<result property="principalTel" column="principal_tel" jdbcType="VARCHAR"/>
<result property="constructionSituation" column="construction_situation" jdbcType="VARCHAR"/>
<result property="otherBusiness" column="other_business" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIEngineerLogVo">
select
id, date,
weather, temperature, wind,
principal_name,
principal_tel, construction_situation, other_business, create_time, creator from i_engineer_log
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IEngineerLog" resultMap="IEngineerLogResult">
<include refid="selectIEngineerLogVo"/>
<where>
<if test="date != null"> and date=#{date}</if>
<if test="weather!= null and weather!= ''"> and weather=#{weather}</if>
<if test="temperature != null and temperature != ''"> and temperature=#{temperature}</if>
<if test="wind != null and wind != ''"> and wind=#{wind}</if>
<if test="principalName != null and principalName != ''"> and principal_name=#{principalName}</if>
<if test="principalTel != null and principalTel != ''"> and principal_tel=#{principalTel}</if>
<if test="constructionSituation != null and constructionSituation != ''"> and construction_situation=#{constructionSituation}</if>
<if test="otherBusiness != null and otherBusiness != ''"> and other_business=#{otherBusiness}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,53 @@
<?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.zilber.boot.intelligencesite.mapper.IManpowerMapper">
<resultMap id="IManpowerResult" type="com.zilber.boot.intelligencesite.entity.IManpower">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="workType" column="work_type" jdbcType="VARCHAR"/>
<result property="
quantity" column="
quantity" jdbcType="INTEGER"/>
<result property="planDevoteTime" column="plan_devote_time" jdbcType="INTEGER"/>
<result property="actualDevoteTime" column="actual_devote_time" jdbcType="INTEGER"/>
<result property="leaveTime" column="leave_time" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIManpowerVo">
select
id, name, work_type,
quantity, plan_devote_time, actual_devote_time, leave_time, create_time, creator from i_manpower
</sql>
<!--查询单个-->
<select id="queryById" resultMap="IManpowerResult">
<include refid="selectIManpowerVo"/>
where id = #{id}
</select>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IManpower" resultMap="IManpowerResult">
<include refid="selectIManpowerVo"/>
<where>
<if test="name != null and name != ''"> and name=#{name}</if>
<if test="workType != null and workType != ''"> and work_type=#{workType}</if>
<if test="
quantity != null"> and
quantity=#{
quantity}</if>
<if test="planDevoteTime != null"> and plan_devote_time=#{planDevoteTime}</if>
<if test="actualDevoteTime != null"> and actual_devote_time=#{actualDevoteTime}</if>
<if test="leaveTime != null"> and leave_time=#{leaveTime}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,47 @@
<?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.zilber.boot.intelligencesite.mapper.IMaterialsMapper">
<resultMap id="IMaterialsResult" type="com.zilber.boot.intelligencesite.entity.IMaterials">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="specification" column="specification" jdbcType="VARCHAR"/>
<result property="unit" column="unit" jdbcType="VARCHAR"/>
<result property="planNeed" column="plan_need" jdbcType="INTEGER"/>
<result property="actualIn" column="actual_in" jdbcType="INTEGER"/>
<result property="surplus" column="surplus" jdbcType="INTEGER"/>
<result property="supplierName" column="supplier_name" jdbcType="VARCHAR"/>
<result property="purchaseTime" column="purchase_time" jdbcType="TIMESTAMP"/>
<result property="planUseTime" column="plan_use_time" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIMaterialsVo">
select
id, name, specification, unit, plan_need, actual_in, surplus, supplier_name, purchase_time, plan_use_time, create_time, creator from i_materials
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IMaterials" resultMap="IMaterialsResult">
<include refid="selectIMaterialsVo"/>
<where>
<if test="name != null and name != ''"> and name=#{name}</if>
<if test="specification != null and specification != ''"> and specification=#{specification}</if>
<if test="unit != null and unit != ''"> and unit=#{unit}</if>
<if test="planNeed != null"> and plan_need=#{planNeed}</if>
<if test="actualIn != null"> and actual_in=#{actualIn}</if>
<if test="surplus != null"> and surplus=#{surplus}</if>
<if test="supplierName != null and supplierName != ''"> and supplier_name=#{supplierName}</if>
<if test="purchaseTime != null"> and purchase_time=#{purchaseTime}</if>
<if test="planUseTime != null"> and plan_use_time=#{planUseTime}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,47 @@
<?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.zilber.boot.intelligencesite.mapper.IProductionPlanMapper">
<resultMap id="IProductionPlanResult" type="com.zilber.boot.intelligencesite.entity.IProductionPlan">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="planName" column="plan_name" jdbcType="VARCHAR"/>
<result property="projectStage" column="project_stage" jdbcType="VARCHAR"/>
<result property="description" column="description" jdbcType="VARCHAR"/>
<result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
<result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
<result property="duration" column="duration" jdbcType="INTEGER"/>
<result property="keystageTime" column="keystage_time" jdbcType="TIMESTAMP"/>
<result property="principal" column="principal" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIProductionPlanVo">
select
id, plan_name, project_stage, description, start_time, end_time, create_time, creator, duration, keystage_time, principal from i_production_plan
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IProductionPlan" resultMap="IProductionPlanResult">
<include refid="selectIProductionPlanVo"/>
<where>
<if test="planName != null and planName != ''"> and plan_name=#{planName}</if>
<if test="projectStage != null and projectStage != ''"> and project_stage=#{projectStage}</if>
<if test="description != null and description != ''"> and description=#{description}</if>
<if test="startTime != null"> and start_time=#{startTime}</if>
<if test="endTime != null"> and end_time=#{endTime}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
<if test="duration != null"> and duration=#{duration}</if>
<if test="keystageTime != null"> and keystage_time=#{keystageTime}</if>
<if test="principal != null and principal != ''"> and principal=#{principal}</if>
</where>
</select>
</mapper>

@ -0,0 +1,43 @@
<?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.zilber.boot.intelligencesite.mapper.IProgressMapper">
<resultMap id="IProgressResult" type="com.zilber.boot.intelligencesite.entity.IProgress">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="planId" column="plan_id" jdbcType="INTEGER"/>
<result property="planName" column="plan_name" jdbcType="VARCHAR"/>
<result property="dayProgress" column="day_progress" jdbcType="INTEGER"/>
<result property="accumulativeProgress" column="accumulative_progress" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIProgressVo">
select
id, plan_id, plan_name, day_progress, accumulative_progress, create_time, creator from i_progress
</sql>
<!--查询单个-->
<select id="queryById" resultMap="IProgressResult">
<include refid="selectIProgressVo"/>
where id = #{id}
</select>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IProgress" resultMap="IProgressResult">
<include refid="selectIProgressVo"/>
<where>
<if test="planId != null"> and plan_id=#{planId}</if>
<if test="planName != null and planName != ''"> and plan_name=#{planName}</if>
<if test="dayProgress != null"> and day_progress=#{dayProgress}</if>
<if test="accumulativeProgress != null"> and accumulative_progress=#{accumulativeProgress}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,40 @@
<?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.zilber.boot.intelligencesite.mapper.IResourceScheduleMapper">
<resultMap id="IResourceScheduleResult" type="com.zilber.boot.intelligencesite.entity.IResourceSchedule">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="planId" column="plan_id" jdbcType="INTEGER"/>
<result property="planName" column="plan_name" jdbcType="VARCHAR"/>
<result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
<result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
<result property="currentProgress" column="current_progress" jdbcType="INTEGER"/>
<result property="advise" column="advise" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIResourceScheduleVo">
select
id, plan_id, plan_name, start_time, end_time, create_time, creator, current_progress, advise from i_resource_schedule
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IResourceSchedule" resultMap="IResourceScheduleResult">
<include refid="selectIResourceScheduleVo"/>
<where>
<if test="planId != null"> and plan_id=#{planId}</if>
<if test="planName != null and planName != ''"> and plan_name=#{planName}</if>
<if test="startTime != null"> and start_time=#{startTime}</if>
<if test="endTime != null"> and end_time=#{endTime}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
<if test="currentProgress != null"> and current_progress=#{currentProgress}</if>
<if test="advise != null and advise != ''"> and advise=#{advise}</if>
</where>
</select>
</mapper>

@ -0,0 +1,33 @@
<?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.zilber.boot.intelligencesite.mapper.ISafeMapper">
<resultMap id="ISafeResult" type="com.zilber.boot.intelligencesite.entity.ISafe">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="date" column="date" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectISafeVo">
select
id, name, date, create_time, creator from i_safe
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.ISafe" resultMap="ISafeResult">
<include refid="selectISafeVo"/>
<where>
<if test="name != null and name != ''"> and name=#{name}</if>
<if test="date != null"> and date=#{date}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,38 @@
<?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.zilber.boot.intelligencesite.mapper.IUserMapper">
<resultMap id="IUserResult" type="com.zilber.boot.intelligencesite.entity.IUser">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="tel" column="tel" jdbcType="VARCHAR"/>
<result property="idCard" column="id_card" jdbcType="VARCHAR"/>
<result property="workType" column="work_type" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIUserVo">
select
id, name, tel, id_card, work_type, create_time, creator from i_user
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IUser" resultMap="IUserResult">
<include refid="selectIUserVo"/>
<where>
<if test="name != null and name != ''"> and name=#{name}</if>
<if test="tel != null and tel != ''"> and tel=#{tel}</if>
<if test="idCard != null and idCard != ''"> and id_card=#{idCard}</if>
<if test="workType != null and workType != ''"> and work_type=#{workType}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>

@ -0,0 +1,39 @@
<?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.zilber.boot.intelligencesite.mapper.IWarnMapper">
<resultMap id="IWarnResult" type="com.zilber.boot.intelligencesite.entity.IWarn">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="planId" column="plan_id" jdbcType="INTEGER"/>
<result property="planName" column="plan_name" jdbcType="VARCHAR"/>
<result property="deviationType" column="deviation_type" jdbcType="INTEGER"/>
<result property="deviationDays" column="deviation_days" jdbcType="INTEGER"/>
<result property="warnInfo" column="warn_info" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
</resultMap>
<sql id="selectIWarnVo">
select
id, plan_id, plan_name, deviation_type, deviation_days, warn_info, create_time, creator from i_warn
</sql>
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IWarn" resultMap="IWarnResult">
<include refid="selectIWarnVo"/>
<where>
<if test="planId != null"> and plan_id=#{planId}</if>
<if test="planName != null and planName != ''"> and plan_name=#{planName}</if>
<if test="deviationType != null"> and deviation_type=#{deviationType}</if>
<if test="deviationDays != null"> and deviation_days=#{deviationDays}</if>
<if test="warnInfo != null and warnInfo != ''"> and warn_info=#{warnInfo}</if>
<if test="createTime != null"> and create_time=#{createTime}</if>
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
</where>
</select>
</mapper>
Loading…
Cancel
Save