Commit 2b5c73f6ee66601f3386ce43f92acfbb51a10758

Authored by 王富生
1 parent 81e72cd3

增加finishTime

urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/planrate/vo/PlanRateSaveReqVO.java
@@ -29,6 +29,9 @@ public class PlanRateSaveReqVO { @@ -29,6 +29,9 @@ public class PlanRateSaveReqVO {
29 @NotNull(message = "类型:1:养护;2:巡查不能为空") 29 @NotNull(message = "类型:1:养护;2:巡查不能为空")
30 private Integer type; 30 private Integer type;
31 31
  32 + @Schema(description = "公司ID")
  33 + private Long companyId;
  34 +
32 @NotNull@NotNull(message = "频次明细不能为空") 35 @NotNull@NotNull(message = "频次明细不能为空")
33 @Size(min = 1) 36 @Size(min = 1)
34 @Valid 37 @Valid
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/planrate/PlanRateServiceImpl.java
@@ -65,6 +65,9 @@ public class PlanRateServiceImpl implements PlanRateService { @@ -65,6 +65,9 @@ public class PlanRateServiceImpl implements PlanRateService {
65 validatePlanRateExists(createReqVO.getPlanTypeId(), createReqVO.getBusiLine()); 65 validatePlanRateExists(createReqVO.getPlanTypeId(), createReqVO.getBusiLine());
66 LocalDateTime now = LocalDateTime.now(); 66 LocalDateTime now = LocalDateTime.now();
67 Long companyId = SecurityFrameworkUtils.getCompanyId(); 67 Long companyId = SecurityFrameworkUtils.getCompanyId();
  68 + if(createReqVO.getCompanyId() != null){
  69 + companyId = createReqVO.getCompanyId();
  70 + }
68 String userName = SecurityFrameworkUtils.getLoginUserId() + ""; 71 String userName = SecurityFrameworkUtils.getLoginUserId() + "";
69 String rateNo = DateUtil.format(new Date(), "yyyyMMddHHmmssSSS") + RandomUtil.randomInt(1000); 72 String rateNo = DateUtil.format(new Date(), "yyyyMMddHHmmssSSS") + RandomUtil.randomInt(1000);
70 PlanRateDO planRate = new PlanRateDO(); 73 PlanRateDO planRate = new PlanRateDO();
urbanops-module-garden/src/main/resources/mapper/planrate/PlanRateDetailMapper.xml
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 garden_plan_rate a, 20 garden_plan_rate a,
21 garden_plan_rate_detail b 21 garden_plan_rate_detail b
22 WHERE 22 WHERE
23 - a.rate_no=b.rate 23 + a.rate_no=b.rate_no
24 and b.busi_line=#{busiLine} 24 and b.busi_line=#{busiLine}
25 and b.level_id=#{levelId} 25 and b.level_id=#{levelId}
26 and b.plan_type_id=#{planTypeId} 26 and b.plan_type_id=#{planTypeId}