|
@@ -984,16 +984,20 @@ public class TimerServiceImpl implements TimerService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void updateIsSupply(HttpServletRequest request) {
|
|
|
- Map params = request.getParameterMap();
|
|
|
-// log.info("params:{}",params.toString());
|
|
|
-// List<Object> formInstId = Arrays.asList(params.get("formInstId"));
|
|
|
- String[] strings = (String[]) params.get("formInstId");
|
|
|
- log.info("formInstId:{}",strings[0]);
|
|
|
+ public void updateIsSupply(Map data) {
|
|
|
+// Map params = request.getParameterMap();
|
|
|
+// String[] strings = (String[]) params.get("formInstId");
|
|
|
+ String formInstId = data.get("formInstId").toString();
|
|
|
+ log.info("formInstId:{}",formInstId);
|
|
|
+ try {
|
|
|
+ Thread.sleep(2000);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
ydClient.operateData(YDParam.builder()
|
|
|
.appType("APP_ERBDTFS82HOVBPL3NFH0")
|
|
|
.systemToken("RRB66F91T97H1WN89QZYC47PKLZO2ZQOUMOQLP")
|
|
|
- .formInstanceId(strings[0])
|
|
|
+ .formInstanceId(formInstId)
|
|
|
.updateFormDataJson(JSON.toJSONString(UtilMap.map("radioField_m38dy26d","是")))
|
|
|
.build(), YDConf.FORM_OPERATION.update);
|
|
|
}
|