| | |
| | | |
| | | import com.consum.base.Constants; |
| | | import com.consum.base.pojo.FinSysTenantDepartmentParam; |
| | | import com.consum.base.util.IdUtil; |
| | | import com.consum.model.po.BaseCategory; |
| | | import com.consum.model.po.FinSysTenant; |
| | | import com.consum.base.core.utils.IdUtil; |
| | | import com.consum.model.po.FinSysTenantDepartment; |
| | | import com.consum.model.po.FinSysTenantUser; |
| | | import com.iplatform.model.po.S_user_core; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.DateUtils; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | |
| | | sql.append(" and TENANT_ID =:TENANT_ID "); |
| | | paramts.put("TENANT_ID", tenantId); |
| | | } |
| | | |
| | | return this.get(sql.toString(), paramts, new FinSysTenantDepartment()); |
| | | } |
| | | |
| | |
| | | department.setUpdateBy(currentUser.getUserName()); |
| | | return this.update(department); |
| | | } |
| | | |
| | | /** |
| | | * 根据机构id查询部门 |
| | | * @param agencyId |
| | | * @return |
| | | */ |
| | | public List<FinSysTenantDepartment> getByTenantId(Long agencyId) { |
| | | StringBuilder sql = new StringBuilder("SELECT * FROM fin_sys_tenant_department WHERE 1 = 1 and is_delete = 0 "); |
| | | HashMap<String, Object> paramts = new HashMap<>(); |
| | | |
| | | //机构id |
| | | if (agencyId != null) { |
| | | sql.append(" and TENANT_ID =:TENANT_ID "); |
| | | paramts.put("TENANT_ID", agencyId); |
| | | } |
| | | return this.select(sql.toString(), paramts, new FinSysTenantDepartment()); |
| | | } |
| | | } |