添加耗材单位
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package cn.ysk.cashier.cons.service.dto;
|
package cn.ysk.cashier.cons.service.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import cn.ysk.cashier.annotation.Query;
|
import cn.ysk.cashier.annotation.Query;
|
||||||
|
|
||||||
@@ -26,4 +28,8 @@ public class TbConsInfoFlowQueryCriteria{
|
|||||||
|
|
||||||
@Query
|
@Query
|
||||||
private String orderNo;
|
private String orderNo;
|
||||||
|
|
||||||
|
|
||||||
|
@Query(type = Query.Type.NOT_EQUAL)
|
||||||
|
private BigDecimal amount;
|
||||||
}
|
}
|
||||||
@@ -18,6 +18,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
@@ -38,6 +39,7 @@ public class TbConsInfoFlowServiceImpl implements TbConsInfoFlowService {
|
|||||||
@Override
|
@Override
|
||||||
public Map<String,Object> queryAll(TbConsInfoFlowQueryCriteria criteria, Pageable pageable){
|
public Map<String,Object> queryAll(TbConsInfoFlowQueryCriteria criteria, Pageable pageable){
|
||||||
|
|
||||||
|
criteria.setAmount(BigDecimal.ZERO);
|
||||||
Sort sort = Sort.by(Sort.Direction.DESC, "id");
|
Sort sort = Sort.by(Sort.Direction.DESC, "id");
|
||||||
pageable = PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), sort);
|
pageable = PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), sort);
|
||||||
Page<TbConsInfoFlow> page = tbConsInfoFlowRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder),pageable);
|
Page<TbConsInfoFlow> page = tbConsInfoFlowRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder),pageable);
|
||||||
|
|||||||
Reference in New Issue
Block a user