|
|
@@ -443,6 +443,10 @@ public class AddFlihtsPresenter implements HttpHandler.OnResultListener {
|
|
|
o = array.getJSONObject(i);
|
|
|
if (o.containsKey("workdatename") && !StringUtils.isEmpty(o.getString("workdatename"))
|
|
|
&& o.containsKey("em_name") && !StringUtils.isEmpty(o.getString("em_name"))) {
|
|
|
+ String workdatecode = o.getString("workdatecode");
|
|
|
+ if (isUpdate && model != null && !StringUtils.isEmpty(model.getCode()) && !StringUtils.isEmpty(workdatecode) && model.getCode().equals(workdatecode)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
user = new SelectEmUser();
|
|
|
user.setClick(true);
|
|
|
user.setDepart(o.getString("em_defaultorname"));
|
|
|
@@ -468,11 +472,9 @@ public class AddFlihtsPresenter implements HttpHandler.OnResultListener {
|
|
|
ArrayList<SelectEmUser> chche = new ArrayList<>();
|
|
|
for (int i = 0; i < array.size(); i++) {
|
|
|
o = array.getJSONObject(i);
|
|
|
- if (o.containsKey("workdatesname") && !StringUtils.isEmpty(o.getString("workdatesname"))
|
|
|
- && o.containsKey("conflictem_defaultorcode") && !StringUtils.isEmpty(o.getString("conflictem_defaultorcode"))
|
|
|
- ) {
|
|
|
- String workdatecode = o.getString("workdatecode");
|
|
|
- if (isUpdate && model != null && !StringUtils.isEmpty(model.getCode()) && !StringUtils.isEmpty(workdatecode) && model.getCode().equals(workdatecode)) {
|
|
|
+ String workdatecode = OACheckUtil.getJson2Text(o, "workdatescode");
|
|
|
+ if (!StringUtils.isEmpty(workdatecode) && !StringUtils.isEmpty(OACheckUtil.getJson2Text(o, "workdatesname")) && !StringUtils.isEmpty(OACheckUtil.getJson2Text(o, "conflictem_defaultorcode"))) {
|
|
|
+ if (isUpdate && model != null && !StringUtils.isEmpty(model.getCode()) && model.getCode().equals(workdatecode)) {
|
|
|
continue;
|
|
|
}
|
|
|
user = new SelectEmUser();
|
|
|
@@ -483,6 +485,7 @@ public class AddFlihtsPresenter implements HttpHandler.OnResultListener {
|
|
|
user.setWorkName(o.getString("workdatesname"));
|
|
|
user.setImId(0);
|
|
|
chche.add(user);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
iAddFlihtsView.showCollisionDefaultir(chche);
|