|
|
@ -4,11 +4,15 @@ import com.cloudstore.eccom.result.WeaResultMsg;
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
import com.engine.organization.component.OrganizationWeaTable;
|
|
|
|
import com.engine.organization.component.OrganizationWeaTable;
|
|
|
|
import com.engine.organization.entity.detach.vo.ManagerDetachVO;
|
|
|
|
import com.engine.organization.entity.detach.vo.ManagerDetachVO;
|
|
|
|
|
|
|
|
import com.engine.organization.entity.personnelcard.po.CardAccessPO;
|
|
|
|
|
|
|
|
import com.engine.organization.mapper.personnelcard.CardAccessMapper;
|
|
|
|
import com.engine.organization.service.CardAccessService;
|
|
|
|
import com.engine.organization.service.CardAccessService;
|
|
|
|
import com.engine.organization.util.HasRightUtil;
|
|
|
|
import com.engine.organization.util.HasRightUtil;
|
|
|
|
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Author weaver_cl
|
|
|
|
* @Author weaver_cl
|
|
|
@ -20,6 +24,10 @@ public class CardAccessServiceImpl extends Service implements CardAccessService
|
|
|
|
|
|
|
|
|
|
|
|
private static final String RIGHT_NAME = "CardAccess:All";
|
|
|
|
private static final String RIGHT_NAME = "CardAccess:All";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private CardAccessMapper getCardAccessMapper() {
|
|
|
|
|
|
|
|
return MapperProxyFactory.getProxy(CardAccessMapper.class);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, Object> tablePage() {
|
|
|
|
public Map<String, Object> tablePage() {
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
@ -44,8 +52,35 @@ public class CardAccessServiceImpl extends Service implements CardAccessService
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int save(Map<String, Object> params) {
|
|
|
|
public int save(Map<String, Object> params) {
|
|
|
|
|
|
|
|
int rowNum = Util.getIntValue((String) params.get("rownum"));
|
|
|
|
return 0;
|
|
|
|
List<HashMap<String, Object>> dataList = new ArrayList<>();
|
|
|
|
|
|
|
|
for (int i = 0; i < rowNum; i++) {
|
|
|
|
|
|
|
|
HashMap<String, Object> data = new HashMap<>();
|
|
|
|
|
|
|
|
data.put("id",params.get("id_"+i));
|
|
|
|
|
|
|
|
data.put("status",params.get("status_"+i));
|
|
|
|
|
|
|
|
data.put("allPeople",params.get("all_people_"+i));
|
|
|
|
|
|
|
|
data.put("superior",params.get("superior_"+i));
|
|
|
|
|
|
|
|
data.put("allSuperior",params.get("all_superior_"+i));
|
|
|
|
|
|
|
|
data.put("custom",params.get("custom"+i));
|
|
|
|
|
|
|
|
data.put("updateTime",new Date());
|
|
|
|
|
|
|
|
dataList.add(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return getCardAccessMapper().saveCardAccess(dataList);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public int deleteByIds(Collection<Long> ids) {
|
|
|
|
|
|
|
|
return getCardAccessMapper().deleteByIds(ids);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public int addData(CardAccessPO cardAccessPO) {
|
|
|
|
|
|
|
|
return getCardAccessMapper().insertIgnoreNull(cardAccessPO);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public int updateTabName(String name,Integer id) {
|
|
|
|
|
|
|
|
return getCardAccessMapper().updateTabName(name,id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|