|
|
@@ -34,6 +34,8 @@ public class CtfxSchedule {
|
|
|
//冲突分析python方法名标识
|
|
|
@Value("${Fxpj.Xmydsyx.functionId}")
|
|
|
private String xmydsyxFunctionId;
|
|
|
+ @Value("${Fxpj.jsyd.functionId}")
|
|
|
+ private String jsydFunctionId;
|
|
|
private static final Logger log = LoggerFactory.getLogger(CtfxSchedule.class);
|
|
|
|
|
|
@Async("taskExecutor")
|
|
|
@@ -46,8 +48,10 @@ public class CtfxSchedule {
|
|
|
wrapper.orderByAsc("cjsj");
|
|
|
//每次只操作一条记录
|
|
|
List<TCtfxMainDTO> ress = ctfxMapper.selectList(wrapper);
|
|
|
+ log.info(ress.toString());
|
|
|
if (ress.size() > 0) {
|
|
|
TCtfxMainDTO ctfxMainDTO = ress.get(0);
|
|
|
+ log.info(ctfxMainDTO.toString());
|
|
|
String id = ctfxMainDTO.getId();
|
|
|
ctfxMainDTO.setRwzt("1");
|
|
|
ctfxMainDTO.setRwkssj(new Date());
|
|
|
@@ -87,6 +91,11 @@ public class CtfxSchedule {
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("bsm", id);
|
|
|
result = PythonExecute.Run(xmydsyxFunctionId, params);
|
|
|
+ } else if ("7".equals(ctfxMainDTO.getSsmk())) {//建设用地完成情况分析
|
|
|
+ //执行python
|
|
|
+ Map<String, String> params = new HashMap<>();
|
|
|
+ params.put("bsm", id);
|
|
|
+ result = PythonExecute.Run(jsydFunctionId, params);
|
|
|
} else {
|
|
|
//执行python
|
|
|
Map<String, String> params = new HashMap<>();
|