Browse Source

增加维护预约信息补丁

fix-sign
汤建军 5 months ago
parent
commit
4abed7afa2
  1. 6
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/feign/IDistributionReservationClient.java
  2. 19
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionReservationClient.java
  3. 13
      blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/DistributionDatarepair.java

6
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/feign/IDistributionReservationClient.java

@ -95,4 +95,10 @@ public interface IDistributionReservationClient {
@GetMapping(TOP+"/getRetentionMa")
String getRetentionMa();
/**
* 维护预约信息
* @param params
* @return
*/
Boolean maintainReservationInfo(String params);
}

19
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionReservationClient.java

@ -17,6 +17,7 @@
package com.logpm.distribution.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.logpm.distribution.dto.DistributionCancelReservationPackageDTO;
import com.logpm.distribution.entity.DistributionReservationEntity;
import com.logpm.distribution.service.IDistributionReservationService;
@ -27,11 +28,13 @@ import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
import java.util.Objects;
/**
* 预约列表 Feign实现类
@ -98,5 +101,21 @@ public class DistributionReservationClient implements IDistributionReservationCl
return reservationService.retentionMa();
}
@Override
@Transactional
public Boolean maintainReservationInfo(String params) {
DistributionReservationEntity one = reservationService.getOne(Wrappers.<DistributionReservationEntity>query().lambda()
.eq(DistributionReservationEntity::getReservationCode, params)
);
if (Objects.isNull(one)){
reservationService.maintenanceReservationInfo(one.getId());
reservationService.maintenanceReservationInfo(one.getId());
return true;
}
return false;
}
}

13
blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/DistributionDatarepair.java

@ -318,4 +318,17 @@ public class DistributionDatarepair {
}
/**
* 推送自提签收信息至工厂
*
* @return
*/
@XxlJob("sendFactorySignforInfo")
public ReturnT<String> maintainReservationInfo(String params) {
// 得到当前仓库所有的签收任务
Boolean b = distributionReservationClient.maintainReservationInfo(params);
return ReturnT.SUCCESS;
}
}

Loading…
Cancel
Save