|
|
@ -18,6 +18,7 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springblade.common.constant.RabbitConstant; |
|
|
|
import org.springblade.common.constant.RabbitConstant; |
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate; |
|
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
@ -183,21 +184,25 @@ public class DistributionDatarepair { |
|
|
|
public ReturnT<String> pushNotification(String params) { |
|
|
|
public ReturnT<String> pushNotification(String params) { |
|
|
|
// 得到当前仓库所有的签收任务
|
|
|
|
// 得到当前仓库所有的签收任务
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> allSignfor = warehouseMappingDataMapper.findAllSignfor(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer parmeId = null; |
|
|
|
|
|
|
|
if(StringUtil.isNotBlank(params)){ |
|
|
|
|
|
|
|
parmeId = Integer.parseInt(params); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
List<JSONObject> allSignfor = warehouseMappingDataMapper.findAllSignfor(parmeId); |
|
|
|
for (JSONObject entries : allSignfor) { |
|
|
|
for (JSONObject entries : allSignfor) { |
|
|
|
Long id = entries.getLong("singnforId"); |
|
|
|
Long id = entries.getLong("singnforId"); |
|
|
|
|
|
|
|
|
|
|
|
Boolean b = distributionSignforClient.clerkCheckPushData(id); |
|
|
|
Boolean b = distributionSignforClient.clerkCheckPushData(id); |
|
|
|
if(b){ |
|
|
|
if(b!=null&&b){ |
|
|
|
warehouseMappingDataMapper.updateClearSignforStatus(id, entries.getLong("warehouseId"), 1); |
|
|
|
warehouseMappingDataMapper.updateClearSignforStatus(id, entries.getLong("warehouseId"), 1); |
|
|
|
log.info(">>> 推送成功 {}",id); |
|
|
|
log.info(">>> 推送成功 {}",id); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
log.error(">>> 推送失败 id="+id); |
|
|
|
log.error(">>> 推送失败 id="+id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ReturnT.SUCCESS; |
|
|
|
return ReturnT.SUCCESS; |
|
|
@ -210,7 +215,7 @@ public class DistributionDatarepair { |
|
|
|
// 得到当前仓库所有的签收任务
|
|
|
|
// 得到当前仓库所有的签收任务
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> allSignfor = warehouseMappingDataMapper.findAllSignfor(); |
|
|
|
List<JSONObject> allSignfor = warehouseMappingDataMapper.findAllSignfor(null); |
|
|
|
|
|
|
|
|
|
|
|
for (JSONObject entries : allSignfor) { |
|
|
|
for (JSONObject entries : allSignfor) { |
|
|
|
Long id = entries.getLong("singnforId"); |
|
|
|
Long id = entries.getLong("singnforId"); |
|
|
|