|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
package com.logpm.basic.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.logpm.basic.dto.BasicTenantCodeDTO; |
|
|
|
|
import com.logpm.basic.entity.BasicTenantCodeEntity; |
|
|
|
|
import com.logpm.basic.excel.BasicTenantCodeExcel; |
|
|
|
|
import com.logpm.basic.mapper.BasicTenantCodeMapper; |
|
|
|
@ -25,11 +26,12 @@ import com.logpm.basic.vo.BasicTenantCodeVO;
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.system.feign.IDictBizClient; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
@ -45,6 +47,7 @@ public class BasicTenantCodeServiceImpl extends BaseServiceImpl<BasicTenantCodeM
|
|
|
|
|
|
|
|
|
|
private BasicTenantCodeMapper basicTenantCodeMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<BasicTenantCodeEntity> list(Map<String, Object> basicTenantCode, IPage<BasicTenantCodeEntity> page) { |
|
|
|
|
IPage<BasicTenantCodeEntity> basicTenantCodeEntityIPage = basicTenantCodeMapper.selectTenantCodeList(page,basicTenantCode); |
|
|
|
@ -75,4 +78,14 @@ public class BasicTenantCodeServiceImpl extends BaseServiceImpl<BasicTenantCodeM
|
|
|
|
|
return basicTenantCodeList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean save(BasicTenantCodeEntity entity) { |
|
|
|
|
String code = entity.getCode(); |
|
|
|
|
Integer codeType = entity.getCodeType(); |
|
|
|
|
if (StringUtils.isEmpty(code)){ |
|
|
|
|
code = "DA--00"+codeType; |
|
|
|
|
entity.setCode(code); |
|
|
|
|
} |
|
|
|
|
return super.save(entity); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|