|
|
|
|
@ -42,6 +42,7 @@ import org.springblade.desk.basic.util.IdUtil; |
|
|
|
|
import org.springblade.desk.quality.util.JobExtUtil; |
|
|
|
|
import org.springblade.system.feign.IDictClient; |
|
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
|
import org.springblade.system.pojo.entity.User; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
@ -467,6 +468,10 @@ public class LiquidTankTaskServiceImpl extends BaseServiceImpl<LiquidTankTaskMap |
|
|
|
|
} |
|
|
|
|
// todo:判断条件
|
|
|
|
|
boolean toAccept = true; |
|
|
|
|
R<User> user = userClient.userInfoById(task.getTestUserId()); |
|
|
|
|
if(null == user || null == user.getData() || user.getData().getId() == null){ |
|
|
|
|
toAccept = false; |
|
|
|
|
} |
|
|
|
|
// 状态
|
|
|
|
|
if (toAccept) { |
|
|
|
|
task.setStatus(LiquidTankTaskConst.S_PENDING_ACCEPT); |
|
|
|
|
|