Commit 6052b377 authored by 周健威's avatar 周健威

添加绿美阳西信息产品接口

parent 5922d8f0
...@@ -16,6 +16,9 @@ public class CommonConfig { ...@@ -16,6 +16,9 @@ public class CommonConfig {
@Value("${spring.servlet.multipart.max-file-size}") @Value("${spring.servlet.multipart.max-file-size}")
private String maxRequestSize; private String maxRequestSize;
@Value("${spring.servlet.multipart.location}")
private String location;
@Bean @Bean
public MultipartConfigElement multipartConfigElement() { public MultipartConfigElement multipartConfigElement() {
MultipartConfigFactory factory = new MultipartConfigFactory(); MultipartConfigFactory factory = new MultipartConfigFactory();
...@@ -23,6 +26,7 @@ public class CommonConfig { ...@@ -23,6 +26,7 @@ public class CommonConfig {
factory.setMaxFileSize(maxFileSize); factory.setMaxFileSize(maxFileSize);
// 总上传数据大小 // 总上传数据大小
factory.setMaxRequestSize(maxRequestSize); factory.setMaxRequestSize(maxRequestSize);
factory.setLocation(location);
return factory.createMultipartConfig(); return factory.createMultipartConfig();
} }
......
...@@ -18,6 +18,8 @@ import lombok.Data; ...@@ -18,6 +18,8 @@ import lombok.Data;
@Table(name = "lmyxmonitorimage") @Table(name = "lmyxmonitorimage")
public class Lmyxmonitorimage implements Serializable { public class Lmyxmonitorimage implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public static final int STATE_UP = 1;
/** /**
* *
......
...@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.*; ...@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_FALSE;
@RestController @RestController
@RequestMapping("lmyxmonitorimage/web") @RequestMapping("lmyxmonitorimage/web")
public class LmyxmonitorimageController extends BaseController<LmyxmonitorimageBiz,Lmyxmonitorimage> { public class LmyxmonitorimageController extends BaseController<LmyxmonitorimageBiz,Lmyxmonitorimage> {
...@@ -29,6 +31,8 @@ public class LmyxmonitorimageController extends BaseController<LmyxmonitorimageB ...@@ -29,6 +31,8 @@ public class LmyxmonitorimageController extends BaseController<LmyxmonitorimageB
@ResponseBody @ResponseBody
public ObjectRestResponse<List<Lmyxmonitorimage>> logicList(Lmyxmonitorimage entity){ public ObjectRestResponse<List<Lmyxmonitorimage>> logicList(Lmyxmonitorimage entity){
//查询列表数据 //查询列表数据
entity.setIsDel(SYS_FALSE);
entity.setState(Lmyxmonitorimage.STATE_UP);
return ObjectRestResponse.succ(baseBiz.selectList(entity)); return ObjectRestResponse.succ(baseBiz.selectList(entity));
} }
} }
\ No newline at end of file
...@@ -49,7 +49,7 @@ public class GainDataTask { ...@@ -49,7 +49,7 @@ public class GainDataTask {
//@Scheduled(cron = "0/30 * * * * ?") //@Scheduled(cron = "0/30 * * * * ?")
//或直接指定时间间隔,例如:5秒 //或直接指定时间间隔,例如:5秒
//@Scheduled(fixedRate=5000) //@Scheduled(fixedRate=5000)
@Scheduled(cron = "0 * * * * ? ") //@Scheduled(cron = "0 * * * * ? ")
public void configureTasks() { public void configureTasks() {
// //
List<GainData> list = gainDataBiz.selectByWeekend(w -> { List<GainData> list = gainDataBiz.selectByWeekend(w -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment