| | |
| | | import com.walker.infrastructure.utils.DateUtils; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.jdbc.service.BaseServiceImpl; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description 部门管理 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public FinSysTenantDepartment selectByCode(String code) { |
| | | List<FinSysTenantDepartment> select = this.select(QUERY_BY_CODE, new Object[]{code}, new FinSysTenantDepartment()); |
| | | public FinSysTenantDepartment selectByCode(String code, Long id) { |
| | | StringBuilder sql = new StringBuilder(QUERY_BY_CODE); |
| | | ArrayList<Object> param = new ArrayList<>(2); |
| | | param.add(code); |
| | | if (id != null) { |
| | | sql.append(" and id != ?"); |
| | | param.add(id); |
| | | } |
| | | List<FinSysTenantDepartment> select = this.select(sql.toString(), param.toArray(), new FinSysTenantDepartment()); |
| | | if (StringUtils.isEmptyList(select)) { |
| | | return null; |
| | | } else { |