|
|
@ -6,6 +6,7 @@ import com.engine.core.impl.Service;
|
|
|
|
import com.engine.organization.entity.TopTab;
|
|
|
|
import com.engine.organization.entity.TopTab;
|
|
|
|
import com.engine.organization.service.GroupService;
|
|
|
|
import com.engine.organization.service.GroupService;
|
|
|
|
import com.engine.organization.util.MenuBtn;
|
|
|
|
import com.engine.organization.util.MenuBtn;
|
|
|
|
|
|
|
|
import com.engine.organization.util.OrganizationAssert;
|
|
|
|
import com.engine.organization.util.OrganizationFormItemUtil;
|
|
|
|
import com.engine.organization.util.OrganizationFormItemUtil;
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
import weaver.general.StringUtil;
|
|
|
|
import weaver.general.StringUtil;
|
|
|
@ -37,7 +38,6 @@ public class GroupServiceImpl extends Service implements GroupService {
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
if (!StringUtil.isEmpty(id)) {
|
|
|
|
if (!StringUtil.isEmpty(id)) {
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
|
|
|
|
|
|
String sql = "select * from HrmCompany where id in(" + id + ")";
|
|
|
|
String sql = "select * from HrmCompany where id in(" + id + ")";
|
|
|
|
rs.executeQuery(sql);
|
|
|
|
rs.executeQuery(sql);
|
|
|
|
rs.executeQuery(sql);
|
|
|
|
rs.executeQuery(sql);
|
|
|
@ -71,6 +71,18 @@ public class GroupServiceImpl extends Service implements GroupService {
|
|
|
|
return apiDatas;
|
|
|
|
return apiDatas;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean updateGroup(Map<String, Object> params) {
|
|
|
|
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
|
|
|
|
OrganizationAssert.notNull(id, "数据有误");
|
|
|
|
|
|
|
|
String companyname = (String) params.get("companyname");
|
|
|
|
|
|
|
|
String companydesc = (String) params.get("companydesc");
|
|
|
|
|
|
|
|
String companyweb = (String) params.get("companyweb");
|
|
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
|
|
return rs.executeUpdate("update HrmCompany set COMPANYNAME = ?,COMPANYDESC=?,COMPANYWEB=? where id = ?", companyname, companydesc, companyweb, id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, Object> getHasRight() {
|
|
|
|
public Map<String, Object> getHasRight() {
|
|
|
|
Map<String, Object> btnDatas = new HashMap<>();
|
|
|
|
Map<String, Object> btnDatas = new HashMap<>();
|
|
|
|