|
|
|
@ -44,6 +44,7 @@ import com.elink.esua.epdc.modules.item.service.ItemService; |
|
|
|
import com.elink.esua.epdc.modules.item.service.ItemTimeoutService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.data.mongodb.core.MongoTemplate; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
@ -69,6 +70,9 @@ public class ItemController { |
|
|
|
@Autowired |
|
|
|
private ItemAutoProcessRedis itemAutoProcessRedis; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private MongoTemplate mongoTemplate; |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目列表 |
|
|
|
* |
|
|
|
@ -84,6 +88,15 @@ public class ItemController { |
|
|
|
return new Result<PageData<ItemPendingHandleDTO>>().ok(page); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("test/test") |
|
|
|
public Result test() { |
|
|
|
// 保存对象到mongodb
|
|
|
|
ItemPendingHandleDTO user = new ItemPendingHandleDTO(); |
|
|
|
user.setId("1123123"); |
|
|
|
mongoTemplate.save(user); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 初审项目列表 |
|
|
|
* |
|
|
|
|