|
|
@@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.lc.ibps.api.base.constants.StateEnum;
|
|
|
import com.lc.ibps.base.bo.exception.BoBaseException;
|
|
|
+import com.lc.ibps.base.core.util.BeanUtils;
|
|
|
import com.lc.ibps.base.core.util.I18nUtil;
|
|
|
+import com.lc.ibps.base.framework.table.ICommonDao;
|
|
|
import com.lc.ibps.bpmn.provider.BpmInstProvider;
|
|
|
import com.lc.ibps.cloud.entity.APIPageList;
|
|
|
import com.lc.ibps.cloud.entity.APIPageResult;
|
|
|
@@ -52,6 +54,9 @@ public class UpdateDataTableImpl extends GenericProvider implements UpdateDataTa
|
|
|
@Autowired
|
|
|
BpmInstProvider iBpmInstService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ICommonDao<?> commonDao;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public APIResult<Void> upEmployee(String str){
|
|
|
@@ -191,6 +196,18 @@ public class UpdateDataTableImpl extends GenericProvider implements UpdateDataTa
|
|
|
|
|
|
@Override
|
|
|
public List addDataContextTable(String tableName, List<LinkedHashMap> paramWhere) {
|
|
|
+ if ("t_gqswb".equals(tableName) && BeanUtils.isNotEmpty(paramWhere)){
|
|
|
+ Iterator<LinkedHashMap> iterator = paramWhere.iterator();
|
|
|
+ while (iterator.hasNext()) {
|
|
|
+ Map<String,Object> map = commonDao.queryOne("select shi_wu_id_ from t_gqswb where shi_wu_id_ = '"+ iterator.next().get("shi_wu_id_") +"'");
|
|
|
+ if (map != null) {
|
|
|
+ iterator.remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (paramWhere.size()==0){
|
|
|
+ return paramWhere;
|
|
|
+ }
|
|
|
+ }
|
|
|
LinkedList linkedList = serialConfig.addObject(paramWhere);
|
|
|
List<LinkedHashMap> dataWhere = (List<LinkedHashMap>) linkedList.get(0);
|
|
|
List dataCond = (List) linkedList.get(1);
|