fix:十二分制-积分流水
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.cool.store.service.tp;
|
||||
|
||||
import com.cool.store.request.tp.TpScoreJournalQueryRequest;
|
||||
import com.cool.store.vo.tp.TpScoreJournalVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 十二分制-积分流水 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/11/10
|
||||
*/
|
||||
public interface TpScoreJournalService {
|
||||
|
||||
/**
|
||||
* 积分流水分页查询
|
||||
* @param request 积分流水查询Request
|
||||
* @return 积分流水VO列表
|
||||
*/
|
||||
PageInfo<TpScoreJournalVO> getPage(TpScoreJournalQueryRequest request);
|
||||
}
|
||||
@@ -211,6 +211,7 @@ public class TpApplyServiceImpl implements TpApplyService {
|
||||
formDO.setApplyNo(isInsert ? TpHelper.generateAppealNo() : null);
|
||||
formDO.setRuleId(punishFormDO.getRuleId());
|
||||
formDO.setType(TpFormTypeEnum.APPEAL.getType());
|
||||
formDO.setStoreId(punishFormDO.getStoreId());
|
||||
fillRuleFields(formDO);
|
||||
tpApplyFormDAO.insertOrUpdate(formDO);
|
||||
// 第一次提交后添加审批记录
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.cool.store.service.tp.impl;
|
||||
|
||||
import com.cool.store.dao.tp.TpScoreJournalDAO;
|
||||
import com.cool.store.entity.tp.TpScoreJournalDO;
|
||||
import com.cool.store.request.tp.TpScoreJournalQueryRequest;
|
||||
import com.cool.store.service.tp.TpScoreJournalService;
|
||||
import com.cool.store.utils.BeanUtil;
|
||||
import com.cool.store.vo.tp.TpScoreJournalVO;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 十二分制-积分流水 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/11/10
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class TpScoreJournalServiceImpl implements TpScoreJournalService {
|
||||
private final TpScoreJournalDAO tpScoreJournalDAO;
|
||||
|
||||
@Override
|
||||
public PageInfo<TpScoreJournalVO> getPage(TpScoreJournalQueryRequest request) {
|
||||
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||
List<TpScoreJournalDO> list = tpScoreJournalDAO.getList(request);
|
||||
PageInfo<TpScoreJournalDO> page = new PageInfo<>(list);
|
||||
return BeanUtil.toPage(page, TpScoreJournalVO.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user