|
|
@ -33,6 +33,7 @@ import com.elink.esua.epdc.entity.SubPositionCheckInfoEntity; |
|
|
|
import com.elink.esua.epdc.redis.SubPositionCheckInfoRedis; |
|
|
|
import com.elink.esua.epdc.service.SubAuditRecordsLogService; |
|
|
|
import com.elink.esua.epdc.service.SubPositionCheckInfoService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -50,6 +51,7 @@ import java.util.Map; |
|
|
|
* @author qu qu@elink-cn.com |
|
|
|
* @since v1.0.0 2020-12-07 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
public class SubPositionCheckInfoServiceImpl extends BaseServiceImpl<SubPositionCheckInfoDao, SubPositionCheckInfoEntity> implements SubPositionCheckInfoService { |
|
|
|
|
|
|
@ -61,8 +63,18 @@ public class SubPositionCheckInfoServiceImpl extends BaseServiceImpl<SubPosition |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<SubPositionCheckInfoDTO> page(Map<String, Object> params) { |
|
|
|
log.info("1:"+SecurityUser.getUser().getId()); |
|
|
|
log.info("2:"+SecurityUser.getUserId()); |
|
|
|
String userId = SecurityUser.getUser().getId().toString(); |
|
|
|
IPage<SubPositionCheckInfoDTO> page = getPage(params); |
|
|
|
List<SubPositionCheckInfoDTO> list = baseDao.getSubPositionList(params); |
|
|
|
for(SubPositionCheckInfoDTO spc : list){ |
|
|
|
if (StringUtils.isNotBlank(spc.getCreatedBy()) && spc.getCreatedBy().equals(userId) && "1".equals(spc.getStatus())){ |
|
|
|
spc.setDelShow(true); |
|
|
|
}else{ |
|
|
|
spc.setDelShow(false); |
|
|
|
} |
|
|
|
} |
|
|
|
return new PageData<>(list, page.getTotal()); |
|
|
|
} |
|
|
|
|
|
|
|