| | |
| | | import com.consum.base.core.utils.FinSysTenantUtils; |
| | | import com.consum.base.pojo.FinSysTenantParam; |
| | | import com.consum.base.pojo.FinSysTenantSearchParam; |
| | | import com.consum.base.service.FinSysTenantServiceImpl; |
| | | import com.consum.base.service.FinSysTenantUserServiceImpl; |
| | | import com.consum.base.service.FinSysTenantService; |
| | | import com.consum.base.service.FinSysTenantUserService; |
| | | import com.consum.model.po.FinSysTenant; |
| | | import com.consum.model.po.FinSysTenantUser; |
| | | import com.consum.model.vo.FinSysTenantUserResult; |
| | |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.web.ResponseValue; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | /** |
| | | * @Description 区划 |
| | | * @Description 机构 |
| | | * @Author wh |
| | | * @Date 2023/7/13 19:51 |
| | | */ |
| | | @Api(value = "机构管理", tags = "机构管理") |
| | | @RestController |
| | | @RequestMapping("/pc/fin/sys/tenant") |
| | | public class FinSysTenantController extends BaseController { |
| | | |
| | | private FinSysTenantServiceImpl finSysTenantService; |
| | | private FinSysTenantService finSysTenantService; |
| | | |
| | | @Autowired |
| | | private FinSysTenantUserServiceImpl finSysTenantUserService; |
| | | private FinSysTenantUserService finSysTenantUserService; |
| | | |
| | | @Autowired |
| | | public FinSysTenantController(FinSysTenantServiceImpl finSysTenantService) { |
| | | public FinSysTenantController(FinSysTenantService finSysTenantService) { |
| | | this.finSysTenantService = finSysTenantService; |
| | | } |
| | | |
| | |
| | | whStr.append(" and parent_id=:parent_id"); |
| | | paramts.put("parent_id", param.getTenantId()); |
| | | } |
| | | if (param.getName() != null && !param.getName().equals("")) { |
| | | if (StringUtils.isNotEmpty(param.getName())) { |
| | | whStr.append(" and name like:name"); |
| | | paramts.put("name", "%" + param.getName() + "%"); |
| | | } |
| | | if (param.getCode() != null && !param.getCode().equals("")) { |
| | | if (StringUtils.isNotEmpty(param.getCode())) { |
| | | whStr.append(" and code=:code"); |
| | | paramts.put("code", param.getCode()); |
| | | } |
| | |
| | | |
| | | StringBuilder whStr = new StringBuilder("where 1=1 and status = 1 and is_delete = 0 "); |
| | | HashMap parameter = new HashMap<>(); |
| | | if (param.getFirstZmS() != null && !param.getFirstZmS().equals("")) { |
| | | if (StringUtils.isNotEmpty(param.getFirstZmS())) { |
| | | whStr.append(" and name is not null and("); |
| | | String upperCase = param.getFirstZmS().toUpperCase(); |
| | | whStr.append( |