|
|
@@ -206,6 +206,15 @@ public class DeputyOrderDownController {
|
|
|
public void refreshStatus(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
String codeStr = URLDecoder.decode(data, "UTF-8");
|
|
|
List<DeputyOrder> orders = JSONObject.parseArray(codeStr, DeputyOrder.class);
|
|
|
+ if (CollectionUtils.isEmpty(orders)) {
|
|
|
+ for (DeputyOrder order : orders) {
|
|
|
+ DeputyOrder deOrder = deputyOrderDao.findByCodeAnDeputyuu(order.getCode(),
|
|
|
+ SystemSession.getUser().getEnterprise().getUu());
|
|
|
+ deOrder.setDownloadstatus("待下载");
|
|
|
+ deOrder.setEntrystatus("已保存");
|
|
|
+ deputyOrderDao.save(deOrder);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|