任务相关
This commit is contained in:
parent
de1229fa61
commit
de3028c19a
|
@ -156,7 +156,7 @@ public class MoveRootTask extends AbtParentTask implements TaskAction {
|
||||||
task.setStartTime(LocalDateTime.now());
|
task.setStartTime(LocalDateTime.now());
|
||||||
task.setFromLat(resourceList.get(0).getLat());
|
task.setFromLat(resourceList.get(0).getLat());
|
||||||
task.setFromLng(resourceList.get(0).getLng());
|
task.setFromLng(resourceList.get(0).getLng());
|
||||||
task.setFrom("general");
|
task.setFromSource("general");
|
||||||
SpringUtil.getBean(ScenarioTaskServiceImpl.class).save(task);
|
SpringUtil.getBean(ScenarioTaskServiceImpl.class).save(task);
|
||||||
//增加到房间任务
|
//增加到房间任务
|
||||||
SupplierTask supplierTask = new SupplierTask(task, roomId);
|
SupplierTask supplierTask = new SupplierTask(task, roomId);
|
||||||
|
|
|
@ -64,5 +64,6 @@ public class ScenarioTask implements Serializable {
|
||||||
private String supplierResourceId;
|
private String supplierResourceId;
|
||||||
@TableField(value = "supplier_num")
|
@TableField(value = "supplier_num")
|
||||||
private double supplierNum;
|
private double supplierNum;
|
||||||
private String from;
|
@TableField(value="from_source")
|
||||||
|
private String fromSource;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ import java.util.stream.Collectors;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -49,6 +50,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
@Validated
|
@Validated
|
||||||
@RestController
|
@RestController
|
||||||
@Api(value = "登录管理", tags = {"认证管理-登录"})
|
@Api(value = "登录管理", tags = {"认证管理-登录"})
|
||||||
|
@Slf4j
|
||||||
public class UserLoginController {
|
public class UserLoginController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -161,6 +163,7 @@ public class UserLoginController {
|
||||||
throw new BusinessException(500, "客户端编码为空");
|
throw new BusinessException(500, "客户端编码为空");
|
||||||
}
|
}
|
||||||
String capText = captchaProducer.createText();
|
String capText = captchaProducer.createText();
|
||||||
|
log.info("capText::{}",capText);
|
||||||
try {
|
try {
|
||||||
Object o = redisUtil.get(clientCode);
|
Object o = redisUtil.get(clientCode);
|
||||||
if (o != null) {
|
if (o != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user