|
|
@ -7,10 +7,15 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.dto.IcMessageDTO; |
|
|
|
import com.epmet.dto.form.IcMessageListFormDTO; |
|
|
|
import com.epmet.modules.partyOrg.dao.IcPartyActSignInRecordDao; |
|
|
|
import com.epmet.modules.partyOrg.entity.IcPartyActSignInRecordEntity; |
|
|
|
import com.epmet.modules.partyOrg.service.IcPartyActSignInRecordService; |
|
|
|
import com.epmet.resi.partymember.dto.IcPartyActSignInRecordDTO; |
|
|
|
import com.epmet.resi.partymember.dto.partyOrg.form.PartyActSignFormDTO; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -28,20 +33,13 @@ import java.util.Map; |
|
|
|
@Service |
|
|
|
public class IcPartyActSignInRecordServiceImpl extends BaseServiceImpl<IcPartyActSignInRecordDao, IcPartyActSignInRecordEntity> implements IcPartyActSignInRecordService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<IcPartyActSignInRecordDTO> page(Map<String, Object> params) { |
|
|
|
IPage<IcPartyActSignInRecordEntity> page = baseDao.selectPage( |
|
|
|
getPage(params, FieldConstant.CREATED_TIME, false), |
|
|
|
getWrapper(params) |
|
|
|
); |
|
|
|
return getPageData(page, IcPartyActSignInRecordDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<IcPartyActSignInRecordDTO> list(Map<String, Object> params) { |
|
|
|
List<IcPartyActSignInRecordEntity> entityList = baseDao.selectList(getWrapper(params)); |
|
|
|
|
|
|
|
return ConvertUtils.sourceToTarget(entityList, IcPartyActSignInRecordDTO.class); |
|
|
|
public PageData<IcPartyActSignInRecordDTO> list(PartyActSignFormDTO formDTO) { |
|
|
|
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.getIsPage()); |
|
|
|
List<IcPartyActSignInRecordDTO> list = baseDao.selectSignList(formDTO.getIcPartyActId()); |
|
|
|
PageInfo<IcPartyActSignInRecordDTO> pageInfo = new PageInfo<>(list); |
|
|
|
return new PageData<>(list, pageInfo.getTotal()); |
|
|
|
} |
|
|
|
|
|
|
|
private QueryWrapper<IcPartyActSignInRecordEntity> getWrapper(Map<String, Object> params){ |
|
|
|