任务相关

This commit is contained in:
李玉东 2025-09-19 15:11:47 +08:00
parent de1229fa61
commit de3028c19a
3 changed files with 6 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public class MoveRootTask extends AbtParentTask implements TaskAction {
task.setStartTime(LocalDateTime.now());
task.setFromLat(resourceList.get(0).getLat());
task.setFromLng(resourceList.get(0).getLng());
task.setFrom("general");
task.setFromSource("general");
SpringUtil.getBean(ScenarioTaskServiceImpl.class).save(task);
//增加到房间任务
SupplierTask supplierTask = new SupplierTask(task, roomId);

View File

@ -64,5 +64,6 @@ public class ScenarioTask implements Serializable {
private String supplierResourceId;
@TableField(value = "supplier_num")
private double supplierNum;
private String from;
@TableField(value="from_source")
private String fromSource;
}

View File

@ -30,6 +30,7 @@ import java.util.stream.Collectors;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -49,6 +50,7 @@ import org.springframework.web.bind.annotation.RestController;
@Validated
@RestController
@Api(value = "登录管理", tags = {"认证管理-登录"})
@Slf4j
public class UserLoginController {
@Autowired
@ -161,6 +163,7 @@ public class UserLoginController {
throw new BusinessException(500, "客户端编码为空");
}
String capText = captchaProducer.createText();
log.info("capText::{}",capText);
try {
Object o = redisUtil.get(clientCode);
if (o != null) {