feat:相关方代码提交
parent
73acd3fc67
commit
65bb210f8a
|
@ -60,6 +60,13 @@
|
|||
<groupId>com.hbt.onreal</groupId>
|
||||
<artifactId>hbt-onreal-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- hbt Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.hbt.onreal</groupId>
|
||||
<artifactId>hbt-onreal-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- hbt Common Security -->
|
||||
<dependency>
|
||||
<groupId>com.hbt.onreal</groupId>
|
||||
|
@ -106,6 +113,14 @@
|
|||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2 -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
<version>2.0.52</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -3,7 +3,9 @@ package com.hbt.related.parties;
|
|||
import com.hbt.common.security.annotation.EnableCustomConfig;
|
||||
import com.hbt.common.security.annotation.EnableRyFeignClients;
|
||||
import com.hbt.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import com.hbt.related.parties.config.ConfigProperties;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
|
||||
/**
|
||||
|
@ -13,6 +15,7 @@ import org.springframework.cloud.client.SpringCloudApplication;
|
|||
@SpringCloudApplication
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@EnableConfigurationProperties(value = ConfigProperties.class)
|
||||
public class RelatedPartiesApplication {
|
||||
|
||||
public static void main(String[] args)
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 竣工验收Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
@Api(tags = "system-info-controller", description = "竣工验收")
|
||||
public class AcceptInfoController {
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAccidentEventRecordService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyUserVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 事故事件Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/event/record")
|
||||
@Api(tags = "system-record-controller", description = "事故事件")
|
||||
public class AccidentEventRecordController {
|
||||
|
||||
@Resource
|
||||
private IAccidentEventRecordService accidentEventRecordService;
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*/
|
||||
@ApiOperation("查询事故事件列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<AccidentEventRecord> getList(AccidentEventRecord accidentEventRecord) {
|
||||
return accidentEventRecordService.getList(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事故事件
|
||||
*/
|
||||
@ApiOperation("新增事故事件")
|
||||
@Log(title = "新增事故事件", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增事故事件", required = true) @NotNull @Validated({Insert.class}) @RequestBody AccidentEventRecord accidentEventRecord) {
|
||||
accidentEventRecordService.add(accidentEventRecord);
|
||||
}
|
||||
|
||||
@ApiOperation("修改人事故事件")
|
||||
@PutMapping
|
||||
public void update(@RequestBody AccidentEventRecord accidentEventRecord) {
|
||||
accidentEventRecordService.updateAccidentEventRecord(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事故事件
|
||||
*/
|
||||
@ApiOperation("删除事故事件")
|
||||
@Log(title = "删除事故事件", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
accidentEventRecordService.invalidAccidentEventRecordByIds(ids);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.BlackLogReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.EvacuateReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.BlackLogVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IBlackLogService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 黑名单记录Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/black/log")
|
||||
@Api(tags = "system-log-controller", description = "黑名单记录")
|
||||
public class BlackLogController {
|
||||
|
||||
@Resource
|
||||
private IBlackLogService blackLogService;
|
||||
|
||||
/**
|
||||
* 相关方/相关方人员拉黑
|
||||
*/
|
||||
@ApiOperation("相关方/相关方人员拉黑 type 0公司 1人员 ")
|
||||
@Log(title = "相关方/相关方人员拉黑", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "相关方/相关方人员拉黑", required = true) @NotNull @Validated({Insert.class}) @RequestBody BlackLogVo blackLogVo)
|
||||
{
|
||||
blackLogService.add(blackLogVo);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 移除黑名单 type 0公司 1人员
|
||||
// */
|
||||
// @ApiOperation("移除黑名单 type 0公司 1人员")
|
||||
// @PutMapping
|
||||
// public void update(@RequestBody BlackLogVo blackLogVo) {
|
||||
// blackLogService.update(blackLogVo);
|
||||
// }
|
||||
|
||||
@ApiOperation("拉出黑名单作业申请")
|
||||
@PostMapping("/recover")
|
||||
public void recoverApply(@RequestBody SubmitTaskVo recover) {
|
||||
blackLogService.recoverApply(recover);
|
||||
}
|
||||
|
||||
@ApiOperation("审核拉出黑名单")
|
||||
@PutMapping("/recover")
|
||||
public void recover(@RequestBody SubmitTaskVo recover) {
|
||||
blackLogService.recover(recover);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*/
|
||||
@ApiOperation("查询相关方撤厂列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<BlackLogVo> getList(BlackLogReq blackLogReq) {
|
||||
return blackLogService.getList(blackLogReq);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.EvacuateReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IEvacuateService;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.req.EntryEvacuateUserReq;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.vo.EntryEvacuateUserVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/evacuate")
|
||||
@Api(tags = "system-evacuate-controller", description = "撤厂申请")
|
||||
public class EvacuateController {
|
||||
|
||||
@Resource
|
||||
private IEvacuateService evacuateService;
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*/
|
||||
@ApiOperation("查询相关方撤厂列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<EvacuateVo> getList(EvacuateReq evacuateReq) {
|
||||
return evacuateService.getList(evacuateReq);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增相关方撤厂
|
||||
*/
|
||||
@ApiOperation("新增相关方撤厂")
|
||||
@Log(title = "新增相关方撤厂", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增相关方撤厂", required = true) @NotNull @Validated({Insert.class}) @RequestBody EvacuateVo evacuateVo)
|
||||
{
|
||||
evacuateService.add(evacuateVo);
|
||||
}
|
||||
|
||||
@ApiOperation("相关方撤厂详情")
|
||||
@GetMapping("/detail")
|
||||
public EvacuateVo getDetail(@RequestParam("id") Long id) {
|
||||
return evacuateService.getDetail(id);
|
||||
}
|
||||
|
||||
@ApiOperation("保存草稿")
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody EvacuateVo evacuateVo) {
|
||||
evacuateService.save(evacuateVo);
|
||||
}
|
||||
|
||||
@ApiOperation("审核相关方撤厂")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
evacuateService.recover(submit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除相相关方撤厂
|
||||
*/
|
||||
@ApiOperation("删除相相关方撤厂")
|
||||
@Log(title = "删除相相关方撤厂", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
evacuateService.invalidEvacuateByIds(ids);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.RewardPunishRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkIllegalRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.RewardPunishRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IRewardPunishRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 奖惩记录Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/reward/punish/record")
|
||||
@Api(tags = "system-record-controller", description = "奖惩记录")
|
||||
public class RewardPunishRecordController {
|
||||
|
||||
@Resource
|
||||
private IRewardPunishRecordService rewardPunishRecordService;
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*/
|
||||
@ApiOperation("查询奖惩记录列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<RewardPunishRecordVo> getList(RewardPunishRecordReq rewardPunishRecordReq) {
|
||||
return rewardPunishRecordService.getList(rewardPunishRecordReq);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增奖惩记录
|
||||
*/
|
||||
@ApiOperation("新增奖惩记录")
|
||||
@Log(title = "新增奖惩记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增奖惩记录", required = true) @NotNull @Validated({Insert.class}) @RequestBody RewardPunishRecordVo rewardPunishRecordVo)
|
||||
{
|
||||
rewardPunishRecordService.add(rewardPunishRecordVo);
|
||||
}
|
||||
|
||||
@ApiOperation("获取奖惩记录详情")
|
||||
@GetMapping("/detail")
|
||||
public RewardPunishRecord getDetail(@RequestParam("id") Long id) {
|
||||
return rewardPunishRecordService.selectRewardPunishRecordById(id);
|
||||
}
|
||||
|
||||
@ApiOperation("保存草稿")
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody RewardPunishRecord rewardPunishRecord) {
|
||||
rewardPunishRecordService.save(rewardPunishRecord);
|
||||
}
|
||||
|
||||
@ApiOperation("审核违章违纪登记")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
rewardPunishRecordService.recover(submit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除相关方信息
|
||||
*/
|
||||
@ApiOperation("删除违章违纪登记")
|
||||
@Log(title = "删除违章违纪登记", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
rewardPunishRecordService.invalidRewardPunishRecordByIds(ids);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 违规事项Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/matter")
|
||||
@Api(tags = "system-matter-controller", description = "违规事项")
|
||||
public class WorkIllegalMatterController {
|
||||
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkIllegalRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkIllegalRecordService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanyReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/record")
|
||||
@Api(tags = "system-record-controller", description = "违章违纪登记")
|
||||
public class WorkIllegalRecordController {
|
||||
|
||||
@Resource
|
||||
private IWorkIllegalRecordService workIllegalRecordService;
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*/
|
||||
@ApiOperation("查询违章违纪登记列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<WorkIllegalRecordVo> getList(WorkIllegalRecordReq workIllegalRecordReq) {
|
||||
return workIllegalRecordService.getList(workIllegalRecordReq);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增违章违纪登记
|
||||
*/
|
||||
@ApiOperation("新增违章违纪登记")
|
||||
@Log(title = "新增违章违纪登记", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增违章违纪登记", required = true) @NotNull @Validated({Insert.class}) @RequestBody WorkIllegalRecordVo workIllegalRecord)
|
||||
{
|
||||
workIllegalRecordService.add(workIllegalRecord);
|
||||
}
|
||||
|
||||
@ApiOperation("获取违章违纪登记详情")
|
||||
@GetMapping("/detail")
|
||||
public WorkIllegalRecord getDetail(@RequestParam("id") Long id) {
|
||||
return workIllegalRecordService.getDetail(id);
|
||||
}
|
||||
|
||||
@ApiOperation("保存草稿")
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody WorkIllegalRecord workIllegalRecord) {
|
||||
workIllegalRecordService.save(workIllegalRecord);
|
||||
}
|
||||
|
||||
@ApiOperation("审核违章违纪登记")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
workIllegalRecordService.recover(submit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除相关方信息
|
||||
*/
|
||||
@ApiOperation("删除违章违纪登记")
|
||||
@Log(title = "删除违章违纪登记", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
workIllegalRecordService.remove(ids);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkLogService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/work/log")
|
||||
@Api(tags = "system-log-controller", description = "施工记录")
|
||||
public class WorkLogController {
|
||||
|
||||
@Resource
|
||||
private IWorkLogService workLogService;
|
||||
|
||||
/**
|
||||
* 查询施工记录
|
||||
*/
|
||||
@ApiOperation("查询施工记录")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<WorkLog> getList(WorkLog workLog) {
|
||||
return workLogService.getList(workLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增施工记录
|
||||
*/
|
||||
@ApiOperation("新增施工记录")
|
||||
@Log(title = "新增施工记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增施工记录", required = true) @NotNull @Validated({Insert.class}) @RequestBody WorkLog workLog)
|
||||
{
|
||||
workLogService.insertWorkLog(workLog);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkManageReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkManageService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage")
|
||||
@Api(tags = "system-manage-controller", description = "施工管理")
|
||||
public class WorkManageController {
|
||||
|
||||
@Resource
|
||||
private IWorkManageService workManageService;
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*/
|
||||
@ApiOperation("查询施工管理列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<WorkManageVo> getList(WorkManageReq workManage) {
|
||||
return workManageService.getList(workManage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*/
|
||||
@ApiOperation("新增施工管理")
|
||||
@Log(title = "新增施工管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增施工管理", required = true) @NotNull @Validated({Insert.class}) @RequestBody WorkManageVo workManageVo)
|
||||
{
|
||||
workManageService.add(workManageVo);
|
||||
}
|
||||
|
||||
@ApiOperation("保存草稿")
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody WorkManageVo workManageVo) {
|
||||
workManageService.save(workManageVo);
|
||||
}
|
||||
|
||||
@ApiOperation("施工管理详情")
|
||||
@GetMapping("/detail")
|
||||
public WorkManageVo getDetail(@RequestParam("id") Long id) {
|
||||
return workManageService.getDetail(id);
|
||||
}
|
||||
|
||||
@ApiOperation("审核施工管理")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
workManageService.recover(submit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除相相关方撤厂
|
||||
*/
|
||||
@ApiOperation("删除相相关方撤厂")
|
||||
@Log(title = "删除相相关方撤厂", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
workManageService.remove(ids);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkStopResumeVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkStopResumeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 施工管理Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/resume")
|
||||
@Api(tags = "system-resume-controller", description = "施工管理")
|
||||
public class WorkStopResumeController {
|
||||
|
||||
@Resource
|
||||
private IWorkStopResumeService workStopResumeService;
|
||||
|
||||
/**
|
||||
* 新增停工/复工通知
|
||||
*/
|
||||
@ApiOperation("新增停工/复工通知")
|
||||
@Log(title = "新增停工/复工通知", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增停工/复工通知", required = true) @NotNull @Validated({Insert.class}) @RequestBody WorkStopResumeVo workStopResumeVo)
|
||||
{
|
||||
workStopResumeService.add(workStopResumeVo);
|
||||
}
|
||||
|
||||
@ApiOperation("审核停工/复工")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
workStopResumeService.recover(submit);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 竣工验收对象 accept_info
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "竣工验收对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AcceptInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 验收人 */
|
||||
@ApiModelProperty(value = "验收人")
|
||||
private Long acceptor;
|
||||
|
||||
/** 验收人姓名 */
|
||||
@ApiModelProperty(value = "验收人姓名")
|
||||
private String acceptorName;
|
||||
|
||||
/** 是否通过;0未通过 1已通过 */
|
||||
@ApiModelProperty(value = "是否通过;0未通过 1已通过")
|
||||
private Integer isPass;
|
||||
|
||||
/** 单位信息 */
|
||||
@ApiModelProperty(value = "单位信息")
|
||||
private Long companyId;
|
||||
|
||||
/** 验收方式 */
|
||||
@ApiModelProperty(value = "验收方式")
|
||||
private Integer acceptType;
|
||||
|
||||
/** 签字 */
|
||||
@ApiModelProperty(value = "签字")
|
||||
private Long sign;
|
||||
|
||||
/** 现场图片 */
|
||||
@ApiModelProperty(value = "现场图片")
|
||||
private Long image;
|
||||
|
||||
/** 审核状态 */
|
||||
@ApiModelProperty(value = "审核状态")
|
||||
private Integer status;
|
||||
|
||||
/** 施工管理 */
|
||||
@ApiModelProperty(value = "施工管理")
|
||||
private Long workManageId;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,133 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 事故事件对象 accident_event_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "事故事件对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AccidentEventRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录ID */
|
||||
@ApiModelProperty(value = "记录ID")
|
||||
private String trackId;
|
||||
|
||||
/** 事发单位 */
|
||||
@ApiModelProperty(value = "事发单位")
|
||||
private Long companyId;
|
||||
|
||||
/** 事发单位名称 */
|
||||
@ApiModelProperty(value = "事发单位名称")
|
||||
private String companyName;
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
/** 事故类别 */
|
||||
@ApiModelProperty(value = "事故类别")
|
||||
private String accidentType;
|
||||
|
||||
/** 事故等级 */
|
||||
@ApiModelProperty(value = "事故等级")
|
||||
private Integer accidentLevel;
|
||||
|
||||
/** 事件类别 */
|
||||
@ApiModelProperty(value = "事件类别")
|
||||
private String eventType;
|
||||
|
||||
/** 概要 */
|
||||
@ApiModelProperty(value = "概要")
|
||||
private String outline;
|
||||
|
||||
/** 事发时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "事发时间")
|
||||
private Date happenTime;
|
||||
|
||||
/** 事发地点 */
|
||||
@ApiModelProperty(value = "事发地点")
|
||||
private String happenPlace;
|
||||
|
||||
/** 事发地点经纬度 */
|
||||
@ApiModelProperty(value = "事发地点经纬度")
|
||||
private String happenPlaceGeo;
|
||||
|
||||
/** 责任人 */
|
||||
@ApiModelProperty(value = "责任人")
|
||||
private String charger;
|
||||
|
||||
/** 事故简称 */
|
||||
@ApiModelProperty(value = "事故简称")
|
||||
private String title;
|
||||
|
||||
/** 直接经济损失(万元) */
|
||||
@ApiModelProperty(value = "直接经济损失(万元)")
|
||||
private BigDecimal lossDirect;
|
||||
|
||||
/** 间接经济损失(万元) */
|
||||
@ApiModelProperty(value = "间接经济损失(万元)")
|
||||
private BigDecimal lossIndirect;
|
||||
|
||||
/** 工时损失总计 */
|
||||
@ApiModelProperty(value = "工时损失总计")
|
||||
private Integer lossHour;
|
||||
|
||||
/** 事故原因分类 */
|
||||
@ApiModelProperty(value = "事故原因分类")
|
||||
private Integer reasonType;
|
||||
|
||||
/** 直接原因 */
|
||||
@ApiModelProperty(value = "直接原因")
|
||||
private String reasonDirect;
|
||||
|
||||
/** 间接原因 */
|
||||
@ApiModelProperty(value = "间接原因")
|
||||
private String reasonIndirect;
|
||||
|
||||
/** 救援过程 */
|
||||
@ApiModelProperty(value = "救援过程")
|
||||
private String rescueProcess;
|
||||
|
||||
/** 责任认定和处置意见 */
|
||||
@ApiModelProperty(value = "责任认定和处置意见")
|
||||
private String dealInfo;
|
||||
|
||||
/** 签字后的报告原件 */
|
||||
@ApiModelProperty(value = "签字后的报告原件")
|
||||
private Long report;
|
||||
|
||||
/** 其他附件;多选 */
|
||||
@ApiModelProperty(value = "其他附件;多选")
|
||||
private String annex;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 黑名单记录对象 black_log
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@ApiModel(description = "黑名单记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class BlackLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 关联公司或人员 */
|
||||
@ApiModelProperty(value = "关联公司或人员")
|
||||
private Long correlationId;
|
||||
|
||||
/** 类型;0公司 1人员 */
|
||||
@ApiModelProperty(value = "类型;0公司 1人员")
|
||||
private Integer type;
|
||||
|
||||
/** 原因 */
|
||||
@ApiModelProperty(value = "原因")
|
||||
private String reason;
|
||||
|
||||
/** 是否立即;0否 1是 */
|
||||
@ApiModelProperty(value = "是否立即;0否 1是")
|
||||
private Integer isInstantly;
|
||||
|
||||
/** 执行时间;不是立即执行需要填 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "执行时间;不是立即执行需要填")
|
||||
private Date blackTime;
|
||||
|
||||
/** 附件;资源id逗号分隔 */
|
||||
@ApiModelProperty(value = "附件;资源id逗号分隔")
|
||||
private String recoverAnnex;
|
||||
|
||||
/** 违规处理类型;0清除出厂,1再培训 */
|
||||
@ApiModelProperty(value = "违规处理类型;0清除出厂,1再培训")
|
||||
private Integer handleType;
|
||||
|
||||
/** 是否已拉黑 0 -否 1-是 */
|
||||
@ApiModelProperty(value = "是否已拉黑 0 -否 1-是")
|
||||
private Integer isBlack;
|
||||
|
||||
/** 拉黑人员,拉黑企业时使用 */
|
||||
@ApiModelProperty(value = "拉黑人员,拉黑企业时使用")
|
||||
private String users;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
/** 其他附件;多选 */
|
||||
@ApiModelProperty(value = "其他附件;多选")
|
||||
private String annex;
|
||||
|
||||
/** 移出黑名单理由 */
|
||||
@ApiModelProperty(value = "移出黑名单理由")
|
||||
private String removeReason;
|
||||
|
||||
/** 选择审核人 */
|
||||
@ApiModelProperty(value = "选择审核人")
|
||||
private String approveId;
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 撤厂申请对象 evacuate
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "撤厂申请对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Evacuate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 流水ID */
|
||||
@ApiModelProperty(value = "流水ID")
|
||||
private String streamId;
|
||||
|
||||
/** 相关方 */
|
||||
@ApiModelProperty(value = "相关方")
|
||||
private Long companyId;
|
||||
|
||||
/** 相关方单位名称 */
|
||||
@ApiModelProperty(value = "相关方单位名称")
|
||||
private String companyName;
|
||||
|
||||
/** 选择审核人 */
|
||||
@ApiModelProperty(value = "选择审核人")
|
||||
private Long approveId;
|
||||
|
||||
/** 审核人姓名 */
|
||||
@ApiModelProperty(value = "审核人姓名")
|
||||
private String approveName;
|
||||
|
||||
/** 审批人签字 */
|
||||
@ApiModelProperty(value = "审批人签字")
|
||||
private String approveSign;
|
||||
|
||||
/** 审批时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "审批时间")
|
||||
private Date approveTime;
|
||||
|
||||
/** 审批意见 */
|
||||
@ApiModelProperty(value = "审批意见")
|
||||
private Integer approveView;
|
||||
|
||||
/** 审批说明 */
|
||||
@ApiModelProperty(value = "审批说明")
|
||||
private String approveExplain;
|
||||
|
||||
/** 员工信息审核;逗号分隔 */
|
||||
@ApiModelProperty(value = "员工信息审核;逗号分隔")
|
||||
private String userQuailfy;
|
||||
|
||||
/** 撤厂声明 */
|
||||
@ApiModelProperty(value = "撤厂声明")
|
||||
private String evacuateAffirm;
|
||||
|
||||
/** 撤厂完成时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "撤厂完成时间")
|
||||
private Date evacuateTime;
|
||||
|
||||
/** 确认时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "确认时间")
|
||||
private Date evacuateConfirmTime;
|
||||
|
||||
/** 确认人 */
|
||||
@ApiModelProperty(value = "确认人")
|
||||
private Long confirmerId;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 奖惩记录对象 reward_punish_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "奖惩记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RewardPunishRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录ID */
|
||||
@ApiModelProperty(value = "记录ID")
|
||||
private String trackId;
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
/** 事项描述 */
|
||||
@ApiModelProperty(value = "事项描述")
|
||||
private String description;
|
||||
|
||||
/** 奖励单位 */
|
||||
@ApiModelProperty(value = "奖励单位")
|
||||
private Long companyId;
|
||||
|
||||
/** 金额 */
|
||||
@ApiModelProperty(value = "金额")
|
||||
private Long money;
|
||||
|
||||
/** 关联项目 */
|
||||
@ApiModelProperty(value = "关联项目")
|
||||
private Long projectId;
|
||||
|
||||
/** 关联合同 */
|
||||
@ApiModelProperty(value = "关联合同")
|
||||
private Long contractId;
|
||||
|
||||
/** 相关附件;多个逗号分隔 */
|
||||
@ApiModelProperty(value = "相关附件;多个逗号分隔")
|
||||
private String annex;
|
||||
|
||||
/** 选择审核人 */
|
||||
@ApiModelProperty(value = "选择审核人")
|
||||
private Long approveId;
|
||||
|
||||
/** 审核人姓名 */
|
||||
@ApiModelProperty(value = "审核人姓名")
|
||||
private String approveName;
|
||||
|
||||
/** 审批人签字 */
|
||||
@ApiModelProperty(value = "审批人签字")
|
||||
private String approveSign;
|
||||
|
||||
/** 审批时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "审批时间")
|
||||
private Date approveTime;
|
||||
|
||||
/** 审批意见 */
|
||||
@ApiModelProperty(value = "审批意见")
|
||||
private Integer approveView;
|
||||
|
||||
/** 审批结果;0不同意 1同意 */
|
||||
@ApiModelProperty(value = "审批结果;0不同意 1同意")
|
||||
private Integer approveResult;
|
||||
|
||||
/** 奖惩人员;多个逗号分隔 */
|
||||
@ApiModelProperty(value = "奖惩人员;多个逗号分隔")
|
||||
private String users;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 违规事项对象 work_illegal_matter
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@ApiModel(description = "违规事项对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkIllegalMatter extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 关联公司或人员 */
|
||||
@ApiModelProperty(value = "关联公司或人员")
|
||||
private Long correlationId;
|
||||
|
||||
/** 原因说明 */
|
||||
@ApiModelProperty(value = "原因说明")
|
||||
private String recoverExp;
|
||||
|
||||
/** 时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "时间")
|
||||
private Date happenTime;
|
||||
|
||||
/** 地点 */
|
||||
@ApiModelProperty(value = "地点")
|
||||
private String place;
|
||||
|
||||
/** 类型 1 相关方,2人员 */
|
||||
@ApiModelProperty(value = "类型 0 公司,1 人员")
|
||||
private Integer type;
|
||||
|
||||
/** 责任人 */
|
||||
@ApiModelProperty(value = "责任人")
|
||||
private Long responsiblePerson;
|
||||
|
||||
/** 照片 */
|
||||
@ApiModelProperty(value = "照片")
|
||||
private String scenePhoto;
|
||||
|
||||
/** 整改后照片 */
|
||||
@ApiModelProperty(value = "整改后照片")
|
||||
private String rectifyPhoto;
|
||||
|
||||
/** 整改情况 */
|
||||
@ApiModelProperty(value = "整改情况")
|
||||
private String recoverMeasure;
|
||||
|
||||
/** 完成时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "完成时间")
|
||||
private Date recoverTime;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,152 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 违章违纪登记对象 work_illegal_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "违章违纪登记对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkIllegalRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录ID */
|
||||
@ApiModelProperty(value = "记录ID")
|
||||
private String trackId;
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
/** 情况描述 */
|
||||
@ApiModelProperty(value = "情况描述")
|
||||
private String info;
|
||||
|
||||
/** 时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "时间")
|
||||
private Date happenTime;
|
||||
|
||||
/** 地点 */
|
||||
@ApiModelProperty(value = "地点")
|
||||
private String place;
|
||||
|
||||
/** 坐标 */
|
||||
@ApiModelProperty(value = "坐标")
|
||||
private String placeGeo;
|
||||
|
||||
/** 责任人 */
|
||||
@ApiModelProperty(value = "责任人")
|
||||
private Long responsiblePerson;
|
||||
|
||||
/** 责任单位 */
|
||||
@ApiModelProperty(value = "责任单位")
|
||||
private Long responsibleDept;
|
||||
|
||||
/** 处理意见 */
|
||||
@ApiModelProperty(value = "处理意见")
|
||||
private String dealView;
|
||||
|
||||
/** 整改期限 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "整改期限")
|
||||
private Date deadline;
|
||||
|
||||
/** 相关附件 */
|
||||
@ApiModelProperty(value = "相关附件")
|
||||
private String annex;
|
||||
|
||||
/** 相关人员;人员id逗号分隔 */
|
||||
@ApiModelProperty(value = "相关人员;人员id逗号分隔")
|
||||
private String relatedPersons;
|
||||
|
||||
/** 整改措施 */
|
||||
@ApiModelProperty(value = "整改措施")
|
||||
private String recoverMeasure;
|
||||
|
||||
/** 整改时限 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "整改时限")
|
||||
private Date recoverEndTime;
|
||||
|
||||
/** 整改方案 */
|
||||
@ApiModelProperty(value = "整改方案")
|
||||
private Long recoverSchema;
|
||||
|
||||
/** 确认人 */
|
||||
@ApiModelProperty(value = "确认人")
|
||||
private Long confirmer;
|
||||
|
||||
/** 确认时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "确认时间")
|
||||
private Date confirmTime;
|
||||
|
||||
/** 整改结果 */
|
||||
@ApiModelProperty(value = "整改结果")
|
||||
private Integer recoverResult;
|
||||
|
||||
/** 整改情况汇报 */
|
||||
@ApiModelProperty(value = "整改情况汇报")
|
||||
private String recoverReport;
|
||||
|
||||
/** 原因说明 */
|
||||
@ApiModelProperty(value = "原因说明")
|
||||
private String recoverExp;
|
||||
|
||||
/** 照片及附件;资源id逗号分隔 */
|
||||
@ApiModelProperty(value = "照片及附件;资源id逗号分隔")
|
||||
private String recoverAnnex;
|
||||
|
||||
/** 整改人 */
|
||||
@ApiModelProperty(value = "整改人")
|
||||
private Long recoverPerson;
|
||||
|
||||
/** 整改时间 */
|
||||
@ApiModelProperty(value = "整改时间")
|
||||
private String recoverTime;
|
||||
|
||||
/** 验证结果 */
|
||||
@ApiModelProperty(value = "验证结果")
|
||||
private Integer verifyResult;
|
||||
|
||||
/** 验证日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "验证日期")
|
||||
private Date verifyTime;
|
||||
|
||||
/** 验证情况 */
|
||||
@ApiModelProperty(value = "验证情况")
|
||||
private String verifyInfo;
|
||||
|
||||
/** 照片 */
|
||||
@ApiModelProperty(value = "照片")
|
||||
private Long verifyImage;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 施工记录对象 work_log
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@ApiModel(description = "施工记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 施工日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "施工日期")
|
||||
private Date workDay;
|
||||
|
||||
/** 天气 */
|
||||
@ApiModelProperty(value = "天气")
|
||||
private String weather;
|
||||
|
||||
/** 工程名称 */
|
||||
@ApiModelProperty(value = "工程名称")
|
||||
private String projectName;
|
||||
|
||||
/** 施工组织 */
|
||||
@ApiModelProperty(value = "施工组织")
|
||||
private String organization;
|
||||
|
||||
/** 生产情况记录 */
|
||||
@ApiModelProperty(value = "生产情况记录")
|
||||
private String productionRecord;
|
||||
|
||||
/** 工作进度 */
|
||||
@ApiModelProperty(value = "工作进度")
|
||||
private String workProgress;
|
||||
|
||||
/** 质量、技术、安全 */
|
||||
@ApiModelProperty(value = "质量、技术、安全")
|
||||
private String qts;
|
||||
|
||||
/** 材料与构件进场 */
|
||||
@ApiModelProperty(value = "材料与构件进场")
|
||||
private String materialsComponents;
|
||||
|
||||
/** 备注 */
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
/** 施工管理 */
|
||||
@ApiModelProperty(value = "施工管理")
|
||||
private Long workManageId;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
}
|
|
@ -0,0 +1,213 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 施工管理对象 work_manage
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "施工管理对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkManage extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 流水ID */
|
||||
@ApiModelProperty(value = "流水ID")
|
||||
private String streamId;
|
||||
|
||||
/** 相关方 */
|
||||
@ApiModelProperty(value = "相关方")
|
||||
private Long companyId;
|
||||
|
||||
/** 相关方单位名称 */
|
||||
@ApiModelProperty(value = "相关方单位名称")
|
||||
private String companyName;
|
||||
|
||||
/** 本次服务项目 */
|
||||
@ApiModelProperty(value = "本次服务项目")
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 项目编号 */
|
||||
@ApiModelProperty(value = "项目编号")
|
||||
private String no;
|
||||
|
||||
/** 选择审查人 */
|
||||
@ApiModelProperty(value = "选择审查人")
|
||||
private String examineId;
|
||||
|
||||
/** 审查人姓名 */
|
||||
@ApiModelProperty(value = "审查人姓名")
|
||||
private String examineName;
|
||||
|
||||
/** 审查人签字 */
|
||||
@ApiModelProperty(value = "审查人签字")
|
||||
private String examineSign;
|
||||
|
||||
/** 审查时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "审查时间")
|
||||
private Date examineTime;
|
||||
|
||||
/** 审查意见 */
|
||||
@ApiModelProperty(value = "审查意见")
|
||||
private Integer examineView;
|
||||
|
||||
/** 审查说明 */
|
||||
@ApiModelProperty(value = "审查说明")
|
||||
private String examineExplain;
|
||||
|
||||
/** 单位工程 */
|
||||
@ApiModelProperty(value = "单位工程")
|
||||
private String workUnit;
|
||||
|
||||
/** 分部分项工程 */
|
||||
@ApiModelProperty(value = "分部分项工程")
|
||||
private String workSplit;
|
||||
|
||||
/** 申请开工日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "申请开工日期")
|
||||
private Date applyStartDay;
|
||||
|
||||
/** 开工申请报告 */
|
||||
@ApiModelProperty(value = "开工申请报告")
|
||||
private Long applyReport;
|
||||
|
||||
/** 施工内容概要 */
|
||||
@ApiModelProperty(value = "施工内容概要")
|
||||
private String workContent;
|
||||
|
||||
/** 施工方案 */
|
||||
@ApiModelProperty(value = "施工方案")
|
||||
private Long workProgram;
|
||||
|
||||
/** 安全条件确认 */
|
||||
@ApiModelProperty(value = "安全条件确认")
|
||||
private Integer safetyConfirm;
|
||||
|
||||
/** 甲方现场负责人 */
|
||||
@ApiModelProperty(value = "甲方现场负责人")
|
||||
private String leader;
|
||||
|
||||
/** 本次施工人员信息 */
|
||||
@ApiModelProperty(value = "本次施工人员信息")
|
||||
private String workers;
|
||||
|
||||
/** 安全技术交底 */
|
||||
@ApiModelProperty(value = "安全技术交底")
|
||||
private String safetyBaseConfirm;
|
||||
|
||||
/** 选择审核人 */
|
||||
@ApiModelProperty(value = "选择审核人")
|
||||
private Long approveId;
|
||||
|
||||
/** 审核人姓名 */
|
||||
@ApiModelProperty(value = "审核人姓名")
|
||||
private String approveName;
|
||||
|
||||
/** 审批人签字 */
|
||||
@ApiModelProperty(value = "审批人签字")
|
||||
private String approveSign;
|
||||
|
||||
/** 审批时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "审批时间")
|
||||
private Date approveTime;
|
||||
|
||||
/** 审批意见 */
|
||||
@ApiModelProperty(value = "审批意见")
|
||||
private Integer approveView;
|
||||
|
||||
/** 审批说明 */
|
||||
@ApiModelProperty(value = "审批说明")
|
||||
private String approveExplain;
|
||||
|
||||
/** 开工令 */
|
||||
@ApiModelProperty(value = "开工令")
|
||||
private Long workStartToken;
|
||||
|
||||
/** 是否竣工;0未竣工 1已竣工 */
|
||||
@ApiModelProperty(value = "是否竣工;0未竣工 1已竣工")
|
||||
private Integer workEnd;
|
||||
|
||||
/** 竣工完成时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "竣工完成时间")
|
||||
private Date workEndTime;
|
||||
|
||||
/** 竣工申请 */
|
||||
@ApiModelProperty(value = "竣工申请")
|
||||
private String workEndExplain;
|
||||
|
||||
/** 竣工申请报告 */
|
||||
@ApiModelProperty(value = "竣工申请报告")
|
||||
private Long workEndApplyReport;
|
||||
|
||||
/** 竣工验收相关附件 */
|
||||
@ApiModelProperty(value = "竣工验收相关附件")
|
||||
private String workEndReport;
|
||||
|
||||
/** 竣工申请人签字 */
|
||||
@ApiModelProperty(value = "竣工申请人签字")
|
||||
private String workEndApplySign;
|
||||
|
||||
/** 竣工申请时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "竣工申请时间")
|
||||
private Date workEndApplyTime;
|
||||
|
||||
/** 验收人 */
|
||||
@ApiModelProperty(value = "验收人")
|
||||
private String acceptors;
|
||||
|
||||
/** 验收报告(盖章) */
|
||||
@ApiModelProperty(value = "验收报告(盖章)")
|
||||
private String acceptReport;
|
||||
|
||||
/** 工程验收相关附件 */
|
||||
@ApiModelProperty(value = "工程验收相关附件")
|
||||
private String acceptAnnex;
|
||||
|
||||
/** 上传人 */
|
||||
@ApiModelProperty(value = "上传人")
|
||||
private Long uploader;
|
||||
|
||||
/** 上传时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "上传时间")
|
||||
private Date uploadTime;
|
||||
|
||||
/** 施工状态 0 草稿 1开工申请 2开工审查 3安全技术交底 4 开工审批 5 停工 6复工审批 7施工中 8验收申请 9竣工验收 10已竣工 */
|
||||
@ApiModelProperty(value = "施工状态")
|
||||
private Integer status;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,101 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 施工管理对象 work_stop_resume
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@ApiModel(description = "施工管理对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkStopResume extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 施工管理 */
|
||||
@ApiModelProperty(value = "施工管理")
|
||||
private Long workManageId;
|
||||
|
||||
/** 0停工,1复工 */
|
||||
@ApiModelProperty(value = "0停工,1复工")
|
||||
private Integer type;
|
||||
|
||||
/** 停工原因;数据字典 */
|
||||
@ApiModelProperty(value = "停工原因;数据字典")
|
||||
private Integer stopReason;
|
||||
|
||||
/** 复工申请 */
|
||||
@ApiModelProperty(value = "复工申请")
|
||||
private String applyResume;
|
||||
|
||||
/** 停工通知/停工整改情况 */
|
||||
@ApiModelProperty(value = "停工通知/停工整改情况")
|
||||
private String stopNotice;
|
||||
|
||||
/** 停工令/复工申请报告 */
|
||||
@ApiModelProperty(value = "停工令/复工申请报告")
|
||||
private Long workStopToken;
|
||||
|
||||
/** 审批人 */
|
||||
@ApiModelProperty(value = "审批人")
|
||||
private Long approveId;
|
||||
|
||||
/** 审批人姓名 */
|
||||
@ApiModelProperty(value = "审批人姓名")
|
||||
private String approveName;
|
||||
|
||||
/** 审批人签字 */
|
||||
@ApiModelProperty(value = "审批人签字")
|
||||
private String approveSign;
|
||||
|
||||
/** 审批人意见 */
|
||||
@ApiModelProperty(value = "审批人意见")
|
||||
private Integer approveView;
|
||||
|
||||
/** 审批说明 */
|
||||
@ApiModelProperty(value = "审批说明")
|
||||
private String approveExplain;
|
||||
|
||||
/** 审批时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "审批时间")
|
||||
private Date approveTime;
|
||||
|
||||
/** 申请停工时间/申请开工时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "申请停工时间/申请开工时间")
|
||||
private Date applyStopTime;
|
||||
|
||||
/** 问题整改情况 */
|
||||
@ApiModelProperty(value = "问题整改情况")
|
||||
private Integer resumeStatus;
|
||||
|
||||
/** 现场照片 */
|
||||
@ApiModelProperty(value = "现场照片")
|
||||
private Long scenePhoto;
|
||||
|
||||
/** 数据所属部门id */
|
||||
@ApiModelProperty(value = "数据所属部门id")
|
||||
private Long deptId;
|
||||
|
||||
/** 数据所属部门名称 */
|
||||
@ApiModelProperty(value = "数据所属部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.req;
|
||||
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalMatter;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 黑名单记录对象 black_log
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@ApiModel(description = "黑名单记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class BlackLogReq extends BlackLog
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 违规事项 */
|
||||
@ApiModelProperty(value = "违规事项")
|
||||
private List<WorkIllegalMatter> workIllegalMatters;
|
||||
|
||||
@ApiModelProperty(value = "流程类型")
|
||||
private Integer bpmType;
|
||||
|
||||
@ApiModelProperty(value = "流程定义编码")
|
||||
private String bpmSchemeCode;
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.req;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.Evacuate;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 撤厂申请对象 evacuate
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "撤厂申请对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EvacuateReq extends Evacuate
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程类型")
|
||||
private Integer bpmType;
|
||||
|
||||
@ApiModelProperty(value = "流程定义编码")
|
||||
private String bpmSchemeCode;
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.req;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 奖惩记录对象 reward_punish_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "奖惩记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RewardPunishRecordReq extends RewardPunishRecord
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程类型")
|
||||
private Integer bpmType;
|
||||
|
||||
@ApiModelProperty(value = "流程定义编码")
|
||||
private String bpmSchemeCode;
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.req;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 违章违纪登记对象 work_illegal_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "违章违纪登记对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkIllegalRecordReq extends WorkIllegalRecord
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程类型")
|
||||
private Integer bpmType;
|
||||
|
||||
@ApiModelProperty(value = "流程定义编码")
|
||||
private String bpmSchemeCode;
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.req;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 施工管理对象 work_manage
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "施工管理对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkManageReq extends WorkManage
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("流程模板所属应用名称")
|
||||
private String application;
|
||||
|
||||
@ApiModelProperty(value = "流程类型")
|
||||
private Integer bpmType;
|
||||
|
||||
@ApiModelProperty(value = "流程定义编码")
|
||||
private String bpmSchemeCode;
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalMatter;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 黑名单记录对象 black_log
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@ApiModel(description = "黑名单记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class BlackLogVo extends BlackLog
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 违规事项 */
|
||||
@ApiModelProperty(value = "违规事项")
|
||||
private List<WorkIllegalMatter> workIllegalMatters;
|
||||
|
||||
@ApiModelProperty(value = "流程信息")
|
||||
private BpmTaskVo taskInfo;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.Evacuate;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Tool;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyUserVo;
|
||||
import com.hbt.related.parties.biz.performanceEvaluation.domain.ProjectEvaluation;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请对象 evacuate
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "撤厂申请对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EvacuateVo extends Evacuate
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程信息")
|
||||
private BpmTaskVo taskInfo;
|
||||
|
||||
@ApiModelProperty("流程模板所属应用名称")
|
||||
private String application;
|
||||
|
||||
@ApiModelProperty("项目施工情况")
|
||||
private List<WorkManageVo> workManages;
|
||||
|
||||
@ApiModelProperty("入场时工器具")
|
||||
private List<Tool> tools;
|
||||
|
||||
@ApiModelProperty("人员信息")
|
||||
private List<CompanyUserVo> companyUsers;
|
||||
|
||||
@ApiModelProperty("安全业绩评价")
|
||||
private List<ProjectEvaluation> projectEvaluations;
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 奖惩记录对象 reward_punish_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "奖惩记录对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RewardPunishRecordVo extends RewardPunishRecord
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程信息")
|
||||
private BpmTaskVo taskInfo;
|
||||
|
||||
@ApiModelProperty("流程模板所属应用名称")
|
||||
private String application;
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 违章违纪登记对象 work_illegal_record
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "违章违纪登记对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkIllegalRecordVo extends WorkIllegalRecord
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程信息")
|
||||
private BpmTaskVo taskInfo;
|
||||
|
||||
@ApiModelProperty("流程模板所属应用名称")
|
||||
private String application;
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AcceptInfo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkStopResume;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理对象 work_manage
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@ApiModel(description = "施工管理对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkManageVo extends WorkManage
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 竣工验收集合 */
|
||||
@ApiModelProperty(value = "竣工验收集合")
|
||||
private List<AcceptInfo> acceptInfos;
|
||||
|
||||
/** 停工复工记录 */
|
||||
@ApiModelProperty(value = "停工复工记录")
|
||||
private List<WorkStopResume> workStopResumes;
|
||||
|
||||
/** 施工记录数 */
|
||||
@ApiModelProperty(value = "施工记录数")
|
||||
private Integer workManageRecord;
|
||||
|
||||
/** 项目状态 */
|
||||
@ApiModelProperty(value = "项目状态")
|
||||
private Integer projectStatus;
|
||||
|
||||
/** 项目编号 */
|
||||
@ApiModelProperty(value = "项目编号")
|
||||
private String projectNo;
|
||||
|
||||
@ApiModelProperty(value = "流程信息")
|
||||
private BpmTaskVo taskInfo;
|
||||
|
||||
@ApiModelProperty("流程模板所属应用名称")
|
||||
private String application;
|
||||
|
||||
/** 实际开工日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "实际开工日期")
|
||||
private Date actualStartDay;
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkStopResume;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 施工管理对象 work_stop_resume
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@ApiModel(description = "施工管理对象")
|
||||
@SuperBuilder
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WorkStopResumeVo extends WorkStopResume
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "流程信息")
|
||||
private BpmTaskVo taskInfo;
|
||||
|
||||
@ApiModelProperty("流程模板所属应用名称")
|
||||
private String application;
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.AcceptInfoBaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface AcceptInfoMapper extends AcceptInfoBaseMapper
|
||||
{
|
||||
void invalidAcceptInfoByManageIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.AccidentEventRecordBaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 事故事件Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface AccidentEventRecordMapper extends AccidentEventRecordBaseMapper
|
||||
{
|
||||
int getWeekDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
int getMonthDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
int getYearDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.BlackLogReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.EvacuateReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.BlackLogVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.BlackLogBaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface BlackLogMapper extends BlackLogBaseMapper
|
||||
{
|
||||
List<BlackLog> getUnBlack(Date date);
|
||||
|
||||
List<BlackLogVo> getList(@Param("request") BlackLogReq blackLogReq, @Param("ids") List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.EvacuateReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.EvacuateBaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface EvacuateMapper extends EvacuateBaseMapper
|
||||
{
|
||||
List<EvacuateVo> getList(@Param("request") EvacuateReq evacuateReq, @Param("ids") List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.RewardPunishRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.RewardPunishRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.RewardPunishRecordBaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 奖惩记录Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface RewardPunishRecordMapper extends RewardPunishRecordBaseMapper
|
||||
{
|
||||
List<RewardPunishRecordVo> getList(@Param("request") RewardPunishRecordReq rewardPunishRecordReq, @Param("ids") List<Long> ids);
|
||||
|
||||
int getWeekDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("type") int type);
|
||||
|
||||
int getMonthDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("type") int type);
|
||||
|
||||
int getYearDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("type") int type);
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.WorkIllegalMatterBaseMapper;
|
||||
|
||||
/**
|
||||
* 违规事项Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface WorkIllegalMatterMapper extends WorkIllegalMatterBaseMapper
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkIllegalRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.WorkIllegalRecordBaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface WorkIllegalRecordMapper extends WorkIllegalRecordBaseMapper
|
||||
{
|
||||
List<WorkIllegalRecordVo> getList(@Param("request") WorkIllegalRecordReq workIllegalRecordReq, @Param("ids") List<Long> ids);
|
||||
|
||||
int getWeekDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
int getMonthDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
int getYearDate(@Param("companyId") Long companyId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.WorkLogBaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
public interface WorkLogMapper extends WorkLogBaseMapper
|
||||
{
|
||||
void invalidWorkLogByManageIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkManageReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.WorkManageBaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface WorkManageMapper extends WorkManageBaseMapper
|
||||
{
|
||||
|
||||
List<WorkManageVo> getWorkManages(Long companyId);
|
||||
|
||||
List<WorkManageVo> getList(@Param("request") WorkManageReq workManageReq, @Param("ids") List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.base.WorkStopResumeBaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface WorkStopResumeMapper extends WorkStopResumeBaseMapper
|
||||
{
|
||||
void invalidWorkStopResumeByManageIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,127 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AcceptInfo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface AcceptInfoBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询竣工验收
|
||||
*
|
||||
* @param id 竣工验收主键
|
||||
* @return 竣工验收
|
||||
*/
|
||||
AcceptInfo selectAcceptInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询竣工验收列表
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 竣工验收集合
|
||||
*/
|
||||
List<AcceptInfo> selectAcceptInfoList(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 查询竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 竣工验收
|
||||
*/
|
||||
AcceptInfo selectOne(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 查询竣工验收列表
|
||||
*
|
||||
* @param ids 竣工验收主键列表
|
||||
* @return 竣工验收集合
|
||||
*/
|
||||
List<AcceptInfo> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertAcceptInfo(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 批量新增竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertAcceptInfo(List<AcceptInfo> acceptInfoList);
|
||||
|
||||
/**
|
||||
* 修改竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateAcceptInfo(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 批量修改竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateAcceptInfo(List<AcceptInfo> acceptInfoList);
|
||||
|
||||
/**
|
||||
* 修改竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateAcceptInfoAll(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 批量修改竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateAcceptInfoAll(List<AcceptInfo> acceptInfoList);
|
||||
|
||||
/**
|
||||
* 删除竣工验收
|
||||
*
|
||||
* @param id 竣工验收主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAcceptInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除竣工验收
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAcceptInfoByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除竣工验收
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidAcceptInfoByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 事故事件Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface AccidentEventRecordBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询事故事件
|
||||
*
|
||||
* @param id 事故事件主键
|
||||
* @return 事故事件
|
||||
*/
|
||||
AccidentEventRecord selectAccidentEventRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 事故事件集合
|
||||
*/
|
||||
List<AccidentEventRecord> selectAccidentEventRecordList(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 查询事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 事故事件
|
||||
*/
|
||||
AccidentEventRecord selectOne(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*
|
||||
* @param ids 事故事件主键列表
|
||||
* @return 事故事件集合
|
||||
*/
|
||||
List<AccidentEventRecord> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertAccidentEventRecord(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 批量新增事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertAccidentEventRecord(List<AccidentEventRecord> accidentEventRecordList);
|
||||
|
||||
/**
|
||||
* 修改事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateAccidentEventRecord(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 批量修改事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateAccidentEventRecord(List<AccidentEventRecord> accidentEventRecordList);
|
||||
|
||||
/**
|
||||
* 修改事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateAccidentEventRecordAll(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 批量修改事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateAccidentEventRecordAll(List<AccidentEventRecord> accidentEventRecordList);
|
||||
|
||||
/**
|
||||
* 删除事故事件
|
||||
*
|
||||
* @param id 事故事件主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAccidentEventRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除事故事件
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAccidentEventRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除事故事件
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidAccidentEventRecordByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 黑名单记录Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
public interface BlackLogBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询黑名单记录
|
||||
*
|
||||
* @param id 黑名单记录主键
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
BlackLog selectBlackLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询黑名单记录列表
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 黑名单记录集合
|
||||
*/
|
||||
List<BlackLog> selectBlackLogList(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 查询黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
BlackLog selectOne(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 查询黑名单记录列表
|
||||
*
|
||||
* @param ids 黑名单记录主键列表
|
||||
* @return 黑名单记录集合
|
||||
*/
|
||||
List<BlackLog> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertBlackLog(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 批量新增黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertBlackLog(List<BlackLog> blackLogList);
|
||||
|
||||
/**
|
||||
* 修改黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateBlackLog(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 批量修改黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateBlackLog(List<BlackLog> blackLogList);
|
||||
|
||||
/**
|
||||
* 修改黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateBlackLogAll(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 批量修改黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateBlackLogAll(List<BlackLog> blackLogList);
|
||||
|
||||
/**
|
||||
* 删除黑名单记录
|
||||
*
|
||||
* @param id 黑名单记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBlackLogById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除黑名单记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBlackLogByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除黑名单记录
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidBlackLogByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,127 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.Evacuate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface EvacuateBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询撤厂申请
|
||||
*
|
||||
* @param id 撤厂申请主键
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
Evacuate selectEvacuateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询撤厂申请列表
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 撤厂申请集合
|
||||
*/
|
||||
List<Evacuate> selectEvacuateList(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 查询撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
Evacuate selectOne(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 查询撤厂申请列表
|
||||
*
|
||||
* @param ids 撤厂申请主键列表
|
||||
* @return 撤厂申请集合
|
||||
*/
|
||||
List<Evacuate> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertEvacuate(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 批量新增撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertEvacuate(List<Evacuate> evacuateList);
|
||||
|
||||
/**
|
||||
* 修改撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateEvacuate(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 批量修改撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateEvacuate(List<Evacuate> evacuateList);
|
||||
|
||||
/**
|
||||
* 修改撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateEvacuateAll(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 批量修改撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateEvacuateAll(List<Evacuate> evacuateList);
|
||||
|
||||
/**
|
||||
* 删除撤厂申请
|
||||
*
|
||||
* @param id 撤厂申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteEvacuateById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除撤厂申请
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteEvacuateByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除撤厂申请
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidEvacuateByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 奖惩记录Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface RewardPunishRecordBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询奖惩记录
|
||||
*
|
||||
* @param id 奖惩记录主键
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
RewardPunishRecord selectRewardPunishRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 奖惩记录集合
|
||||
*/
|
||||
List<RewardPunishRecord> selectRewardPunishRecordList(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 查询奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
RewardPunishRecord selectOne(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*
|
||||
* @param ids 奖惩记录主键列表
|
||||
* @return 奖惩记录集合
|
||||
*/
|
||||
List<RewardPunishRecord> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertRewardPunishRecord(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 批量新增奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertRewardPunishRecord(List<RewardPunishRecord> rewardPunishRecordList);
|
||||
|
||||
/**
|
||||
* 修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateRewardPunishRecord(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 批量修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateRewardPunishRecord(List<RewardPunishRecord> rewardPunishRecordList);
|
||||
|
||||
/**
|
||||
* 修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateRewardPunishRecordAll(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 批量修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateRewardPunishRecordAll(List<RewardPunishRecord> rewardPunishRecordList);
|
||||
|
||||
/**
|
||||
* 删除奖惩记录
|
||||
*
|
||||
* @param id 奖惩记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRewardPunishRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除奖惩记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRewardPunishRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除奖惩记录
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidRewardPunishRecordByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalMatter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违规事项Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface WorkIllegalMatterBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询违规事项
|
||||
*
|
||||
* @param id 违规事项主键
|
||||
* @return 违规事项
|
||||
*/
|
||||
WorkIllegalMatter selectWorkIllegalMatterById(Long id);
|
||||
|
||||
/**
|
||||
* 查询违规事项列表
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 违规事项集合
|
||||
*/
|
||||
List<WorkIllegalMatter> selectWorkIllegalMatterList(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 查询违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 违规事项
|
||||
*/
|
||||
WorkIllegalMatter selectOne(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 查询违规事项列表
|
||||
*
|
||||
* @param ids 违规事项主键列表
|
||||
* @return 违规事项集合
|
||||
*/
|
||||
List<WorkIllegalMatter> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertWorkIllegalMatter(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 批量新增违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertWorkIllegalMatter(List<WorkIllegalMatter> workIllegalMatterList);
|
||||
|
||||
/**
|
||||
* 修改违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkIllegalMatter(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 批量修改违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkIllegalMatter(List<WorkIllegalMatter> workIllegalMatterList);
|
||||
|
||||
/**
|
||||
* 修改违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkIllegalMatterAll(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 批量修改违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkIllegalMatterAll(List<WorkIllegalMatter> workIllegalMatterList);
|
||||
|
||||
/**
|
||||
* 删除违规事项
|
||||
*
|
||||
* @param id 违规事项主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalMatterById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除违规事项
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalMatterByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除违规事项
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkIllegalMatterByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface WorkIllegalRecordBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询违章违纪登记
|
||||
*
|
||||
* @param id 违章违纪登记主键
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
WorkIllegalRecord selectWorkIllegalRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 违章违纪登记集合
|
||||
*/
|
||||
List<WorkIllegalRecord> selectWorkIllegalRecordList(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
WorkIllegalRecord selectOne(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*
|
||||
* @param ids 违章违纪登记主键列表
|
||||
* @return 违章违纪登记集合
|
||||
*/
|
||||
List<WorkIllegalRecord> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertWorkIllegalRecord(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 批量新增违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertWorkIllegalRecord(List<WorkIllegalRecord> workIllegalRecordList);
|
||||
|
||||
/**
|
||||
* 修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkIllegalRecord(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 批量修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkIllegalRecord(List<WorkIllegalRecord> workIllegalRecordList);
|
||||
|
||||
/**
|
||||
* 修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkIllegalRecordAll(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 批量修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkIllegalRecordAll(List<WorkIllegalRecord> workIllegalRecordList);
|
||||
|
||||
/**
|
||||
* 删除违章违纪登记
|
||||
*
|
||||
* @param id 违章违纪登记主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除违章违纪登记
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除违章违纪登记
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkIllegalRecordByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
public interface WorkLogBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询施工记录
|
||||
*
|
||||
* @param id 施工记录主键
|
||||
* @return 施工记录
|
||||
*/
|
||||
WorkLog selectWorkLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询施工记录列表
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 施工记录集合
|
||||
*/
|
||||
List<WorkLog> selectWorkLogList(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 查询施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 施工记录
|
||||
*/
|
||||
WorkLog selectOne(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 查询施工记录列表
|
||||
*
|
||||
* @param ids 施工记录主键列表
|
||||
* @return 施工记录集合
|
||||
*/
|
||||
List<WorkLog> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertWorkLog(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 批量新增施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertWorkLog(List<WorkLog> workLogList);
|
||||
|
||||
/**
|
||||
* 修改施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkLog(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 批量修改施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkLog(List<WorkLog> workLogList);
|
||||
|
||||
/**
|
||||
* 修改施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkLogAll(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 批量修改施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkLogAll(List<WorkLog> workLogList);
|
||||
|
||||
/**
|
||||
* 删除施工记录
|
||||
*
|
||||
* @param id 施工记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkLogById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除施工记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkLogByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除施工记录
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkLogByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface WorkManageBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkManage selectWorkManageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkManage> selectWorkManageList(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkManage selectOne(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param ids 施工管理主键列表
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkManage> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertWorkManage(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 批量新增施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertWorkManage(List<WorkManage> workManageList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkManage(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkManage(List<WorkManage> workManageList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkManageAll(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkManageAll(List<WorkManage> workManageList);
|
||||
|
||||
/**
|
||||
* 删除施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkManageById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除施工管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkManageByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除施工管理
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkManageByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.mapper.base;
|
||||
|
||||
import com.hbt.common.security.annotation.Ease;
|
||||
import com.hbt.common.security.constant.EaseConstant;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkStopResume;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Mapper接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface WorkStopResumeBaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkStopResume selectWorkStopResumeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkStopResume> selectWorkStopResumeList(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkStopResume selectOne(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param ids 施工管理主键列表
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkStopResume> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int insertWorkStopResume(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 批量新增施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.ADD)
|
||||
int batchInsertWorkStopResume(List<WorkStopResume> workStopResumeList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkStopResume(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkStopResume(List<WorkStopResume> workStopResumeList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int updateWorkStopResumeAll(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Ease(type = EaseConstant.UPDATE)
|
||||
int batchUpdateWorkStopResumeAll(List<WorkStopResume> workStopResumeList);
|
||||
|
||||
/**
|
||||
* 删除施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkStopResumeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除施工管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkStopResumeByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除施工管理
|
||||
*
|
||||
* @param ids 需要软删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkStopResumeByIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AcceptInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IAcceptInfoBaseService
|
||||
{
|
||||
/**
|
||||
* 查询竣工验收
|
||||
*
|
||||
* @param id 竣工验收主键
|
||||
* @return 竣工验收
|
||||
*/
|
||||
AcceptInfo selectAcceptInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询竣工验收列表
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 竣工验收集合
|
||||
*/
|
||||
List<AcceptInfo> selectAcceptInfoList(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 查询竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 竣工验收
|
||||
*/
|
||||
AcceptInfo selectOne(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 查询竣工验收列表
|
||||
*
|
||||
* @param ids 竣工验收主键列表
|
||||
* @return 竣工验收集合
|
||||
*/
|
||||
List<AcceptInfo> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
int insertAcceptInfo(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 批量新增竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertAcceptInfo(List<AcceptInfo> acceptInfoList);
|
||||
|
||||
/**
|
||||
* 修改竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
int updateAcceptInfo(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 批量修改竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateAcceptInfo(List<AcceptInfo> acceptInfoList);
|
||||
|
||||
/**
|
||||
* 修改竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
int updateAcceptInfoAll(AcceptInfo acceptInfo);
|
||||
|
||||
/**
|
||||
* 批量修改竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateAcceptInfoAll(List<AcceptInfo> acceptInfoList);
|
||||
|
||||
/**
|
||||
* 批量删除竣工验收
|
||||
*
|
||||
* @param ids 需要删除的竣工验收主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAcceptInfoByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除竣工验收
|
||||
*
|
||||
* @param ids 需要软删除的竣工验收主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidAcceptInfoByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除竣工验收信息
|
||||
*
|
||||
* @param id 竣工验收主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAcceptInfoById(Long id);
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IAcceptInfoService extends IAcceptInfoBaseService
|
||||
{
|
||||
void invalidAcceptInfoByManageIds(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 事故事件Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IAccidentEventRecordBaseService
|
||||
{
|
||||
/**
|
||||
* 查询事故事件
|
||||
*
|
||||
* @param id 事故事件主键
|
||||
* @return 事故事件
|
||||
*/
|
||||
AccidentEventRecord selectAccidentEventRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 事故事件集合
|
||||
*/
|
||||
List<AccidentEventRecord> selectAccidentEventRecordList(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 查询事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 事故事件
|
||||
*/
|
||||
AccidentEventRecord selectOne(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*
|
||||
* @param ids 事故事件主键列表
|
||||
* @return 事故事件集合
|
||||
*/
|
||||
List<AccidentEventRecord> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
int insertAccidentEventRecord(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 批量新增事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertAccidentEventRecord(List<AccidentEventRecord> accidentEventRecordList);
|
||||
|
||||
/**
|
||||
* 修改事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
int updateAccidentEventRecord(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 批量修改事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateAccidentEventRecord(List<AccidentEventRecord> accidentEventRecordList);
|
||||
|
||||
/**
|
||||
* 修改事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
int updateAccidentEventRecordAll(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
/**
|
||||
* 批量修改事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateAccidentEventRecordAll(List<AccidentEventRecord> accidentEventRecordList);
|
||||
|
||||
/**
|
||||
* 批量删除事故事件
|
||||
*
|
||||
* @param ids 需要删除的事故事件主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAccidentEventRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除事故事件
|
||||
*
|
||||
* @param ids 需要软删除的事故事件主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidAccidentEventRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除事故事件信息
|
||||
*
|
||||
* @param id 事故事件主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteAccidentEventRecordById(Long id);
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 事故事件Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IAccidentEventRecordService extends IAccidentEventRecordBaseService
|
||||
{
|
||||
List<AccidentEventRecord> getList(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
void add(AccidentEventRecord accidentEventRecord);
|
||||
|
||||
int getWeekDate(Long companyId, Date startTime, Date endTime);
|
||||
|
||||
int getMonthDate(Long companyId, Date startTime, Date endTime);
|
||||
|
||||
int getYearDate(Long companyId, Date startTime, Date endTime);
|
||||
}
|
|
@ -0,0 +1,119 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 黑名单记录Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
public interface IBlackLogBaseService
|
||||
{
|
||||
/**
|
||||
* 查询黑名单记录
|
||||
*
|
||||
* @param id 黑名单记录主键
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
BlackLog selectBlackLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询黑名单记录列表
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 黑名单记录集合
|
||||
*/
|
||||
List<BlackLog> selectBlackLogList(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 查询黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
BlackLog selectOne(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 查询黑名单记录列表
|
||||
*
|
||||
* @param ids 黑名单记录主键列表
|
||||
* @return 黑名单记录集合
|
||||
*/
|
||||
List<BlackLog> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBlackLog(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 批量新增黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertBlackLog(List<BlackLog> blackLogList);
|
||||
|
||||
/**
|
||||
* 修改黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBlackLog(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 批量修改黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateBlackLog(List<BlackLog> blackLogList);
|
||||
|
||||
/**
|
||||
* 修改黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBlackLogAll(BlackLog blackLog);
|
||||
|
||||
/**
|
||||
* 批量修改黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateBlackLogAll(List<BlackLog> blackLogList);
|
||||
|
||||
/**
|
||||
* 批量删除黑名单记录
|
||||
*
|
||||
* @param ids 需要删除的黑名单记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBlackLogByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除黑名单记录
|
||||
*
|
||||
* @param ids 需要软删除的黑名单记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidBlackLogByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除黑名单记录信息
|
||||
*
|
||||
* @param id 黑名单记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBlackLogById(Long id);
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.BlackLogReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.BlackLogVo;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IBlackLogService extends IBlackLogBaseService
|
||||
{
|
||||
void add(BlackLogVo blackLogVo);
|
||||
|
||||
List<BlackLog> getUnBlack(Date date);
|
||||
|
||||
void recoverApply(SubmitTaskVo recover);
|
||||
|
||||
void recover(SubmitTaskVo recover);
|
||||
|
||||
List<BlackLogVo> getList(BlackLogReq blackLogReq);
|
||||
|
||||
void secureContract(Long correlationId);
|
||||
|
||||
void blackCompany(BlackLogVo blackLogVo);
|
||||
|
||||
void blackCompanyUsers(String companyUserIds);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.Evacuate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IEvacuateBaseService
|
||||
{
|
||||
/**
|
||||
* 查询撤厂申请
|
||||
*
|
||||
* @param id 撤厂申请主键
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
Evacuate selectEvacuateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询撤厂申请列表
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 撤厂申请集合
|
||||
*/
|
||||
List<Evacuate> selectEvacuateList(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 查询撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
Evacuate selectOne(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 查询撤厂申请列表
|
||||
*
|
||||
* @param ids 撤厂申请主键列表
|
||||
* @return 撤厂申请集合
|
||||
*/
|
||||
List<Evacuate> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
int insertEvacuate(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 批量新增撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertEvacuate(List<Evacuate> evacuateList);
|
||||
|
||||
/**
|
||||
* 修改撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
int updateEvacuate(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 批量修改撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateEvacuate(List<Evacuate> evacuateList);
|
||||
|
||||
/**
|
||||
* 修改撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
int updateEvacuateAll(Evacuate evacuate);
|
||||
|
||||
/**
|
||||
* 批量修改撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateEvacuateAll(List<Evacuate> evacuateList);
|
||||
|
||||
/**
|
||||
* 批量删除撤厂申请
|
||||
*
|
||||
* @param ids 需要删除的撤厂申请主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteEvacuateByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除撤厂申请
|
||||
*
|
||||
* @param ids 需要软删除的撤厂申请主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidEvacuateByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除撤厂申请信息
|
||||
*
|
||||
* @param id 撤厂申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteEvacuateById(Long id);
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.EvacuateReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IEvacuateService extends IEvacuateBaseService
|
||||
{
|
||||
|
||||
List<EvacuateVo> getList(EvacuateReq evacuateReq);
|
||||
|
||||
void add(EvacuateVo evacuateVo);
|
||||
|
||||
EvacuateVo getDetail(Long id);
|
||||
|
||||
void save(EvacuateVo evacuateVo);
|
||||
|
||||
void recover(SubmitTaskVo submit);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 奖惩记录Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IRewardPunishRecordBaseService
|
||||
{
|
||||
/**
|
||||
* 查询奖惩记录
|
||||
*
|
||||
* @param id 奖惩记录主键
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
RewardPunishRecord selectRewardPunishRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 奖惩记录集合
|
||||
*/
|
||||
List<RewardPunishRecord> selectRewardPunishRecordList(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 查询奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
RewardPunishRecord selectOne(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*
|
||||
* @param ids 奖惩记录主键列表
|
||||
* @return 奖惩记录集合
|
||||
*/
|
||||
List<RewardPunishRecord> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertRewardPunishRecord(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 批量新增奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertRewardPunishRecord(List<RewardPunishRecord> rewardPunishRecordList);
|
||||
|
||||
/**
|
||||
* 修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateRewardPunishRecord(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 批量修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateRewardPunishRecord(List<RewardPunishRecord> rewardPunishRecordList);
|
||||
|
||||
/**
|
||||
* 修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateRewardPunishRecordAll(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
/**
|
||||
* 批量修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateRewardPunishRecordAll(List<RewardPunishRecord> rewardPunishRecordList);
|
||||
|
||||
/**
|
||||
* 批量删除奖惩记录
|
||||
*
|
||||
* @param ids 需要删除的奖惩记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRewardPunishRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除奖惩记录
|
||||
*
|
||||
* @param ids 需要软删除的奖惩记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidRewardPunishRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除奖惩记录信息
|
||||
*
|
||||
* @param id 奖惩记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRewardPunishRecordById(Long id);
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.RewardPunishRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.RewardPunishRecordVo;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 奖惩记录Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IRewardPunishRecordService extends IRewardPunishRecordBaseService
|
||||
{
|
||||
|
||||
List<RewardPunishRecordVo> getList(RewardPunishRecordReq rewardPunishRecordReq);
|
||||
|
||||
void add(RewardPunishRecordVo rewardPunishRecordVo);
|
||||
|
||||
void save(RewardPunishRecord rewardPunishRecord);
|
||||
|
||||
void recover(SubmitTaskVo submit);
|
||||
|
||||
int getWeekDate(Long companyId, Date startTime, Date endTime, int type);
|
||||
|
||||
int getMonthDate(Long companyId, Date startTime, Date endTime, int type);
|
||||
|
||||
int getYearDate(Long companyId, Date startTime, Date endTime, int type);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalMatter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违规事项Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface IWorkIllegalMatterBaseService
|
||||
{
|
||||
/**
|
||||
* 查询违规事项
|
||||
*
|
||||
* @param id 违规事项主键
|
||||
* @return 违规事项
|
||||
*/
|
||||
WorkIllegalMatter selectWorkIllegalMatterById(Long id);
|
||||
|
||||
/**
|
||||
* 查询违规事项列表
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 违规事项集合
|
||||
*/
|
||||
List<WorkIllegalMatter> selectWorkIllegalMatterList(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 查询违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 违规事项
|
||||
*/
|
||||
WorkIllegalMatter selectOne(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 查询违规事项列表
|
||||
*
|
||||
* @param ids 违规事项主键列表
|
||||
* @return 违规事项集合
|
||||
*/
|
||||
List<WorkIllegalMatter> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
int insertWorkIllegalMatter(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 批量新增违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertWorkIllegalMatter(List<WorkIllegalMatter> workIllegalMatterList);
|
||||
|
||||
/**
|
||||
* 修改违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkIllegalMatter(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 批量修改违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkIllegalMatter(List<WorkIllegalMatter> workIllegalMatterList);
|
||||
|
||||
/**
|
||||
* 修改违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkIllegalMatterAll(WorkIllegalMatter workIllegalMatter);
|
||||
|
||||
/**
|
||||
* 批量修改违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkIllegalMatterAll(List<WorkIllegalMatter> workIllegalMatterList);
|
||||
|
||||
/**
|
||||
* 批量删除违规事项
|
||||
*
|
||||
* @param ids 需要删除的违规事项主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalMatterByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除违规事项
|
||||
*
|
||||
* @param ids 需要软删除的违规事项主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkIllegalMatterByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除违规事项信息
|
||||
*
|
||||
* @param id 违规事项主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalMatterById(Long id);
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
/**
|
||||
* 违规事项Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface IWorkIllegalMatterService extends IWorkIllegalMatterBaseService
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IWorkIllegalRecordBaseService
|
||||
{
|
||||
/**
|
||||
* 查询违章违纪登记
|
||||
*
|
||||
* @param id 违章违纪登记主键
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
WorkIllegalRecord selectWorkIllegalRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 违章违纪登记集合
|
||||
*/
|
||||
List<WorkIllegalRecord> selectWorkIllegalRecordList(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
WorkIllegalRecord selectOne(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*
|
||||
* @param ids 违章违纪登记主键列表
|
||||
* @return 违章违纪登记集合
|
||||
*/
|
||||
List<WorkIllegalRecord> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
int insertWorkIllegalRecord(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 批量新增违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertWorkIllegalRecord(List<WorkIllegalRecord> workIllegalRecordList);
|
||||
|
||||
/**
|
||||
* 修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkIllegalRecord(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 批量修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkIllegalRecord(List<WorkIllegalRecord> workIllegalRecordList);
|
||||
|
||||
/**
|
||||
* 修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkIllegalRecordAll(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
/**
|
||||
* 批量修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkIllegalRecordAll(List<WorkIllegalRecord> workIllegalRecordList);
|
||||
|
||||
/**
|
||||
* 批量删除违章违纪登记
|
||||
*
|
||||
* @param ids 需要删除的违章违纪登记主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除违章违纪登记
|
||||
*
|
||||
* @param ids 需要软删除的违章违纪登记主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkIllegalRecordByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除违章违纪登记信息
|
||||
*
|
||||
* @param id 违章违纪登记主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkIllegalRecordById(Long id);
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkIllegalRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IWorkIllegalRecordService extends IWorkIllegalRecordBaseService
|
||||
{
|
||||
|
||||
List<WorkIllegalRecordVo> getList(WorkIllegalRecordReq workIllegalRecordReq);
|
||||
|
||||
void add(WorkIllegalRecordVo workIllegalRecord);
|
||||
|
||||
WorkIllegalRecord getDetail(Long id);
|
||||
|
||||
void save(WorkIllegalRecord workIllegalRecord);
|
||||
|
||||
void recover(SubmitTaskVo submit);
|
||||
|
||||
void remove(List<Long> ids);
|
||||
|
||||
int getWeekDate(Long companyId, Date startTime, Date endTime);
|
||||
|
||||
int getMonthDate(Long companyId, Date startTime, Date endTime);
|
||||
|
||||
int getYearDate(Long companyId, Date startTime, Date endTime);
|
||||
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
public interface IWorkLogBaseService
|
||||
{
|
||||
/**
|
||||
* 查询施工记录
|
||||
*
|
||||
* @param id 施工记录主键
|
||||
* @return 施工记录
|
||||
*/
|
||||
WorkLog selectWorkLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询施工记录列表
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 施工记录集合
|
||||
*/
|
||||
List<WorkLog> selectWorkLogList(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 查询施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 施工记录
|
||||
*/
|
||||
WorkLog selectOne(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 查询施工记录列表
|
||||
*
|
||||
* @param ids 施工记录主键列表
|
||||
* @return 施工记录集合
|
||||
*/
|
||||
List<WorkLog> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertWorkLog(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 批量新增施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertWorkLog(List<WorkLog> workLogList);
|
||||
|
||||
/**
|
||||
* 修改施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkLog(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 批量修改施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkLog(List<WorkLog> workLogList);
|
||||
|
||||
/**
|
||||
* 修改施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkLogAll(WorkLog workLog);
|
||||
|
||||
/**
|
||||
* 批量修改施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkLogAll(List<WorkLog> workLogList);
|
||||
|
||||
/**
|
||||
* 批量删除施工记录
|
||||
*
|
||||
* @param ids 需要删除的施工记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkLogByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除施工记录
|
||||
*
|
||||
* @param ids 需要软删除的施工记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkLogByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除施工记录信息
|
||||
*
|
||||
* @param id 施工记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkLogById(Long id);
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
public interface IWorkLogService extends IWorkLogBaseService
|
||||
{
|
||||
void invalidWorkLogByManageIds(List<Long> ids);
|
||||
|
||||
List<WorkLog> getList(WorkLog workLog);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IWorkManageBaseService
|
||||
{
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkManage selectWorkManageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkManage> selectWorkManageList(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkManage selectOne(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param ids 施工管理主键列表
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkManage> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
int insertWorkManage(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 批量新增施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertWorkManage(List<WorkManage> workManageList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkManage(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkManage(List<WorkManage> workManageList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkManageAll(WorkManage workManage);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkManageAll(List<WorkManage> workManageList);
|
||||
|
||||
/**
|
||||
* 批量删除施工管理
|
||||
*
|
||||
* @param ids 需要删除的施工管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkManageByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除施工管理
|
||||
*
|
||||
* @param ids 需要软删除的施工管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkManageByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除施工管理信息
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkManageById(Long id);
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkManageReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IWorkManageService extends IWorkManageBaseService
|
||||
{
|
||||
// void invalidWorkManageByProjectIds(List<Long> projectIds);
|
||||
|
||||
List<WorkManageVo> getWorkManages(Long companyId);
|
||||
|
||||
List<WorkManageVo> getList(WorkManageReq workManage);
|
||||
|
||||
void add(WorkManageVo workManageVo);
|
||||
|
||||
void save(WorkManageVo workManageVo);
|
||||
|
||||
WorkManageVo getDetail(Long id);
|
||||
|
||||
void recover(SubmitTaskVo submit);
|
||||
|
||||
void remove(List<Long> ids);
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkStopResume;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface IWorkStopResumeBaseService
|
||||
{
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkStopResume selectWorkStopResumeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkStopResume> selectWorkStopResumeList(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
WorkStopResume selectOne(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param ids 施工管理主键列表
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
List<WorkStopResume> batchSelectByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
int insertWorkStopResume(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 批量新增施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchInsertWorkStopResume(List<WorkStopResume> workStopResumeList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkStopResume(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkStopResume(List<WorkStopResume> workStopResumeList);
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateWorkStopResumeAll(WorkStopResume workStopResume);
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateWorkStopResumeAll(List<WorkStopResume> workStopResumeList);
|
||||
|
||||
/**
|
||||
* 批量删除施工管理
|
||||
*
|
||||
* @param ids 需要删除的施工管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkStopResumeByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 批量软删除施工管理
|
||||
*
|
||||
* @param ids 需要软删除的施工管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int invalidWorkStopResumeByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 删除施工管理信息
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteWorkStopResumeById(Long id);
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkStopResumeVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Service接口
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
public interface IWorkStopResumeService extends IWorkStopResumeBaseService
|
||||
{
|
||||
void invalidWorkStopResumeByManageIds(List<Long> ids);
|
||||
|
||||
void add(WorkStopResumeVo workStopResumeVo);
|
||||
|
||||
void recover(SubmitTaskVo submit);
|
||||
}
|
|
@ -0,0 +1,176 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AcceptInfo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.AcceptInfoMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAcceptInfoBaseService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IEvacuateService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class AcceptInfoBaseServiceImpl implements IAcceptInfoBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected AcceptInfoMapper acceptInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询竣工验收
|
||||
*
|
||||
* @param id 竣工验收主键
|
||||
* @return 竣工验收
|
||||
*/
|
||||
@Override
|
||||
public AcceptInfo selectAcceptInfoById(Long id)
|
||||
{
|
||||
return acceptInfoMapper.selectAcceptInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询竣工验收列表
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 竣工验收
|
||||
*/
|
||||
@Override
|
||||
public List<AcceptInfo> selectAcceptInfoList(AcceptInfo acceptInfo)
|
||||
{
|
||||
return acceptInfoMapper.selectAcceptInfoList(acceptInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 竣工验收
|
||||
*/
|
||||
@Override
|
||||
public AcceptInfo selectOne(AcceptInfo acceptInfo) {
|
||||
return acceptInfoMapper.selectOne(acceptInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询竣工验收列表
|
||||
*
|
||||
* @param ids 竣工验收主键列表
|
||||
* @return 竣工验收集合
|
||||
*/
|
||||
public List<AcceptInfo> batchSelectByIds(List<Long> ids) {
|
||||
return acceptInfoMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertAcceptInfo(AcceptInfo acceptInfo)
|
||||
{
|
||||
return acceptInfoMapper.insertAcceptInfo(acceptInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertAcceptInfo(List<AcceptInfo> acceptInfoList)
|
||||
{
|
||||
return acceptInfoMapper.batchInsertAcceptInfo(acceptInfoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAcceptInfo(AcceptInfo acceptInfo)
|
||||
{
|
||||
return acceptInfoMapper.updateAcceptInfo(acceptInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateAcceptInfo(List<AcceptInfo> acceptInfoList)
|
||||
{
|
||||
return acceptInfoMapper.batchUpdateAcceptInfo(acceptInfoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改竣工验收
|
||||
*
|
||||
* @param acceptInfo 竣工验收
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAcceptInfoAll(AcceptInfo acceptInfo)
|
||||
{
|
||||
return acceptInfoMapper.updateAcceptInfoAll(acceptInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改竣工验收
|
||||
*
|
||||
* @param acceptInfoList 竣工验收列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateAcceptInfoAll(List<AcceptInfo> acceptInfoList)
|
||||
{
|
||||
return acceptInfoMapper.batchUpdateAcceptInfoAll(acceptInfoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除竣工验收
|
||||
*
|
||||
* @param ids 需要删除的竣工验收主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAcceptInfoByIds(List<Long> ids)
|
||||
{
|
||||
return acceptInfoMapper.deleteAcceptInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除竣工验收
|
||||
*
|
||||
* @param ids 需要软删除的竣工验收主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidAcceptInfoByIds(List<Long> ids)
|
||||
{
|
||||
return acceptInfoMapper.invalidAcceptInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除竣工验收信息
|
||||
*
|
||||
* @param id 竣工验收主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAcceptInfoById(Long id)
|
||||
{
|
||||
return acceptInfoMapper.deleteAcceptInfoById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAcceptInfoService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IEvacuateService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 竣工验收Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class AcceptInfoServiceImpl extends AcceptInfoBaseServiceImpl implements IAcceptInfoService
|
||||
{
|
||||
|
||||
@Override
|
||||
public void invalidAcceptInfoByManageIds(List<Long> ids) {
|
||||
acceptInfoMapper.invalidAcceptInfoByManageIds(ids);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.AccidentEventRecordMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAccidentEventRecordBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 事故事件Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class AccidentEventRecordBaseServiceImpl implements IAccidentEventRecordBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected AccidentEventRecordMapper accidentEventRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询事故事件
|
||||
*
|
||||
* @param id 事故事件主键
|
||||
* @return 事故事件
|
||||
*/
|
||||
@Override
|
||||
public AccidentEventRecord selectAccidentEventRecordById(Long id)
|
||||
{
|
||||
return accidentEventRecordMapper.selectAccidentEventRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 事故事件
|
||||
*/
|
||||
@Override
|
||||
public List<AccidentEventRecord> selectAccidentEventRecordList(AccidentEventRecord accidentEventRecord)
|
||||
{
|
||||
return accidentEventRecordMapper.selectAccidentEventRecordList(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 事故事件
|
||||
*/
|
||||
@Override
|
||||
public AccidentEventRecord selectOne(AccidentEventRecord accidentEventRecord) {
|
||||
return accidentEventRecordMapper.selectOne(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询事故事件列表
|
||||
*
|
||||
* @param ids 事故事件主键列表
|
||||
* @return 事故事件集合
|
||||
*/
|
||||
public List<AccidentEventRecord> batchSelectByIds(List<Long> ids) {
|
||||
return accidentEventRecordMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertAccidentEventRecord(AccidentEventRecord accidentEventRecord)
|
||||
{
|
||||
return accidentEventRecordMapper.insertAccidentEventRecord(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertAccidentEventRecord(List<AccidentEventRecord> accidentEventRecordList)
|
||||
{
|
||||
return accidentEventRecordMapper.batchInsertAccidentEventRecord(accidentEventRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAccidentEventRecord(AccidentEventRecord accidentEventRecord)
|
||||
{
|
||||
return accidentEventRecordMapper.updateAccidentEventRecord(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateAccidentEventRecord(List<AccidentEventRecord> accidentEventRecordList)
|
||||
{
|
||||
return accidentEventRecordMapper.batchUpdateAccidentEventRecord(accidentEventRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改事故事件
|
||||
*
|
||||
* @param accidentEventRecord 事故事件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAccidentEventRecordAll(AccidentEventRecord accidentEventRecord)
|
||||
{
|
||||
return accidentEventRecordMapper.updateAccidentEventRecordAll(accidentEventRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改事故事件
|
||||
*
|
||||
* @param accidentEventRecordList 事故事件列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateAccidentEventRecordAll(List<AccidentEventRecord> accidentEventRecordList)
|
||||
{
|
||||
return accidentEventRecordMapper.batchUpdateAccidentEventRecordAll(accidentEventRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除事故事件
|
||||
*
|
||||
* @param ids 需要删除的事故事件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAccidentEventRecordByIds(List<Long> ids)
|
||||
{
|
||||
return accidentEventRecordMapper.deleteAccidentEventRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除事故事件
|
||||
*
|
||||
* @param ids 需要软删除的事故事件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidAccidentEventRecordByIds(List<Long> ids)
|
||||
{
|
||||
return accidentEventRecordMapper.invalidAccidentEventRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事故事件信息
|
||||
*
|
||||
* @param id 事故事件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAccidentEventRecordById(Long id)
|
||||
{
|
||||
return accidentEventRecordMapper.deleteAccidentEventRecordById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.datascope.annotation.DataScope;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AccidentEventRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAccidentEventRecordService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 事故事件Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class AccidentEventRecordServiceImpl extends AccidentEventRecordBaseServiceImpl implements IAccidentEventRecordService
|
||||
{
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public List<AccidentEventRecord> getList(AccidentEventRecord accidentEventRecord) {
|
||||
if (accidentEventRecord == null) {
|
||||
accidentEventRecord = new AccidentEventRecord();
|
||||
}
|
||||
accidentEventRecord.setValid(1);
|
||||
return accidentEventRecordMapper.selectAccidentEventRecordList(accidentEventRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(AccidentEventRecord accidentEventRecord) {
|
||||
accidentEventRecord.setId(IdUtils.getInstance().getId());
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
accidentEventRecord.setDeptId(deptId);
|
||||
accidentEventRecord.setDeptName(deptName);
|
||||
accidentEventRecordMapper.insertAccidentEventRecord(accidentEventRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWeekDate(Long companyId, Date startTime, Date endTime) {
|
||||
return accidentEventRecordMapper.getWeekDate(companyId, startTime, endTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMonthDate(Long companyId, Date startTime, Date endTime) {
|
||||
return accidentEventRecordMapper.getMonthDate(companyId, startTime, endTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getYearDate(Long companyId, Date startTime, Date endTime) {
|
||||
return accidentEventRecordMapper.getYearDate(companyId, startTime, endTime);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.BlackLogMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IBlackLogBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 黑名单记录Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@Service
|
||||
public class BlackLogBaseServiceImpl implements IBlackLogBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected BlackLogMapper blackLogMapper;
|
||||
|
||||
/**
|
||||
* 查询黑名单记录
|
||||
*
|
||||
* @param id 黑名单记录主键
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
@Override
|
||||
public BlackLog selectBlackLogById(Long id)
|
||||
{
|
||||
return blackLogMapper.selectBlackLogById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询黑名单记录列表
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
@Override
|
||||
public List<BlackLog> selectBlackLogList(BlackLog blackLog)
|
||||
{
|
||||
return blackLogMapper.selectBlackLogList(blackLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 黑名单记录
|
||||
*/
|
||||
@Override
|
||||
public BlackLog selectOne(BlackLog blackLog) {
|
||||
return blackLogMapper.selectOne(blackLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询黑名单记录列表
|
||||
*
|
||||
* @param ids 黑名单记录主键列表
|
||||
* @return 黑名单记录集合
|
||||
*/
|
||||
public List<BlackLog> batchSelectByIds(List<Long> ids) {
|
||||
return blackLogMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBlackLog(BlackLog blackLog)
|
||||
{
|
||||
return blackLogMapper.insertBlackLog(blackLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertBlackLog(List<BlackLog> blackLogList)
|
||||
{
|
||||
return blackLogMapper.batchInsertBlackLog(blackLogList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBlackLog(BlackLog blackLog)
|
||||
{
|
||||
return blackLogMapper.updateBlackLog(blackLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateBlackLog(List<BlackLog> blackLogList)
|
||||
{
|
||||
return blackLogMapper.batchUpdateBlackLog(blackLogList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改黑名单记录
|
||||
*
|
||||
* @param blackLog 黑名单记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBlackLogAll(BlackLog blackLog)
|
||||
{
|
||||
return blackLogMapper.updateBlackLogAll(blackLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改黑名单记录
|
||||
*
|
||||
* @param blackLogList 黑名单记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateBlackLogAll(List<BlackLog> blackLogList)
|
||||
{
|
||||
return blackLogMapper.batchUpdateBlackLogAll(blackLogList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除黑名单记录
|
||||
*
|
||||
* @param ids 需要删除的黑名单记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBlackLogByIds(List<Long> ids)
|
||||
{
|
||||
return blackLogMapper.deleteBlackLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除黑名单记录
|
||||
*
|
||||
* @param ids 需要软删除的黑名单记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidBlackLogByIds(List<Long> ids)
|
||||
{
|
||||
return blackLogMapper.invalidBlackLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除黑名单记录信息
|
||||
*
|
||||
* @param id 黑名单记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBlackLogById(Long id)
|
||||
{
|
||||
return blackLogMapper.deleteBlackLogById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,328 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.common.utils.CollectionUtils;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.bpm.api.domain.task.SubmitResInfo;
|
||||
import com.hbt.common.core.constant.SecurityConstants;
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.BlackLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.BlackLogReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.BlackLogVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IBlackLogService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IEvacuateService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkIllegalMatterService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ICompanyService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ICompanyUserService;
|
||||
import com.hbt.related.parties.biz.bpm.BpmService;
|
||||
import com.hbt.related.parties.biz.contractManage.domain.Contract;
|
||||
import com.hbt.related.parties.biz.contractManage.mapper.ContractMapper;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.Entry;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.EntryEvacuateUser;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.vo.EntryEvacuateUserVo;
|
||||
import com.hbt.related.parties.biz.whenEnter.service.IEntryEvacuateUserService;
|
||||
import com.hbt.related.parties.biz.whenEnter.service.IEntryService;
|
||||
import com.hbt.related.parties.biz.whenEnter.service.ITrainingService;
|
||||
import com.hbt.related.parties.config.ConfigProperties;
|
||||
import com.hbt.related.parties.util.CommonUtils;
|
||||
import com.hbt.system.api.RemoteUserService;
|
||||
import com.hbt.system.api.domain.SysUser;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 黑名单记录Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class BlackLogServiceImpl extends BlackLogBaseServiceImpl implements IBlackLogService
|
||||
{
|
||||
|
||||
@Resource
|
||||
private IWorkIllegalMatterService workIllegalMatterService;
|
||||
|
||||
@Resource
|
||||
private IEvacuateService evacuateService;
|
||||
|
||||
@Resource
|
||||
private IEntryService entryService;
|
||||
|
||||
@Resource
|
||||
private IEntryEvacuateUserService entryEvacuateUserService;
|
||||
|
||||
@Resource
|
||||
private ITrainingService trainingService;
|
||||
|
||||
@Resource
|
||||
private ContractMapper contractMapper;
|
||||
|
||||
@Resource
|
||||
private ICompanyService companyService;
|
||||
|
||||
@Resource
|
||||
private ICompanyUserService companyUserService;
|
||||
|
||||
@Resource
|
||||
private BpmService bpmService;
|
||||
|
||||
@Resource
|
||||
private RemoteUserService remoteUserService;
|
||||
|
||||
@Resource
|
||||
private ConfigProperties configProperties;
|
||||
|
||||
public void secureContract(Long correlationId) {
|
||||
List<Contract> contracts = contractMapper.selectContractList(Contract.builder().companyId(correlationId).valid(1).build());
|
||||
if (CollectionUtils.isNotEmpty(contracts)) {
|
||||
contracts.forEach(s -> {
|
||||
s.setStatus(2);
|
||||
});
|
||||
contractMapper.batchUpdateContract(contracts);
|
||||
}
|
||||
}
|
||||
|
||||
public void blackCompany(BlackLogVo blackLogVo) {
|
||||
// 拉黑相关方
|
||||
companyService.updateCompany(Company.builder().id(blackLogVo.getCorrelationId()).isBlack(1).companyStatus(3).build());
|
||||
// 查询企业信息
|
||||
Company company = companyService.selectCompanyById(blackLogVo.getCorrelationId());
|
||||
// 企业账号权限设置为空
|
||||
// 查询企业账户
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserName(company.getUsci());
|
||||
List<SysUser> sysUsers = remoteUserService.selectUserList(sysUser, SecurityConstants.INNER).getData();
|
||||
if (CollectionUtils.isNotEmpty(sysUsers)) {
|
||||
sysUsers.forEach(s -> {
|
||||
s.setRoleIds(null);
|
||||
});
|
||||
remoteUserService.saveUsers(sysUsers, SecurityConstants.INNER);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void blackCompanyUsers(String companyUserIds) {
|
||||
// 拉黑人员
|
||||
if (StringUtils.isNotEmpty(companyUserIds)) {
|
||||
List<SysUser> users = new ArrayList<>();
|
||||
List<Long> userIds = CommonUtils.convertionToLongList(companyUserIds.split(","));
|
||||
List<CompanyUser> companyUsers = new ArrayList<>();
|
||||
userIds.forEach(s -> {
|
||||
SysUser user = new SysUser();
|
||||
user.setUserId(s);
|
||||
user.setRoleIds(null);
|
||||
users.add(user);
|
||||
|
||||
CompanyUser companyUser = new CompanyUser();
|
||||
companyUser.setId(s);
|
||||
companyUser.setUserStatus(3);
|
||||
companyUser.setIsBlack(1);
|
||||
companyUsers.add(companyUser);
|
||||
});
|
||||
remoteUserService.saveUsers(users, SecurityConstants.INNER);
|
||||
companyUserService.batchUpdateCompanyUser(companyUsers);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void add(BlackLogVo blackLogVo) {
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
Long id = IdUtils.getInstance().getId();
|
||||
blackLogVo.setId(id);
|
||||
blackLogVo.setDeptId(deptId);
|
||||
blackLogVo.setDeptName(deptName);
|
||||
if(CollectionUtils.isNotEmpty(blackLogVo.getWorkIllegalMatters())) {
|
||||
workIllegalMatterService.batchInsertWorkIllegalMatter(blackLogVo.getWorkIllegalMatters());
|
||||
}
|
||||
|
||||
// 如果是立即执行,且是清除出厂,发出相关方撤厂或者人员撤厂
|
||||
blackLogVo.setIsBlack(0);
|
||||
// todo 企业、人员账号处理
|
||||
if(blackLogVo.getIsInstantly() == 1) {
|
||||
blackLogVo.setIsBlack(1);
|
||||
if (blackLogVo.getHandleType() == 0) {
|
||||
// 发起相关方撤厂,人员撤厂
|
||||
if (blackLogVo.getType() == 0) {
|
||||
// 直接拉黑
|
||||
// 相关方合同解除
|
||||
secureContract(blackLogVo.getCorrelationId());
|
||||
// 企业拉入黑名单
|
||||
blackCompany(blackLogVo);
|
||||
// 相关方人员拉黑
|
||||
blackCompanyUsers(blackLogVo.getUsers());
|
||||
} else {
|
||||
// 直接拉黑人员
|
||||
blackCompanyUsers(blackLogVo.getUsers());
|
||||
}
|
||||
} else {
|
||||
// todo 发起培训流程
|
||||
training(blackLogVo);
|
||||
}
|
||||
} else {
|
||||
blackLogVo.setIsBlack(2);
|
||||
if (blackLogVo.getHandleType() == 0) {
|
||||
if (blackLogVo.getType() == 0) {
|
||||
// 发起相关方撤厂
|
||||
evacuateCompany(blackLogVo);
|
||||
} else {
|
||||
// 发起人员撤厂
|
||||
evacuateCompanyUser(blackLogVo);
|
||||
}
|
||||
} else {
|
||||
// todo 发起培训流程
|
||||
training(blackLogVo);
|
||||
}
|
||||
}
|
||||
blackLogMapper.insertBlackLog(blackLogVo);
|
||||
}
|
||||
|
||||
private void training(BlackLogVo blackLogVo) {
|
||||
// 查询人员培训信息
|
||||
List<Long> userIds = new ArrayList<>();
|
||||
if (blackLogVo.getType() == 0) {
|
||||
userIds = CommonUtils.convertionToLongList(blackLogVo.getUsers().split(","));
|
||||
} else {
|
||||
userIds = Collections.singletonList(blackLogVo.getCorrelationId());
|
||||
}
|
||||
// todo 先设置人员权限改为培训前的权限,从哪里发起哪个培训
|
||||
// 设置人员状态为再培训状态
|
||||
List<SysUser> users = new ArrayList<>();
|
||||
List<CompanyUser> companyUsers = new ArrayList<>();
|
||||
userIds.forEach(s -> {
|
||||
SysUser user = new SysUser();
|
||||
user.setUserId(s);
|
||||
user.setRoleIds(new Long[]{configProperties.getBeforeTrainingRoleId()});
|
||||
users.add(user);
|
||||
|
||||
CompanyUser companyUser = new CompanyUser();
|
||||
companyUser.setId(s);
|
||||
companyUser.setUserStatus(5);
|
||||
companyUsers.add(companyUser);
|
||||
});
|
||||
remoteUserService.saveUsers(users, SecurityConstants.INNER);
|
||||
companyUserService.batchUpdateCompanyUser(companyUsers);
|
||||
// 修改
|
||||
|
||||
// todo 发起再培训流程
|
||||
|
||||
// trainingService.batchSelectByIds()
|
||||
// trainingService.add();
|
||||
}
|
||||
|
||||
private void evacuateCompanyUser(BlackLogVo blackLogVo) {
|
||||
// 查询人员入厂申请
|
||||
CompanyUser companyUser = companyUserService.selectCompanyUserById(blackLogVo.getCorrelationId());
|
||||
Company company = companyService.selectCompanyById(companyUser.getCompanyId());
|
||||
EntryEvacuateUser entryEvacuateUser = EntryEvacuateUser.builder()
|
||||
.companyId(company.getId())
|
||||
.companyName(company.getName())
|
||||
.usci(company.getUsci())
|
||||
.users(companyUser.getId().toString())
|
||||
.type(0).approveId(SecurityUtils.getUserId())
|
||||
.approveName(SecurityUtils.getUsername()).build();
|
||||
|
||||
// 发起人员撤厂
|
||||
EntryEvacuateUserVo entryEvacuateUserVo = BeanUtil.copyProperties(entryEvacuateUser, EntryEvacuateUserVo.class);
|
||||
companyUserService.updateCompanyUser(CompanyUser.builder().id(blackLogVo.getCorrelationId()).isBlack(2).build()); // 设置为正在被拉黑
|
||||
entryEvacuateUserService.add(entryEvacuateUserVo);
|
||||
}
|
||||
|
||||
private void evacuateCompany(BlackLogVo blackLogVo) {
|
||||
// 查询企业入厂申请
|
||||
Entry entry = entryService.selectOne(Entry.builder().companyId(blackLogVo.getCorrelationId()).valid(1).build());
|
||||
EvacuateVo evacuateVo = EvacuateVo.builder()
|
||||
.companyId(entry.getCompanyId())
|
||||
.companyName(entry.getCompanyName())
|
||||
.approveId(SecurityUtils.getUserId())
|
||||
.approveName(SecurityUtils.getUsername()).userQuailfy(blackLogVo.getUsers()).build();
|
||||
companyService.updateCompany(Company.builder().id(entry.getCompanyId()).isBlack(2).build()); // 设置为正在被拉黑
|
||||
evacuateService.add(evacuateVo); // 这里发起了相关方和人员的出厂申请
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<BlackLog> getUnBlack(Date date) {
|
||||
return blackLogMapper.getUnBlack(date);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recoverApply(SubmitTaskVo recover) {
|
||||
BlackLogVo bizData = JSON.parseObject(recover.getBizData().getData(), BlackLogVo.class);
|
||||
if (CollectionUtils.isNotEmpty(bizData.getWorkIllegalMatters())) {
|
||||
workIllegalMatterService.batchUpdateWorkIllegalMatter(bizData.getWorkIllegalMatters());
|
||||
}
|
||||
bpmService.startProcess(recover);
|
||||
blackLogMapper.updateBlackLog(bizData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recover(SubmitTaskVo recover) {
|
||||
BlackLogVo bizData = JSON.parseObject(recover.getBizData().getData(), BlackLogVo.class);
|
||||
SubmitResInfo resInfo = bpmService.dealProcess(recover);
|
||||
// 流程结束时,更新作业恢复的审核状态为结束
|
||||
if (resInfo != null && resInfo.getCode() == 0) {
|
||||
bpmService.activateProcess(null, bizData.getId());
|
||||
if(bizData.getType() == 0) {
|
||||
// 企业拉出黑名单
|
||||
companyService.updateCompany(Company.builder().id(bizData.getCorrelationId()).isBlack(0).companyStatus(0).build());
|
||||
// 账号权限设置
|
||||
// 查询企业信息
|
||||
Company company = companyService.selectCompanyById(bizData.getCorrelationId());
|
||||
// 企业账号权限设置为空
|
||||
// 查询企业账户
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserName(company.getUsci());
|
||||
List<SysUser> sysUsers = remoteUserService.selectUserList(sysUser, SecurityConstants.INNER).getData();
|
||||
if (CollectionUtils.isNotEmpty(sysUsers)) {
|
||||
sysUsers.forEach(s -> {
|
||||
s.setRoleIds(new Long[]{configProperties.getCompanyRoleId()});
|
||||
});
|
||||
remoteUserService.saveUsers(sysUsers, SecurityConstants.INNER);
|
||||
}
|
||||
} else {
|
||||
// 人员拉出黑名单
|
||||
companyUserService.updateCompanyUser(CompanyUser.builder().id(bizData.getCorrelationId()).isBlack(0).userStatus(0).build());
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserId(bizData.getCorrelationId());
|
||||
sysUser.setRoleIds(new Long[]{configProperties.getBeforeTrainingRoleId()});
|
||||
List<SysUser> sysUserList = Collections.singletonList(sysUser);
|
||||
remoteUserService.saveUsers(sysUserList, SecurityConstants.INNER);
|
||||
}
|
||||
blackLogMapper.updateBlackLog(BlackLog.builder().correlationId(bizData.getCorrelationId()).isBlack(0).build());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BlackLogVo> getList(BlackLogReq blackLogReq) {
|
||||
blackLogReq.setValid(1);
|
||||
blackLogReq.setIsBlack(1);
|
||||
List<BlackLogVo> blackLogVos = new ArrayList<>();
|
||||
Map<Long, BpmTaskVo> taskMap = bpmService.getTaskMap(blackLogReq.getBpmType(), blackLogReq.getBpmSchemeCode());
|
||||
if (MapUtils.isEmpty(taskMap)) {
|
||||
return blackLogVos;
|
||||
}
|
||||
log.debug("bmpType:{},ids:{}", blackLogReq.getBpmType(), taskMap.keySet());
|
||||
blackLogVos = blackLogMapper.getList(blackLogReq, Lists.newArrayList(taskMap.keySet()));
|
||||
// 设置流程信息
|
||||
blackLogVos.forEach(s -> s.setTaskInfo(taskMap.get(s.getId())));
|
||||
return blackLogVos;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.Evacuate;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.EvacuateMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IEvacuateBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 撤厂申请Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class EvacuateBaseServiceImpl implements IEvacuateBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected EvacuateMapper evacuateMapper;
|
||||
|
||||
/**
|
||||
* 查询撤厂申请
|
||||
*
|
||||
* @param id 撤厂申请主键
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
@Override
|
||||
public Evacuate selectEvacuateById(Long id)
|
||||
{
|
||||
return evacuateMapper.selectEvacuateById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询撤厂申请列表
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
@Override
|
||||
public List<Evacuate> selectEvacuateList(Evacuate evacuate)
|
||||
{
|
||||
return evacuateMapper.selectEvacuateList(evacuate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 撤厂申请
|
||||
*/
|
||||
@Override
|
||||
public Evacuate selectOne(Evacuate evacuate) {
|
||||
return evacuateMapper.selectOne(evacuate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询撤厂申请列表
|
||||
*
|
||||
* @param ids 撤厂申请主键列表
|
||||
* @return 撤厂申请集合
|
||||
*/
|
||||
public List<Evacuate> batchSelectByIds(List<Long> ids) {
|
||||
return evacuateMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEvacuate(Evacuate evacuate)
|
||||
{
|
||||
return evacuateMapper.insertEvacuate(evacuate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertEvacuate(List<Evacuate> evacuateList)
|
||||
{
|
||||
return evacuateMapper.batchInsertEvacuate(evacuateList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEvacuate(Evacuate evacuate)
|
||||
{
|
||||
return evacuateMapper.updateEvacuate(evacuate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateEvacuate(List<Evacuate> evacuateList)
|
||||
{
|
||||
return evacuateMapper.batchUpdateEvacuate(evacuateList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改撤厂申请
|
||||
*
|
||||
* @param evacuate 撤厂申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEvacuateAll(Evacuate evacuate)
|
||||
{
|
||||
return evacuateMapper.updateEvacuateAll(evacuate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改撤厂申请
|
||||
*
|
||||
* @param evacuateList 撤厂申请列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateEvacuateAll(List<Evacuate> evacuateList)
|
||||
{
|
||||
return evacuateMapper.batchUpdateEvacuateAll(evacuateList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除撤厂申请
|
||||
*
|
||||
* @param ids 需要删除的撤厂申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEvacuateByIds(List<Long> ids)
|
||||
{
|
||||
return evacuateMapper.deleteEvacuateByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除撤厂申请
|
||||
*
|
||||
* @param ids 需要软删除的撤厂申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidEvacuateByIds(List<Long> ids)
|
||||
{
|
||||
return evacuateMapper.invalidEvacuateByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除撤厂申请信息
|
||||
*
|
||||
* @param id 撤厂申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEvacuateById(Long id)
|
||||
{
|
||||
return evacuateMapper.deleteEvacuateById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,262 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.common.utils.CollectionUtils;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.bpm.api.domain.DeduceVo;
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.bpm.api.domain.scheme.DeduceRsp;
|
||||
import com.hbt.bpm.api.domain.task.BizData;
|
||||
import com.hbt.bpm.api.domain.task.CandidateInfo;
|
||||
import com.hbt.bpm.api.domain.task.SubmitResInfo;
|
||||
import com.hbt.common.core.constant.SecurityConstants;
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.core.web.domain.BaseEntity;
|
||||
import com.hbt.common.datascope.annotation.DataScope;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.Evacuate;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.EvacuateReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.RewardPunishRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IEvacuateService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkManageService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.HistoryQuailfy;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Tool;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyUserVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ICompanyService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ICompanyUserService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.IToolService;
|
||||
import com.hbt.related.parties.biz.bpm.BpmService;
|
||||
import com.hbt.related.parties.biz.contractManage.domain.Contract;
|
||||
import com.hbt.related.parties.biz.contractManage.service.IContractService;
|
||||
import com.hbt.related.parties.biz.performanceEvaluation.domain.ProjectEvaluation;
|
||||
import com.hbt.related.parties.biz.performanceEvaluation.service.IProjectEvaluationService;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.EntryEvacuateUser;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.vo.EntryEvacuateUserVo;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.vo.EntryEvacuateVehicleVo;
|
||||
import com.hbt.related.parties.util.CommonUtils;
|
||||
import com.hbt.system.api.RemoteUserService;
|
||||
import com.hbt.system.api.domain.SysUser;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 撤厂申请Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class EvacuateServiceImpl extends EvacuateBaseServiceImpl implements IEvacuateService
|
||||
{
|
||||
|
||||
@Resource
|
||||
private BpmService bpmService;
|
||||
|
||||
@Resource
|
||||
private IWorkManageService workManageService;
|
||||
|
||||
@Resource
|
||||
private IToolService toolService;
|
||||
|
||||
@Resource
|
||||
private ICompanyUserService companyUserService;
|
||||
|
||||
@Resource
|
||||
private ICompanyService companyService;
|
||||
|
||||
@Resource
|
||||
private IProjectEvaluationService projectEvaluationService;
|
||||
|
||||
@Resource
|
||||
private RemoteUserService remoteUserService;
|
||||
|
||||
@Resource
|
||||
private IContractService contractService;
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public List<EvacuateVo> getList(EvacuateReq evacuateReq) {
|
||||
evacuateReq.setValid(1);
|
||||
List<EvacuateVo> evacuateVos = new ArrayList<>();
|
||||
Map<Long, BpmTaskVo> taskMap = bpmService.getTaskMap(evacuateReq.getBpmType(), evacuateReq.getBpmSchemeCode());
|
||||
if (MapUtils.isEmpty(taskMap)) {
|
||||
return evacuateVos;
|
||||
}
|
||||
log.debug("bmpType:{},ids:{}", evacuateReq.getBpmType(), taskMap.keySet());
|
||||
evacuateVos = evacuateMapper.getList(evacuateReq, Lists.newArrayList(taskMap.keySet()));
|
||||
// 设置流程信息
|
||||
evacuateVos.forEach(s -> s.setTaskInfo(taskMap.get(s.getId())));
|
||||
return evacuateVos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(EvacuateVo evacuateVo) {
|
||||
if(evacuateVo.getId() != null) {
|
||||
evacuateMapper.deleteEvacuateById(evacuateVo.getId());
|
||||
}
|
||||
dealEvacuate(evacuateVo, false);
|
||||
|
||||
// 发起流程
|
||||
CandidateInfo candidateInfo = new CandidateInfo();
|
||||
Set<Long> userList = new HashSet<>();
|
||||
userList.add(SecurityUtils.getUserId()); // 设置审批人
|
||||
|
||||
// 推演下一步
|
||||
BizData bizData = new BizData();
|
||||
bizData.setBizId(evacuateVo.getId());
|
||||
bizData.setCode("evacuate");
|
||||
bizData.setApplication(evacuateVo.getApplication());
|
||||
bizData.setData(JSON.toJSONString(evacuateVo));
|
||||
candidateInfo.setUserList(userList);
|
||||
SubmitTaskVo submitTaskVo = SubmitTaskVo
|
||||
.builder()
|
||||
.bizData(bizData)
|
||||
.candidateInfos(Collections.singletonList(candidateInfo))
|
||||
.build();
|
||||
bpmService.startProcess(submitTaskVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EvacuateVo getDetail(Long id) {
|
||||
Evacuate evacuate = evacuateMapper.selectEvacuateById(id);
|
||||
EvacuateVo evacuateVo = BeanUtil.copyProperties(evacuate, EvacuateVo.class);
|
||||
|
||||
List<WorkManageVo> workManages = workManageService.getWorkManages(evacuateVo.getCompanyId());
|
||||
evacuateVo.setWorkManages(workManages);
|
||||
List<Tool> toolList = toolService.selectToolList(Tool.builder().companyId(evacuateVo.getCompanyId()).valid(1).build());
|
||||
evacuateVo.setTools(toolList);
|
||||
if (StringUtils.isNotEmpty(evacuateVo.getUserQuailfy())) {
|
||||
List<Long> userIds = CommonUtils.convertionToLongList(evacuateVo.getUserQuailfy().split(","));
|
||||
// 查询用户信息
|
||||
List<CompanyUserVo> companyUsers = companyUserService.getCompanyUserVosByIds(userIds);
|
||||
evacuateVo.setCompanyUsers(companyUsers);
|
||||
}
|
||||
List<ProjectEvaluation> projectEvaluations = projectEvaluationService.selectProjectEvaluationList(ProjectEvaluation.builder().companyId(evacuateVo.getCompanyId()).valid(1).build());
|
||||
evacuateVo.setProjectEvaluations(projectEvaluations);
|
||||
return evacuateVo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(EvacuateVo evacuateVo) {
|
||||
if (evacuateVo.getId() == null) {
|
||||
dealEvacuate(evacuateVo, false);
|
||||
} else {
|
||||
dealEvacuate(evacuateVo, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void setCompany(Company company, Long companyId) {
|
||||
// 相关方设为出场
|
||||
Company newCompany = Company.builder().id(companyId).companyStatus(4).isEntry(0).build();
|
||||
if (company.getIsBlack() == 2) {
|
||||
newCompany.setCompanyStatus(3);
|
||||
newCompany.setIsBlack(1);
|
||||
}
|
||||
companyService.updateCompany(newCompany);
|
||||
|
||||
// 企业账号权限设置为空
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserName(company.getUsci());
|
||||
List<SysUser> sysUsers = remoteUserService.selectUserList(sysUser, SecurityConstants.INNER).getData();
|
||||
if (CollectionUtils.isNotEmpty(sysUsers)) {
|
||||
sysUsers.forEach(s -> {
|
||||
s.setRoleIds(null);
|
||||
});
|
||||
remoteUserService.saveUsers(sysUsers, SecurityConstants.INNER);
|
||||
}
|
||||
}
|
||||
|
||||
private void setContract(Company company, Long companyId) {
|
||||
// 合同置为到期终止状态
|
||||
List<Contract> contracts = contractService.selectContractList(Contract.builder().companyId(companyId).valid(1).build());
|
||||
if (CollectionUtils.isNotEmpty(contracts)) {
|
||||
contracts.forEach(s -> {
|
||||
if (company.getIsBlack() == 0) {
|
||||
s.setStatus(3);
|
||||
} else {
|
||||
s.setStatus(2);
|
||||
}
|
||||
});
|
||||
}
|
||||
contractService.batchUpdateContract(contracts);
|
||||
}
|
||||
|
||||
private void setCompanyUsers(Company company, EvacuateVo bizData) {
|
||||
if(CollectionUtils.isEmpty(bizData.getCompanyUsers())) {
|
||||
return;
|
||||
}
|
||||
// 将人员设为出厂
|
||||
bizData.getCompanyUsers().forEach(s -> {
|
||||
s.setIsEntry(0);
|
||||
if (company.getIsBlack() == 0) {
|
||||
s.setUserStatus(4);
|
||||
} else {
|
||||
s.setUserStatus(3);
|
||||
s.setIsBlack(1);
|
||||
}
|
||||
});
|
||||
companyUserService.batchUpdateCompanyUser(CommonUtils.listCopy(bizData.getCompanyUsers(), CompanyUser.class));
|
||||
|
||||
// 拉黑人员
|
||||
List<SysUser> users = new ArrayList<>();
|
||||
List<Long> userIds = bizData.getCompanyUsers().stream().map(BaseEntity::getId).collect(Collectors.toList());
|
||||
userIds.forEach(s -> {
|
||||
SysUser user = new SysUser();
|
||||
user.setUserId(s);
|
||||
user.setRoleIds(null);
|
||||
users.add(user);
|
||||
});
|
||||
remoteUserService.saveUsers(users, SecurityConstants.INNER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recover(SubmitTaskVo submit) {
|
||||
EvacuateVo bizData = JSON.parseObject(submit.getBizData().getData(), EvacuateVo.class);
|
||||
SubmitResInfo resInfo = bpmService.dealProcess(submit);
|
||||
if (resInfo != null ) {
|
||||
if (bizData.getConfirmerId() != null) {
|
||||
// 查询企业信息
|
||||
Company company = companyService.selectCompanyById(bizData.getCompanyId());
|
||||
// 设置企业
|
||||
setCompany(company, bizData.getCompanyId());
|
||||
// 设置合同
|
||||
setContract(company, bizData.getCompanyId());
|
||||
|
||||
// 设置相关方人员
|
||||
setCompanyUsers(company, bizData);
|
||||
|
||||
}
|
||||
evacuateMapper.updateEvacuate(bizData);
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void dealEvacuate(EvacuateVo evacuateVo, boolean isSave) {
|
||||
// 首次存草稿
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
evacuateVo.setId(IdUtils.getInstance().getId());
|
||||
evacuateVo.setDeptId(deptId);
|
||||
evacuateVo.setDeptName(deptName);
|
||||
if (isSave) {
|
||||
evacuateMapper.updateEvacuate(evacuateVo);
|
||||
} else {
|
||||
evacuateMapper.insertEvacuate(evacuateVo);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.RewardPunishRecordMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IRewardPunishRecordBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 奖惩记录Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class RewardPunishRecordBaseServiceImpl implements IRewardPunishRecordBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected RewardPunishRecordMapper rewardPunishRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询奖惩记录
|
||||
*
|
||||
* @param id 奖惩记录主键
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
@Override
|
||||
public RewardPunishRecord selectRewardPunishRecordById(Long id)
|
||||
{
|
||||
return rewardPunishRecordMapper.selectRewardPunishRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
@Override
|
||||
public List<RewardPunishRecord> selectRewardPunishRecordList(RewardPunishRecord rewardPunishRecord)
|
||||
{
|
||||
return rewardPunishRecordMapper.selectRewardPunishRecordList(rewardPunishRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 奖惩记录
|
||||
*/
|
||||
@Override
|
||||
public RewardPunishRecord selectOne(RewardPunishRecord rewardPunishRecord) {
|
||||
return rewardPunishRecordMapper.selectOne(rewardPunishRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询奖惩记录列表
|
||||
*
|
||||
* @param ids 奖惩记录主键列表
|
||||
* @return 奖惩记录集合
|
||||
*/
|
||||
public List<RewardPunishRecord> batchSelectByIds(List<Long> ids) {
|
||||
return rewardPunishRecordMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRewardPunishRecord(RewardPunishRecord rewardPunishRecord)
|
||||
{
|
||||
return rewardPunishRecordMapper.insertRewardPunishRecord(rewardPunishRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertRewardPunishRecord(List<RewardPunishRecord> rewardPunishRecordList)
|
||||
{
|
||||
return rewardPunishRecordMapper.batchInsertRewardPunishRecord(rewardPunishRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRewardPunishRecord(RewardPunishRecord rewardPunishRecord)
|
||||
{
|
||||
return rewardPunishRecordMapper.updateRewardPunishRecord(rewardPunishRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateRewardPunishRecord(List<RewardPunishRecord> rewardPunishRecordList)
|
||||
{
|
||||
return rewardPunishRecordMapper.batchUpdateRewardPunishRecord(rewardPunishRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecord 奖惩记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRewardPunishRecordAll(RewardPunishRecord rewardPunishRecord)
|
||||
{
|
||||
return rewardPunishRecordMapper.updateRewardPunishRecordAll(rewardPunishRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改奖惩记录
|
||||
*
|
||||
* @param rewardPunishRecordList 奖惩记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateRewardPunishRecordAll(List<RewardPunishRecord> rewardPunishRecordList)
|
||||
{
|
||||
return rewardPunishRecordMapper.batchUpdateRewardPunishRecordAll(rewardPunishRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除奖惩记录
|
||||
*
|
||||
* @param ids 需要删除的奖惩记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRewardPunishRecordByIds(List<Long> ids)
|
||||
{
|
||||
return rewardPunishRecordMapper.deleteRewardPunishRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除奖惩记录
|
||||
*
|
||||
* @param ids 需要软删除的奖惩记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidRewardPunishRecordByIds(List<Long> ids)
|
||||
{
|
||||
return rewardPunishRecordMapper.invalidRewardPunishRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除奖惩记录信息
|
||||
*
|
||||
* @param id 奖惩记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRewardPunishRecordById(Long id)
|
||||
{
|
||||
return rewardPunishRecordMapper.deleteRewardPunishRecordById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,131 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.bpm.api.domain.DeduceVo;
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.bpm.api.domain.scheme.DeduceRsp;
|
||||
import com.hbt.bpm.api.domain.task.BizData;
|
||||
import com.hbt.bpm.api.domain.task.CandidateInfo;
|
||||
import com.hbt.bpm.api.domain.task.SubmitResInfo;
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.datascope.annotation.DataScope;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.RewardPunishRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.RewardPunishRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.RewardPunishRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAccidentEventRecordService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IRewardPunishRecordService;
|
||||
import com.hbt.related.parties.biz.bpm.BpmService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 奖惩记录Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class RewardPunishRecordServiceImpl extends RewardPunishRecordBaseServiceImpl implements IRewardPunishRecordService
|
||||
{
|
||||
|
||||
@Resource
|
||||
private BpmService bpmService;
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public List<RewardPunishRecordVo> getList(RewardPunishRecordReq rewardPunishRecordReq) {
|
||||
rewardPunishRecordReq.setValid(1);
|
||||
List<RewardPunishRecordVo> rewardPunishRecordVos = new ArrayList<>();
|
||||
Map<Long, BpmTaskVo> taskMap = bpmService.getTaskMap(rewardPunishRecordReq.getBpmType(), rewardPunishRecordReq.getBpmSchemeCode());
|
||||
if (MapUtils.isEmpty(taskMap)) {
|
||||
return rewardPunishRecordVos;
|
||||
}
|
||||
log.debug("bmpType:{},ids:{}", rewardPunishRecordReq.getBpmType(), taskMap.keySet());
|
||||
rewardPunishRecordVos = rewardPunishRecordMapper.getList(rewardPunishRecordReq, Lists.newArrayList(taskMap.keySet()));
|
||||
// 设置流程信息
|
||||
rewardPunishRecordVos.forEach(s -> s.setTaskInfo(taskMap.get(s.getId())));
|
||||
return rewardPunishRecordVos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(RewardPunishRecordVo rewardPunishRecordVo) {
|
||||
if(rewardPunishRecordVo.getId() != null) {
|
||||
rewardPunishRecordMapper.deleteRewardPunishRecordById(rewardPunishRecordVo.getId());
|
||||
}
|
||||
dealRewardPunishRecord(rewardPunishRecordVo);
|
||||
// 发起流程
|
||||
CandidateInfo candidateInfo = new CandidateInfo();
|
||||
Set<Long> userList = new HashSet<>();
|
||||
userList.add(SecurityUtils.getUserId()); // 设置审批人
|
||||
|
||||
// 推演下一步
|
||||
BizData bizData = new BizData();
|
||||
bizData.setBizId(rewardPunishRecordVo.getId());
|
||||
bizData.setCode("reward_punish_record");
|
||||
bizData.setApplication(rewardPunishRecordVo.getApplication());
|
||||
bizData.setData(JSON.toJSONString(rewardPunishRecordVo));
|
||||
candidateInfo.setUserList(userList);
|
||||
|
||||
SubmitTaskVo submitTaskVo = SubmitTaskVo
|
||||
.builder()
|
||||
.bizData(bizData)
|
||||
.candidateInfos(Collections.singletonList(candidateInfo))
|
||||
.build();
|
||||
bpmService.startProcess(submitTaskVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(RewardPunishRecord rewardPunishRecord) {
|
||||
if (rewardPunishRecord.getId() == null) {
|
||||
dealRewardPunishRecord((RewardPunishRecordVo) rewardPunishRecord);
|
||||
} else {
|
||||
rewardPunishRecordMapper.updateRewardPunishRecord(rewardPunishRecord);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recover(SubmitTaskVo submit) {
|
||||
RewardPunishRecord bizData = JSON.parseObject(submit.getBizData().getData(), RewardPunishRecord.class);
|
||||
SubmitResInfo resInfo = bpmService.dealProcess(submit);
|
||||
if (resInfo != null ) {
|
||||
rewardPunishRecordMapper.updateRewardPunishRecord(bizData);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWeekDate(Long companyId, Date startTime, Date endTime, int type) {
|
||||
return rewardPunishRecordMapper.getWeekDate(companyId, startTime, endTime, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMonthDate(Long companyId, Date startTime, Date endTime, int type) {
|
||||
return rewardPunishRecordMapper.getMonthDate(companyId, startTime, endTime, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getYearDate(Long companyId, Date startTime, Date endTime, int type) {
|
||||
return rewardPunishRecordMapper.getYearDate(companyId, startTime, endTime, type);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void dealRewardPunishRecord(RewardPunishRecordVo rewardPunishRecordVo) {
|
||||
// 首次存草稿
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
rewardPunishRecordVo.setId(IdUtils.getInstance().getId());
|
||||
rewardPunishRecordVo.setDeptId(deptId);
|
||||
rewardPunishRecordVo.setDeptName(deptName);
|
||||
rewardPunishRecordMapper.insertRewardPunishRecord(rewardPunishRecordVo);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalMatter;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.WorkIllegalMatterMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkIllegalMatterBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违规事项Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@Service
|
||||
public class WorkIllegalMatterBaseServiceImpl implements IWorkIllegalMatterBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected WorkIllegalMatterMapper workIllegalMatterMapper;
|
||||
|
||||
/**
|
||||
* 查询违规事项
|
||||
*
|
||||
* @param id 违规事项主键
|
||||
* @return 违规事项
|
||||
*/
|
||||
@Override
|
||||
public WorkIllegalMatter selectWorkIllegalMatterById(Long id)
|
||||
{
|
||||
return workIllegalMatterMapper.selectWorkIllegalMatterById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询违规事项列表
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 违规事项
|
||||
*/
|
||||
@Override
|
||||
public List<WorkIllegalMatter> selectWorkIllegalMatterList(WorkIllegalMatter workIllegalMatter)
|
||||
{
|
||||
return workIllegalMatterMapper.selectWorkIllegalMatterList(workIllegalMatter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 违规事项
|
||||
*/
|
||||
@Override
|
||||
public WorkIllegalMatter selectOne(WorkIllegalMatter workIllegalMatter) {
|
||||
return workIllegalMatterMapper.selectOne(workIllegalMatter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询违规事项列表
|
||||
*
|
||||
* @param ids 违规事项主键列表
|
||||
* @return 违规事项集合
|
||||
*/
|
||||
public List<WorkIllegalMatter> batchSelectByIds(List<Long> ids) {
|
||||
return workIllegalMatterMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWorkIllegalMatter(WorkIllegalMatter workIllegalMatter)
|
||||
{
|
||||
return workIllegalMatterMapper.insertWorkIllegalMatter(workIllegalMatter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertWorkIllegalMatter(List<WorkIllegalMatter> workIllegalMatterList)
|
||||
{
|
||||
return workIllegalMatterMapper.batchInsertWorkIllegalMatter(workIllegalMatterList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkIllegalMatter(WorkIllegalMatter workIllegalMatter)
|
||||
{
|
||||
return workIllegalMatterMapper.updateWorkIllegalMatter(workIllegalMatter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkIllegalMatter(List<WorkIllegalMatter> workIllegalMatterList)
|
||||
{
|
||||
return workIllegalMatterMapper.batchUpdateWorkIllegalMatter(workIllegalMatterList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改违规事项
|
||||
*
|
||||
* @param workIllegalMatter 违规事项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkIllegalMatterAll(WorkIllegalMatter workIllegalMatter)
|
||||
{
|
||||
return workIllegalMatterMapper.updateWorkIllegalMatterAll(workIllegalMatter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改违规事项
|
||||
*
|
||||
* @param workIllegalMatterList 违规事项列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkIllegalMatterAll(List<WorkIllegalMatter> workIllegalMatterList)
|
||||
{
|
||||
return workIllegalMatterMapper.batchUpdateWorkIllegalMatterAll(workIllegalMatterList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除违规事项
|
||||
*
|
||||
* @param ids 需要删除的违规事项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkIllegalMatterByIds(List<Long> ids)
|
||||
{
|
||||
return workIllegalMatterMapper.deleteWorkIllegalMatterByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除违规事项
|
||||
*
|
||||
* @param ids 需要软删除的违规事项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidWorkIllegalMatterByIds(List<Long> ids)
|
||||
{
|
||||
return workIllegalMatterMapper.invalidWorkIllegalMatterByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除违规事项信息
|
||||
*
|
||||
* @param id 违规事项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkIllegalMatterById(Long id)
|
||||
{
|
||||
return workIllegalMatterMapper.deleteWorkIllegalMatterById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkIllegalMatterService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违规事项Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@Service
|
||||
public class WorkIllegalMatterServiceImpl extends WorkIllegalMatterBaseServiceImpl implements IWorkIllegalMatterService
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.WorkIllegalRecordMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkIllegalRecordBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class WorkIllegalRecordBaseServiceImpl implements IWorkIllegalRecordBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected WorkIllegalRecordMapper workIllegalRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记
|
||||
*
|
||||
* @param id 违章违纪登记主键
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
@Override
|
||||
public WorkIllegalRecord selectWorkIllegalRecordById(Long id)
|
||||
{
|
||||
return workIllegalRecordMapper.selectWorkIllegalRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
@Override
|
||||
public List<WorkIllegalRecord> selectWorkIllegalRecordList(WorkIllegalRecord workIllegalRecord)
|
||||
{
|
||||
return workIllegalRecordMapper.selectWorkIllegalRecordList(workIllegalRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 违章违纪登记
|
||||
*/
|
||||
@Override
|
||||
public WorkIllegalRecord selectOne(WorkIllegalRecord workIllegalRecord) {
|
||||
return workIllegalRecordMapper.selectOne(workIllegalRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询违章违纪登记列表
|
||||
*
|
||||
* @param ids 违章违纪登记主键列表
|
||||
* @return 违章违纪登记集合
|
||||
*/
|
||||
public List<WorkIllegalRecord> batchSelectByIds(List<Long> ids) {
|
||||
return workIllegalRecordMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWorkIllegalRecord(WorkIllegalRecord workIllegalRecord)
|
||||
{
|
||||
return workIllegalRecordMapper.insertWorkIllegalRecord(workIllegalRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertWorkIllegalRecord(List<WorkIllegalRecord> workIllegalRecordList)
|
||||
{
|
||||
return workIllegalRecordMapper.batchInsertWorkIllegalRecord(workIllegalRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkIllegalRecord(WorkIllegalRecord workIllegalRecord)
|
||||
{
|
||||
return workIllegalRecordMapper.updateWorkIllegalRecord(workIllegalRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkIllegalRecord(List<WorkIllegalRecord> workIllegalRecordList)
|
||||
{
|
||||
return workIllegalRecordMapper.batchUpdateWorkIllegalRecord(workIllegalRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecord 违章违纪登记
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkIllegalRecordAll(WorkIllegalRecord workIllegalRecord)
|
||||
{
|
||||
return workIllegalRecordMapper.updateWorkIllegalRecordAll(workIllegalRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改违章违纪登记
|
||||
*
|
||||
* @param workIllegalRecordList 违章违纪登记列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkIllegalRecordAll(List<WorkIllegalRecord> workIllegalRecordList)
|
||||
{
|
||||
return workIllegalRecordMapper.batchUpdateWorkIllegalRecordAll(workIllegalRecordList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除违章违纪登记
|
||||
*
|
||||
* @param ids 需要删除的违章违纪登记主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkIllegalRecordByIds(List<Long> ids)
|
||||
{
|
||||
return workIllegalRecordMapper.deleteWorkIllegalRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除违章违纪登记
|
||||
*
|
||||
* @param ids 需要软删除的违章违纪登记主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidWorkIllegalRecordByIds(List<Long> ids)
|
||||
{
|
||||
return workIllegalRecordMapper.invalidWorkIllegalRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除违章违纪登记信息
|
||||
*
|
||||
* @param id 违章违纪登记主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkIllegalRecordById(Long id)
|
||||
{
|
||||
return workIllegalRecordMapper.deleteWorkIllegalRecordById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,145 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.common.utils.CollectionUtils;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.hbt.bpm.api.RemoteBpmService;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.bpm.api.domain.DeduceVo;
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.bpm.api.domain.scheme.DeduceRsp;
|
||||
import com.hbt.bpm.api.domain.task.BizData;
|
||||
import com.hbt.bpm.api.domain.task.CandidateInfo;
|
||||
import com.hbt.bpm.api.domain.task.SubmitResInfo;
|
||||
import com.hbt.common.core.constant.SecurityConstants;
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.datascope.annotation.DataScope;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkIllegalRecord;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkIllegalRecordReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkIllegalRecordVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkIllegalRecordService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanyReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyVo;
|
||||
import com.hbt.related.parties.biz.bpm.BpmService;
|
||||
import com.hbt.related.parties.emun.StatusEnum;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 违章违纪登记Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class WorkIllegalRecordServiceImpl extends WorkIllegalRecordBaseServiceImpl implements IWorkIllegalRecordService
|
||||
{
|
||||
|
||||
@Resource
|
||||
private BpmService bpmService;
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public List<WorkIllegalRecordVo> getList(WorkIllegalRecordReq workIllegalRecordReq) {
|
||||
workIllegalRecordReq.setValid(1);
|
||||
List<WorkIllegalRecordVo> workIllegalRecordVos = new ArrayList<>();
|
||||
Map<Long, BpmTaskVo> taskMap = bpmService.getTaskMap(workIllegalRecordReq.getBpmType(), workIllegalRecordReq.getBpmSchemeCode());
|
||||
if (MapUtils.isEmpty(taskMap)) {
|
||||
return workIllegalRecordVos;
|
||||
}
|
||||
log.debug("bmpType:{},ids:{}", workIllegalRecordReq.getBpmType(), taskMap.keySet());
|
||||
workIllegalRecordVos = workIllegalRecordMapper.getList(workIllegalRecordReq, Lists.newArrayList(taskMap.keySet()));
|
||||
// 设置流程信息
|
||||
workIllegalRecordVos.forEach(s -> s.setTaskInfo(taskMap.get(s.getId())));
|
||||
return workIllegalRecordVos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(WorkIllegalRecordVo workIllegalRecord) {
|
||||
if(workIllegalRecord.getId() != null) {
|
||||
workIllegalRecordMapper.deleteWorkIllegalRecordById(workIllegalRecord.getId());
|
||||
}
|
||||
dealWorkIllegalRecord(workIllegalRecord);
|
||||
// 发起流程
|
||||
CandidateInfo candidateInfo = new CandidateInfo();
|
||||
Set<Long> userList = new HashSet<>();
|
||||
userList.add(SecurityUtils.getUserId()); // 设置审批人
|
||||
|
||||
// 推演下一步
|
||||
BizData bizData = new BizData();
|
||||
bizData.setBizId(workIllegalRecord.getId());
|
||||
bizData.setCode("workIllegal_record");
|
||||
bizData.setApplication(workIllegalRecord.getApplication());
|
||||
bizData.setData(JSON.toJSONString(workIllegalRecord));
|
||||
candidateInfo.setUserList(userList);
|
||||
|
||||
SubmitTaskVo submitTaskVo = SubmitTaskVo
|
||||
.builder()
|
||||
.bizData(bizData)
|
||||
.candidateInfos(Collections.singletonList(candidateInfo))
|
||||
.build();
|
||||
bpmService.startProcess(submitTaskVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorkIllegalRecord getDetail(Long id) {
|
||||
return workIllegalRecordMapper.selectWorkIllegalRecordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(WorkIllegalRecord workIllegalRecord) {
|
||||
if (workIllegalRecord.getId() == null) {
|
||||
dealWorkIllegalRecord(workIllegalRecord);
|
||||
} else {
|
||||
workIllegalRecordMapper.updateWorkIllegalRecord(workIllegalRecord);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recover(SubmitTaskVo submit) {
|
||||
WorkIllegalRecord bizData = JSON.parseObject(submit.getBizData().getData(), WorkIllegalRecord.class);
|
||||
SubmitResInfo resInfo = bpmService.dealProcess(submit);
|
||||
if (resInfo != null ) {
|
||||
workIllegalRecordMapper.updateWorkIllegalRecord(bizData);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(List<Long> ids) {
|
||||
workIllegalRecordMapper.invalidWorkIllegalRecordByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWeekDate(Long companyId, Date startTime, Date endTime) {
|
||||
return workIllegalRecordMapper.getWeekDate(companyId, startTime, endTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMonthDate(Long companyId, Date startTime, Date endTime) {
|
||||
return workIllegalRecordMapper.getMonthDate(companyId, startTime, endTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getYearDate(Long companyId, Date startTime, Date endTime) {
|
||||
return workIllegalRecordMapper.getYearDate(companyId, startTime, endTime);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void dealWorkIllegalRecord(WorkIllegalRecord workIllegalRecord) {
|
||||
// 首次存草稿
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
workIllegalRecord.setId(IdUtils.getInstance().getId());
|
||||
workIllegalRecord.setDeptId(deptId);
|
||||
workIllegalRecord.setDeptName(deptName);
|
||||
workIllegalRecordMapper.insertWorkIllegalRecord(workIllegalRecord);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,176 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.WorkLogMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAcceptInfoService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkLogBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@Service
|
||||
public class WorkLogBaseServiceImpl implements IWorkLogBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected WorkLogMapper workLogMapper;
|
||||
|
||||
/**
|
||||
* 查询施工记录
|
||||
*
|
||||
* @param id 施工记录主键
|
||||
* @return 施工记录
|
||||
*/
|
||||
@Override
|
||||
public WorkLog selectWorkLogById(Long id)
|
||||
{
|
||||
return workLogMapper.selectWorkLogById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工记录列表
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 施工记录
|
||||
*/
|
||||
@Override
|
||||
public List<WorkLog> selectWorkLogList(WorkLog workLog)
|
||||
{
|
||||
return workLogMapper.selectWorkLogList(workLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 施工记录
|
||||
*/
|
||||
@Override
|
||||
public WorkLog selectOne(WorkLog workLog) {
|
||||
return workLogMapper.selectOne(workLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工记录列表
|
||||
*
|
||||
* @param ids 施工记录主键列表
|
||||
* @return 施工记录集合
|
||||
*/
|
||||
public List<WorkLog> batchSelectByIds(List<Long> ids) {
|
||||
return workLogMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWorkLog(WorkLog workLog)
|
||||
{
|
||||
return workLogMapper.insertWorkLog(workLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertWorkLog(List<WorkLog> workLogList)
|
||||
{
|
||||
return workLogMapper.batchInsertWorkLog(workLogList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkLog(WorkLog workLog)
|
||||
{
|
||||
return workLogMapper.updateWorkLog(workLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkLog(List<WorkLog> workLogList)
|
||||
{
|
||||
return workLogMapper.batchUpdateWorkLog(workLogList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改施工记录
|
||||
*
|
||||
* @param workLog 施工记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkLogAll(WorkLog workLog)
|
||||
{
|
||||
return workLogMapper.updateWorkLogAll(workLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改施工记录
|
||||
*
|
||||
* @param workLogList 施工记录列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkLogAll(List<WorkLog> workLogList)
|
||||
{
|
||||
return workLogMapper.batchUpdateWorkLogAll(workLogList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除施工记录
|
||||
*
|
||||
* @param ids 需要删除的施工记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkLogByIds(List<Long> ids)
|
||||
{
|
||||
return workLogMapper.deleteWorkLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除施工记录
|
||||
*
|
||||
* @param ids 需要软删除的施工记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidWorkLogByIds(List<Long> ids)
|
||||
{
|
||||
return workLogMapper.invalidWorkLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除施工记录信息
|
||||
*
|
||||
* @param id 施工记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkLogById(Long id)
|
||||
{
|
||||
return workLogMapper.deleteWorkLogById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.common.datascope.annotation.DataScope;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkLog;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工记录Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-05
|
||||
*/
|
||||
@Service
|
||||
public class WorkLogServiceImpl extends WorkLogBaseServiceImpl implements IWorkLogService
|
||||
{
|
||||
|
||||
@Override
|
||||
public void invalidWorkLogByManageIds(List<Long> ids) {
|
||||
workLogMapper.invalidWorkLogByManageIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public List<WorkLog> getList(WorkLog workLog) {
|
||||
return workLogMapper.selectWorkLogList(workLog);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.WorkManageMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkManageBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class WorkManageBaseServiceImpl implements IWorkManageBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected WorkManageMapper workManageMapper;
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 施工管理
|
||||
*/
|
||||
@Override
|
||||
public WorkManage selectWorkManageById(Long id)
|
||||
{
|
||||
return workManageMapper.selectWorkManageById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
@Override
|
||||
public List<WorkManage> selectWorkManageList(WorkManage workManage)
|
||||
{
|
||||
return workManageMapper.selectWorkManageList(workManage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
@Override
|
||||
public WorkManage selectOne(WorkManage workManage) {
|
||||
return workManageMapper.selectOne(workManage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param ids 施工管理主键列表
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
public List<WorkManage> batchSelectByIds(List<Long> ids) {
|
||||
return workManageMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWorkManage(WorkManage workManage)
|
||||
{
|
||||
return workManageMapper.insertWorkManage(workManage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertWorkManage(List<WorkManage> workManageList)
|
||||
{
|
||||
return workManageMapper.batchInsertWorkManage(workManageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkManage(WorkManage workManage)
|
||||
{
|
||||
return workManageMapper.updateWorkManage(workManage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkManage(List<WorkManage> workManageList)
|
||||
{
|
||||
return workManageMapper.batchUpdateWorkManage(workManageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workManage 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkManageAll(WorkManage workManage)
|
||||
{
|
||||
return workManageMapper.updateWorkManageAll(workManage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workManageList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkManageAll(List<WorkManage> workManageList)
|
||||
{
|
||||
return workManageMapper.batchUpdateWorkManageAll(workManageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除施工管理
|
||||
*
|
||||
* @param ids 需要删除的施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkManageByIds(List<Long> ids)
|
||||
{
|
||||
return workManageMapper.deleteWorkManageByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除施工管理
|
||||
*
|
||||
* @param ids 需要软删除的施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidWorkManageByIds(List<Long> ids)
|
||||
{
|
||||
return workManageMapper.invalidWorkManageByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除施工管理信息
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkManageById(Long id)
|
||||
{
|
||||
return workManageMapper.deleteWorkManageById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,285 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.common.utils.CollectionUtils;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.hbt.bpm.api.domain.BpmTaskVo;
|
||||
import com.hbt.bpm.api.domain.DeduceVo;
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.bpm.api.domain.scheme.DeduceRsp;
|
||||
import com.hbt.bpm.api.domain.task.BizData;
|
||||
import com.hbt.bpm.api.domain.task.CandidateInfo;
|
||||
import com.hbt.bpm.api.domain.task.SubmitResInfo;
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.datascope.annotation.DataScope;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.*;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.req.WorkManageReq;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.EvacuateVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IAcceptInfoService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkLogService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkManageService;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkStopResumeService;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Project;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.PreEntryVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.IProjectService;
|
||||
import com.hbt.related.parties.biz.bpm.BpmService;
|
||||
import com.hbt.related.parties.biz.contractManage.domain.Contract;
|
||||
import com.hbt.related.parties.biz.contractManage.mapper.ContractMapper;
|
||||
import com.hbt.related.parties.constant.CommonConstant;
|
||||
import com.hbt.related.parties.util.CommonUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 施工管理Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class WorkManageServiceImpl extends WorkManageBaseServiceImpl implements IWorkManageService
|
||||
{
|
||||
|
||||
@Resource
|
||||
private BpmService bpmService;
|
||||
|
||||
@Resource
|
||||
private IAcceptInfoService acceptInfoService;
|
||||
|
||||
@Resource
|
||||
private IWorkLogService workLogService;
|
||||
|
||||
@Resource
|
||||
private IWorkStopResumeService workStopResumeService;
|
||||
|
||||
@Resource
|
||||
private ContractMapper contractMapper;
|
||||
|
||||
@Resource
|
||||
private IProjectService projectService;
|
||||
|
||||
@Override
|
||||
public List<WorkManageVo> getWorkManages(Long companyId) {
|
||||
return workManageMapper.getWorkManages(companyId);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public List<WorkManageVo> getList(WorkManageReq workManage) {
|
||||
|
||||
workManage.setValid(1);
|
||||
List<WorkManageVo> workManageVos = new ArrayList<>();
|
||||
Map<Long, BpmTaskVo> taskMap = bpmService.getTaskMap(workManage.getBpmType(), workManage.getBpmSchemeCode());
|
||||
|
||||
if (MapUtils.isEmpty(taskMap)) {
|
||||
return workManageVos;
|
||||
}
|
||||
workManageVos = workManageMapper.getList(workManage, Lists.newArrayList(taskMap.keySet()));
|
||||
|
||||
|
||||
log.debug("bmpType:{},ids:{}", workManage.getBpmType(), taskMap.keySet());
|
||||
//
|
||||
// if (CollectionUtils.isNotEmpty(workManageVos) && workManage.getBpmType() != 5) {
|
||||
// workManageVos = workManageVos.stream().filter(s -> Objects.equals(s.getStatus(), workManage.getBpmType())).collect(Collectors.toList());
|
||||
// }
|
||||
|
||||
// 设置流程信息
|
||||
workManageVos.forEach(s -> s.setTaskInfo(taskMap.get(s.getId())));
|
||||
return workManageVos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(WorkManageVo workManageVo) {
|
||||
if(workManageVo.getId() != null) {
|
||||
workManageMapper.deleteWorkManageById(workManageVo.getId());
|
||||
}
|
||||
dealWorkManage(workManageVo, false);
|
||||
// 发起流程
|
||||
CandidateInfo candidateInfo = new CandidateInfo();
|
||||
Set<Long> userList = new HashSet<>();
|
||||
userList.add(SecurityUtils.getUserId()); // 设置审批人
|
||||
// 推演下一步
|
||||
BizData bizData = new BizData();
|
||||
bizData.setBizId(workManageVo.getId());
|
||||
bizData.setCode("work_manage");
|
||||
bizData.setApplication(workManageVo.getApplication());
|
||||
bizData.setData(JSON.toJSONString(workManageVo));
|
||||
candidateInfo.setUserList(userList);
|
||||
|
||||
SubmitTaskVo submitTaskVo = SubmitTaskVo
|
||||
.builder()
|
||||
.bizData(bizData)
|
||||
.candidateInfos(Collections.singletonList(candidateInfo))
|
||||
.build();
|
||||
bpmService.startProcess(submitTaskVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(WorkManageVo workManageVo) {
|
||||
workManageVo.setStatus(CommonConstant.DRAFT); // 草稿
|
||||
if (workManageVo.getId() == null) {
|
||||
dealWorkManage(workManageVo, true);
|
||||
} else {
|
||||
workManageMapper.updateWorkManage(workManageVo);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorkManageVo getDetail(Long id) {
|
||||
WorkManage workManage = workManageMapper.selectWorkManageById(id);
|
||||
WorkManageVo workManageVo = BeanUtil.copyProperties(workManage, WorkManageVo.class);
|
||||
List<AcceptInfo> acceptInfos = acceptInfoService.selectAcceptInfoList(AcceptInfo.builder().workManageId(id).valid(1).build());
|
||||
List<WorkStopResume> workStopResumes = workStopResumeService.selectWorkStopResumeList(WorkStopResume.builder().workManageId(id).valid(1).build());
|
||||
workManageVo.setAcceptInfos(acceptInfos);
|
||||
workManageVo.setWorkStopResumes(workStopResumes);
|
||||
return workManageVo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recover(SubmitTaskVo submit) {
|
||||
WorkManageVo bizData = JSON.parseObject(submit.getBizData().getData(), WorkManageVo.class);
|
||||
SubmitResInfo resInfo = bpmService.dealProcess(submit);
|
||||
if (resInfo != null) {
|
||||
updateWorkManageStatus(bizData);
|
||||
|
||||
if (CollectionUtils.isNotEmpty(bizData.getAcceptInfos())) {
|
||||
List<AcceptInfo> updateAcceptInfos = bizData.getAcceptInfos().stream().filter(s -> s.getId() != null).collect(Collectors.toList());
|
||||
if (CollectionUtils.isNotEmpty(updateAcceptInfos)) {
|
||||
acceptInfoService.batchUpdateAcceptInfo(updateAcceptInfos);
|
||||
}
|
||||
List<AcceptInfo> addAcceptInfos = bizData.getAcceptInfos().stream().filter(s -> s.getId() == null).collect(Collectors.toList());
|
||||
if (CollectionUtils.isNotEmpty(addAcceptInfos)) {
|
||||
addAcceptInfos.forEach(s -> {
|
||||
s.setWorkManageId(bizData.getId());
|
||||
});
|
||||
acceptInfoService.batchInsertAcceptInfo(addAcceptInfos);
|
||||
}
|
||||
}
|
||||
workManageMapper.updateWorkManage(bizData);
|
||||
|
||||
// 修改项目状态
|
||||
updateProjectStatus(bizData);
|
||||
|
||||
// 修改项目合同状态
|
||||
updateContractStatus(bizData);
|
||||
}
|
||||
}
|
||||
|
||||
private void updateWorkManageStatus(WorkManageVo bizData) {
|
||||
// 修改施工状态
|
||||
if (Objects.equals(bizData.getExamineView(), CommonConstant.AGREE)) {
|
||||
bizData.setStatus(CommonConstant.REVIEW_WORK);
|
||||
}
|
||||
|
||||
// 修改施工状态
|
||||
if (StringUtils.isNotEmpty(bizData.getSafetyBaseConfirm())) {
|
||||
bizData.setStatus(CommonConstant.SAFETY_OF_TECHNICAL);
|
||||
}
|
||||
|
||||
// 修改施工状态
|
||||
if (Objects.equals(bizData.getApproveView(), CommonConstant.AGREE)) {
|
||||
bizData.setStatus(CommonConstant.APPROVE_WORK);
|
||||
}
|
||||
|
||||
// 修改施工状态
|
||||
if (Objects.equals(bizData.getApproveView(), CommonConstant.AGREE)) {
|
||||
bizData.setStatus(CommonConstant.APPROVE_WORK);
|
||||
}
|
||||
|
||||
// 修改施工状态
|
||||
if (Objects.equals(bizData.getWorkEnd(), CommonConstant.BE_COMPLETED)) {
|
||||
bizData.setStatus(CommonConstant.APPLY_ACCEPTANCE);
|
||||
} else {
|
||||
bizData.setStatus(CommonConstant.UNDER_CONSTRUCTION);
|
||||
}
|
||||
|
||||
if (CollectionUtils.isNotEmpty(bizData.getAcceptInfos())) {
|
||||
bizData.setStatus(CommonConstant.COMPLETE_ACCEPTANCE);
|
||||
}
|
||||
|
||||
if (StringUtils.isEmpty(bizData.getAcceptAnnex())) {
|
||||
bizData.setStatus(CommonConstant.COMPLETED);
|
||||
}
|
||||
}
|
||||
|
||||
private void updateContractStatus(WorkManageVo bizData) {
|
||||
List<Contract> contracts = contractMapper.selectContractList(Contract.builder().projectId(bizData.getProjectId()).valid(1).build());
|
||||
if (CollectionUtils.isEmpty(contracts)) {
|
||||
return;
|
||||
}
|
||||
if (Objects.equals(bizData.getStatus(), CommonConstant.STOP_WORK) ||
|
||||
Objects.equals(bizData.getStatus(), CommonConstant.REPEAT_WORK) ||
|
||||
Objects.equals(bizData.getStatus(), CommonConstant.UNDER_CONSTRUCTION) ||
|
||||
Objects.equals(bizData.getStatus(), CommonConstant.APPLY_ACCEPTANCE) ||
|
||||
Objects.equals(bizData.getStatus(), CommonConstant.COMPLETE_ACCEPTANCE)) {
|
||||
contracts.forEach(s -> {
|
||||
// 正常履行
|
||||
s.setStatus(CommonConstant.NORMAL_PERFORMANCE);
|
||||
});
|
||||
|
||||
}
|
||||
if (Objects.equals(bizData.getStatus(), CommonConstant.COMPLETED)) {
|
||||
contracts.forEach(s -> {
|
||||
// 到期终止
|
||||
s.setStatus(CommonConstant.EXPIRATION);
|
||||
});
|
||||
}
|
||||
contractMapper.batchUpdateContract(contracts);
|
||||
}
|
||||
|
||||
|
||||
private void updateProjectStatus(WorkManageVo bizData) {
|
||||
// 开工审批通过
|
||||
if (Objects.equals(bizData.getApproveView(), CommonConstant.AGREE)) {
|
||||
// 修改项目状态为施工中
|
||||
projectService.update(Project.builder().id(bizData.getProjectId()).status(CommonConstant.PROJECT_UNDER_CONSTRUCTION).build());
|
||||
}
|
||||
|
||||
if (Objects.equals(bizData.getWorkEnd(), CommonConstant.BE_COMPLETED)) { // 竣工
|
||||
// 修改项目状态为已完工
|
||||
projectService.update(Project.builder().id(bizData.getProjectId()).status(CommonConstant.PROJECT_FINISH).build());
|
||||
}
|
||||
if (StringUtils.isEmpty(bizData.getAcceptAnnex())) {
|
||||
// 修改项目状态为已验收
|
||||
projectService.update(Project.builder().id(bizData.getProjectId()).status(CommonConstant.PROJECT_ACCEPTANCE).build());
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
@Override
|
||||
public void remove(List<Long> ids) {
|
||||
workManageMapper.invalidWorkManageByIds(ids);
|
||||
// 删除竣工验收
|
||||
acceptInfoService.invalidAcceptInfoByManageIds(ids);
|
||||
// 删除施工记录
|
||||
workLogService.invalidWorkLogByManageIds(ids);
|
||||
// 删除停工复工记录
|
||||
workStopResumeService.invalidWorkStopResumeByManageIds(ids);
|
||||
}
|
||||
|
||||
public void dealWorkManage(WorkManageVo workManageVo, boolean isSave) {
|
||||
// 首次存草稿
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
workManageVo.setId(IdUtils.getInstance().getId());
|
||||
workManageVo.setDeptId(deptId);
|
||||
workManageVo.setDeptName(deptName);
|
||||
if (!isSave) {
|
||||
workManageVo.setStatus(CommonConstant.APPLY_WORK); // 开工申请
|
||||
}
|
||||
workManageMapper.insertWorkManage(workManageVo);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkStopResume;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.WorkStopResumeMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkStopResumeBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 施工管理Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@Service
|
||||
public class WorkStopResumeBaseServiceImpl implements IWorkStopResumeBaseService
|
||||
{
|
||||
@Autowired
|
||||
protected WorkStopResumeMapper workStopResumeMapper;
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 施工管理
|
||||
*/
|
||||
@Override
|
||||
public WorkStopResume selectWorkStopResumeById(Long id)
|
||||
{
|
||||
return workStopResumeMapper.selectWorkStopResumeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
@Override
|
||||
public List<WorkStopResume> selectWorkStopResumeList(WorkStopResume workStopResume)
|
||||
{
|
||||
return workStopResumeMapper.selectWorkStopResumeList(workStopResume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 施工管理
|
||||
*/
|
||||
@Override
|
||||
public WorkStopResume selectOne(WorkStopResume workStopResume) {
|
||||
return workStopResumeMapper.selectOne(workStopResume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询施工管理列表
|
||||
*
|
||||
* @param ids 施工管理主键列表
|
||||
* @return 施工管理集合
|
||||
*/
|
||||
public List<WorkStopResume> batchSelectByIds(List<Long> ids) {
|
||||
return workStopResumeMapper.batchSelectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWorkStopResume(WorkStopResume workStopResume)
|
||||
{
|
||||
return workStopResumeMapper.insertWorkStopResume(workStopResume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量新增施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchInsertWorkStopResume(List<WorkStopResume> workStopResumeList)
|
||||
{
|
||||
return workStopResumeMapper.batchInsertWorkStopResume(workStopResumeList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkStopResume(WorkStopResume workStopResume)
|
||||
{
|
||||
return workStopResumeMapper.updateWorkStopResume(workStopResume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkStopResume(List<WorkStopResume> workStopResumeList)
|
||||
{
|
||||
return workStopResumeMapper.batchUpdateWorkStopResume(workStopResumeList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改施工管理
|
||||
*
|
||||
* @param workStopResume 施工管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWorkStopResumeAll(WorkStopResume workStopResume)
|
||||
{
|
||||
return workStopResumeMapper.updateWorkStopResumeAll(workStopResume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改施工管理
|
||||
*
|
||||
* @param workStopResumeList 施工管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateWorkStopResumeAll(List<WorkStopResume> workStopResumeList)
|
||||
{
|
||||
return workStopResumeMapper.batchUpdateWorkStopResumeAll(workStopResumeList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除施工管理
|
||||
*
|
||||
* @param ids 需要删除的施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkStopResumeByIds(List<Long> ids)
|
||||
{
|
||||
return workStopResumeMapper.deleteWorkStopResumeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除施工管理
|
||||
*
|
||||
* @param ids 需要软删除的施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int invalidWorkStopResumeByIds(List<Long> ids)
|
||||
{
|
||||
return workStopResumeMapper.invalidWorkStopResumeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除施工管理信息
|
||||
*
|
||||
* @param id 施工管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWorkStopResumeById(Long id)
|
||||
{
|
||||
return workStopResumeMapper.deleteWorkStopResumeById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,101 @@
|
|||
package com.hbt.related.parties.biz.afterEnter.service.impl;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.common.utils.CollectionUtils;
|
||||
import com.hbt.bpm.api.domain.DeduceVo;
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.bpm.api.domain.scheme.DeduceRsp;
|
||||
import com.hbt.bpm.api.domain.task.BizData;
|
||||
import com.hbt.bpm.api.domain.task.CandidateInfo;
|
||||
import com.hbt.bpm.api.domain.task.SubmitResInfo;
|
||||
import com.hbt.common.core.utils.uuid.IdUtils;
|
||||
import com.hbt.common.security.utils.SecurityUtils;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.AcceptInfo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.WorkManage;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkManageVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.domain.vo.WorkStopResumeVo;
|
||||
import com.hbt.related.parties.biz.afterEnter.mapper.WorkManageMapper;
|
||||
import com.hbt.related.parties.biz.afterEnter.service.IWorkStopResumeService;
|
||||
import com.hbt.related.parties.biz.bpm.BpmService;
|
||||
import com.hbt.related.parties.constant.CommonConstant;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 施工管理Service业务层处理
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-06-07
|
||||
*/
|
||||
@Service
|
||||
public class WorkStopResumeServiceImpl extends WorkStopResumeBaseServiceImpl implements IWorkStopResumeService
|
||||
{
|
||||
|
||||
@Resource
|
||||
private BpmService bpmService;
|
||||
|
||||
@Resource
|
||||
private WorkManageMapper workManageMapper;
|
||||
|
||||
@Override
|
||||
public void invalidWorkStopResumeByManageIds(List<Long> ids) {
|
||||
workStopResumeMapper.invalidWorkStopResumeByManageIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(WorkStopResumeVo workStopResumeVo) {
|
||||
// 首次存草稿
|
||||
Long deptId = SecurityUtils.getDeptId();
|
||||
String deptName = SecurityUtils.getDeptName();
|
||||
workStopResumeVo.setId(IdUtils.getInstance().getId());
|
||||
workStopResumeVo.setDeptId(deptId);
|
||||
workStopResumeVo.setDeptName(deptName);
|
||||
workStopResumeMapper.insertWorkStopResume(workStopResumeVo);
|
||||
|
||||
// 发起流程
|
||||
CandidateInfo candidateInfo = new CandidateInfo();
|
||||
Set<Long> userList = new HashSet<>();
|
||||
userList.add(SecurityUtils.getUserId()); // 设置审批人
|
||||
// 推演下一步
|
||||
BizData bizData = new BizData();
|
||||
bizData.setBizId(workStopResumeVo.getId());
|
||||
|
||||
if (workStopResumeVo.getType() == 0) {
|
||||
bizData.setCode("work_stop"); // 停工
|
||||
} else {
|
||||
bizData.setCode("work_recover"); // 复工
|
||||
workManageMapper.updateWorkManage(WorkManage.builder().id(workStopResumeVo.getWorkManageId()).status(CommonConstant.REPEAT_WORK).build()); // 复工审批
|
||||
}
|
||||
|
||||
bizData.setApplication(workStopResumeVo.getApplication());
|
||||
bizData.setData(JSON.toJSONString(workStopResumeVo));
|
||||
candidateInfo.setUserList(userList);
|
||||
|
||||
SubmitTaskVo submitTaskVo = SubmitTaskVo
|
||||
.builder()
|
||||
.bizData(bizData)
|
||||
.candidateInfos(Collections.singletonList(candidateInfo))
|
||||
.build();
|
||||
bpmService.startProcess(submitTaskVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recover(SubmitTaskVo submit) {
|
||||
WorkStopResumeVo bizData = JSON.parseObject(submit.getBizData().getData(), WorkStopResumeVo.class);
|
||||
SubmitResInfo resInfo = bpmService.dealProcess(submit);
|
||||
if (resInfo != null) {
|
||||
if (bizData.getType() == 0 && bizData.getApproveView() == 1) {
|
||||
// 停工且通过了,修改施工状态
|
||||
workManageMapper.updateWorkManage(WorkManage.builder().id(bizData.getWorkManageId()).status(CommonConstant.STOP_WORK).build());
|
||||
}
|
||||
if (bizData.getType() == 1 && bizData.getApproveView() == 1) {
|
||||
// 复工且通过了,修改施工状态
|
||||
workManageMapper.updateWorkManage(WorkManage.builder().id(bizData.getWorkManageId()).status(CommonConstant.UNDER_CONSTRUCTION).build());
|
||||
}
|
||||
workStopResumeMapper.updateWorkStopResume(bizData);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanyReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanySubmit;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ICompanyService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 相关方Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/company")
|
||||
@Api(tags = "system-company-controller", description = "相关方")
|
||||
public class CompanyController {
|
||||
|
||||
@Autowired
|
||||
private ICompanyService companyService;
|
||||
|
||||
/**
|
||||
* 查询相关方信息登记申请列表
|
||||
*/
|
||||
@ApiOperation("查询相关方信息登记申请列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<CompanyVo> getList(CompanyReq company) {
|
||||
return companyService.getList(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增相关方信息
|
||||
*/
|
||||
@ApiOperation("新增相关方信息")
|
||||
@Log(title = "新增相关方信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增相关方信息", required = true) @NotNull @Validated({Insert.class}) @RequestBody CompanyReq company)
|
||||
{
|
||||
companyService.add(company);
|
||||
}
|
||||
|
||||
@ApiOperation("获取相关方信息")
|
||||
@GetMapping("/detail")
|
||||
public CompanyReq getDetail(@RequestParam("id") Long id) {
|
||||
return companyService.getDetail(id);
|
||||
}
|
||||
|
||||
// @ApiOperation("修改相关方信息")
|
||||
// @PutMapping
|
||||
// public void update(@RequestBody CompanyReq company) {
|
||||
// companyService.update(company);
|
||||
// }
|
||||
|
||||
@ApiOperation("保存草稿")
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody CompanyReq company) {
|
||||
companyService.save(company);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("审核相关方信息登记申请")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
companyService.recover(submit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除相关方信息
|
||||
*/
|
||||
@ApiOperation("删除相关方信息")
|
||||
@Log(title = "删除相关方信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
companyService.remove(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询已入场相关方单位
|
||||
*/
|
||||
@ApiOperation("查询已入场相关方单位")
|
||||
@GetMapping("/getEntryCompany")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<CompanyVo> getEntryCompany(Company company) {
|
||||
return companyService.getEntryCompany(company);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询相关方企业档案列表
|
||||
*/
|
||||
@ApiOperation("查询相关方企业档案列表")
|
||||
@GetMapping("/getCompanyList")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<CompanyVo> getCompanyList(Company company) {
|
||||
return companyService.getCompanyList(company);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanyReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyUserVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ICompanyUserService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 人员信息Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/company/user")
|
||||
@Api(tags = "system-user-controller", description = "人员信息")
|
||||
public class CompanyUserController {
|
||||
|
||||
|
||||
@Resource
|
||||
private ICompanyUserService companyUserService;
|
||||
|
||||
/**
|
||||
* 查询人员登记信息列表
|
||||
*/
|
||||
@ApiOperation("查询人员登记信息列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<CompanyUserVo> getList(CompanyUser companyUser) {
|
||||
return companyUserService.getList(companyUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员登记信息
|
||||
*/
|
||||
@ApiOperation("新增人员登记信息")
|
||||
@Log(title = "新增人员登记信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增人员登记信息", required = true) @NotNull @Validated({Insert.class}) @RequestBody CompanyUserVo companyUser) {
|
||||
companyUserService.add(companyUser);
|
||||
}
|
||||
|
||||
@ApiOperation("获取人员登记信息")
|
||||
@GetMapping("/detail")
|
||||
public CompanyUserVo getDetail(@RequestParam("id") Long id) {
|
||||
return companyUserService.getDetail(id);
|
||||
}
|
||||
|
||||
@ApiOperation("修改人员登记信息")
|
||||
@PutMapping
|
||||
public void update(@RequestBody CompanyUserVo companyUser) {
|
||||
companyUserService.update(companyUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除人员登记信息
|
||||
*/
|
||||
@ApiOperation("删除人员登记信息")
|
||||
@Log(title = "删除人员登记信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
companyUserService.remove(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询未通过准入申请人员列表
|
||||
*/
|
||||
@ApiOperation("查询未通过准入申请人员列表")
|
||||
@GetMapping("/getCompanyUserList")
|
||||
public List<CompanyUser> getCompanyUserList(Long companyId) {
|
||||
return companyUserService.getCompanyUserList(companyId);
|
||||
}
|
||||
/**
|
||||
* 查询未通过准入申请人员列表
|
||||
*/
|
||||
@ApiOperation("查询已通过准入申请,且未被拉黑,不在厂人员列表")
|
||||
@GetMapping("/getCompanyUsers")
|
||||
public List<CompanyUser> getCompanyUsers(Long companyId) {
|
||||
return companyUserService.getCompanyUsers(companyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询未通过准入申请人员列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询已入厂人员列表")
|
||||
@GetMapping("/getEntryCompanyUsers")
|
||||
public List<CompanyUserVo> getEntryCompanyUsers(@RequestParam(value = "companyId", required = false) Long companyId) {
|
||||
return companyUserService.getEntryCompanyUserVos(companyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 相关方实时在线人员统计
|
||||
*/
|
||||
@ApiOperation("相关方实时在线人员统计")
|
||||
@GetMapping("/getUserMap")
|
||||
public Map<Integer, Integer> getUserMap(@RequestParam(value = "companyId", required = false) Long companyId) {
|
||||
return companyUserService.getUserMap(companyId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.HistoryProject;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.HistoryQuailfy;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.IHistoryProjectService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 历史业绩Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/his/project")
|
||||
@Api(tags = "system-project-controller", description = "历史业绩")
|
||||
public class HistoryProjectController {
|
||||
|
||||
@Resource
|
||||
private IHistoryProjectService historyProjectService;
|
||||
|
||||
/**
|
||||
* 根据项目业绩列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询项目业绩列表--不分页")
|
||||
@GetMapping("/getProjectList")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<HistoryProject> getProjectList(@RequestParam("companyId") Long companyId) {
|
||||
return historyProjectService.getProjectList(companyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据项目业绩列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询已通过项目业绩列表--不分页")
|
||||
@GetMapping("/getProjects")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<HistoryProject> getProjects(@RequestParam("companyId") Long companyId) {
|
||||
return historyProjectService.getProjects(companyId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Company;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.HistoryQuailfy;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.IHistoryQuailfyService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 历史资质Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/quailfy")
|
||||
@Api(tags = "system-quailfy-controller", description = "历史资质")
|
||||
public class HistoryQuailfyController {
|
||||
|
||||
@Resource
|
||||
private IHistoryQuailfyService historyQuailfyService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询相关方信息登记申请列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询资质列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<HistoryQuailfy> getList(@RequestParam("companyId") Long companyId) {
|
||||
return historyQuailfyService.getList(companyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询相关方信息登记申请列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询资质列表--不分页")
|
||||
@GetMapping("/getQuailfyList")
|
||||
public List<HistoryQuailfy> getQuailfyList(@RequestParam("companyId") Long companyId) {
|
||||
return historyQuailfyService.getList(companyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询相关方信息登记申请列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询已通过资质列表--不分页")
|
||||
@GetMapping("/getQuailfys")
|
||||
public List<HistoryQuailfy> getQuailfys(@RequestParam("companyId") Long companyId) {
|
||||
return historyQuailfyService.getQuailfys(companyId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.bpm.api.domain.SubmitTaskVo;
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.HistoryQuailfy;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.PreEntry;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanyReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.PreEntryReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyUserVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.PreEntryListVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.PreEntryVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.IPreEntryService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 准入申请Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/preEntry")
|
||||
@Api(tags = "system-entry-controller", description = "准入申请")
|
||||
public class PreEntryController {
|
||||
|
||||
@Resource
|
||||
private IPreEntryService preEntryService;
|
||||
|
||||
/**
|
||||
* 查询相关方准入列表
|
||||
*/
|
||||
@ApiOperation("查询相关方准入列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<PreEntryVo> getList(PreEntryReq preEntry) {
|
||||
return preEntryService.getList(preEntry);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增相关方准入
|
||||
*/
|
||||
@ApiOperation("新增相关方准入")
|
||||
@Log(title = "新增相关方准入", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增相关方准入", required = true) @NotNull @Validated({Insert.class}) @RequestBody PreEntryVo preEntryVo) {
|
||||
preEntryService.add(preEntryVo);
|
||||
}
|
||||
|
||||
@ApiOperation("获取准入信息")
|
||||
@GetMapping("/detail")
|
||||
public PreEntryVo getDetail(@RequestParam("id") Long id) {
|
||||
return preEntryService.getDetail(id);
|
||||
}
|
||||
|
||||
@ApiOperation("保存草稿")
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody PreEntryVo preEntryVo) {
|
||||
preEntryService.save(preEntryVo);
|
||||
}
|
||||
|
||||
@ApiOperation("审核相关方准入申请")
|
||||
@PostMapping("/recover")
|
||||
public void submit(@RequestBody SubmitTaskVo submit) {
|
||||
preEntryService.recover(submit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除相关方准入
|
||||
*/
|
||||
@ApiOperation("删除相关方准入")
|
||||
@Log(title = "删除相关方准入", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
preEntryService.remove(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询相关方准入列表
|
||||
*/
|
||||
@ApiOperation("查询相关方准入列表")
|
||||
@GetMapping("/getPreEntryList")
|
||||
public PreEntryListVo getPreEntryList(@RequestParam("companyId") Long companyId, @RequestParam("projectId") Long projectId) {
|
||||
return preEntryService.getPreEntryList(companyId, projectId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.CompanyUser;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.HistoryQuailfy;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.Project;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.CompanyUserVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.ProjectVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.IProjectService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目信息Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/project")
|
||||
@Api(tags = "system-project-controller", description = "项目信息")
|
||||
public class ProjectController {
|
||||
|
||||
@Resource
|
||||
private IProjectService projectService;
|
||||
|
||||
/**
|
||||
* 查询项目信息列表
|
||||
*/
|
||||
@ApiOperation("查询项目信息列表")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<Project> getList(Project project) {
|
||||
return projectService.getList(project);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增项目信息
|
||||
*/
|
||||
@ApiOperation("新增项目信息")
|
||||
@Log(title = "新增项目信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public void add(@ApiParam(value = "新增项目信息", required = true) @NotNull @Validated({Insert.class}) @RequestBody Project project) {
|
||||
projectService.add(project);
|
||||
}
|
||||
|
||||
@ApiOperation("获取项目信息")
|
||||
@GetMapping("/detail")
|
||||
public ProjectVo getDetail(@RequestParam("id") Long id) {
|
||||
return projectService.getDetail(id);
|
||||
}
|
||||
|
||||
@ApiOperation("修改项目信息")
|
||||
@PutMapping
|
||||
public void update(@RequestBody Project project) {
|
||||
projectService.update(project);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除项目信息
|
||||
*/
|
||||
@ApiOperation("删除项目信息")
|
||||
@Log(title = "删除项目信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
projectService.remove(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据企业id查询项目列表
|
||||
*/
|
||||
@ApiOperation("根据企业id查询项目列表--不分页")
|
||||
@GetMapping("/getProjects")
|
||||
public List<Project> getProjects(@RequestParam("companyId") Long companyId) {
|
||||
return projectService.getProjects(companyId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
package com.hbt.related.parties.biz.beforeEnter.controller;
|
||||
|
||||
import com.hbt.common.core.annotation.WrapResp;
|
||||
import com.hbt.common.log.annotation.Log;
|
||||
import com.hbt.common.log.enums.BusinessType;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.SafetyBaseConfirm;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.CompanyReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.PreEntryReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.req.SafetyBaseConfirmReq;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.PreEntryVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.domain.vo.SafetyBaseVo;
|
||||
import com.hbt.related.parties.biz.beforeEnter.service.ISafetyBaseConfirmService;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.Entry;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.req.EntryReq;
|
||||
import com.hbt.related.parties.biz.whenEnter.domain.vo.EntryVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 安全生产管理协议Controller
|
||||
*
|
||||
* @author hbt
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/confirm")
|
||||
@Api(tags = "system-confirm-controller", description = "安全生产管理协议")
|
||||
public class SafetyBaseConfirmController {
|
||||
|
||||
@Resource
|
||||
private ISafetyBaseConfirmService safetyBaseConfirmService;
|
||||
|
||||
/**
|
||||
* 安全生产管理协议列表
|
||||
*/
|
||||
@ApiOperation("安全生产管理协议")
|
||||
@GetMapping("/list")
|
||||
@WrapResp(autoWrapPage = true)
|
||||
public List<SafetyBaseVo> getList(SafetyBaseConfirmReq safetyBaseConfirm) {
|
||||
return safetyBaseConfirmService.getList(safetyBaseConfirm);
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PostMapping("/update")
|
||||
public void update(@RequestBody SafetyBaseConfirm safetyBaseConfirm) {
|
||||
safetyBaseConfirmService.updateSafetyBaseConfirm(safetyBaseConfirm);
|
||||
}
|
||||
|
||||
@ApiOperation("删除安全生产管理协议")
|
||||
@Log(title = "删除安全生产管理协议", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public void remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
safetyBaseConfirmService.invalidSafetyBaseConfirmByIds(ids);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue