|
|
@@ -324,7 +324,7 @@ public class CommonScript extends BaseScript {
|
|
|
/**
|
|
|
* 获取当前日期时间,按format格式输出
|
|
|
*
|
|
|
- * @param format
|
|
|
+ * @param
|
|
|
* @return
|
|
|
*/
|
|
|
public String getCurDateTime() {
|
|
|
@@ -862,20 +862,19 @@ public class CommonScript extends BaseScript {
|
|
|
* 脚本获取用户的岗位ID 只能用于in 或者 not in 在。。之内和 不在。。之内
|
|
|
* cscript.findPositionId(true/false)
|
|
|
*
|
|
|
- * @param isMain
|
|
|
- * 是否主岗位,true:是/false:所有岗位
|
|
|
+ * @param ,true:是/false:所有岗位
|
|
|
* @return List<String>
|
|
|
*/
|
|
|
public List<String> findPositionId() {
|
|
|
List<String> result = new ArrayList<String>();
|
|
|
List<String> ids = findCurrentUserPositionIds(false);
|
|
|
- List<PartyEntity> list = PartyUtil.findPositionId(ids);
|
|
|
+ List<PartyEntityPo> list = PartyUtil.findPositionId(ids);
|
|
|
if (BeanUtils.isEmpty(list)) {
|
|
|
result.add("0"); // 标识不存在数据
|
|
|
return result;
|
|
|
}
|
|
|
- for (PartyEntity partyEntity : list) {
|
|
|
- result.add(partyEntity.getId());
|
|
|
+ for (PartyEntityPo partyEntitypo : list) {
|
|
|
+ result.add(partyEntitypo.getId());
|
|
|
}
|
|
|
return result;
|
|
|
}
|