StatusFlowDetailService.java 1.1 KB
package com.huaheng.pc.config.statusFlow.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.huaheng.common.utils.security.ShiroUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.WeakHashMap;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.pc.config.statusFlow.domain.StatusFlowDetail;
import com.huaheng.pc.config.statusFlow.mapper.StatusFlowDetailMapper;
@Service
public class StatusFlowDetailService extends ServiceImpl<StatusFlowDetailMapper, StatusFlowDetail> {

    public List<StatusFlowDetail> queryStatusFlowDetail(String headerCode){
        LambdaQueryWrapper<StatusFlowDetail> lambdaQueryWrapper = Wrappers.lambdaQuery();
        lambdaQueryWrapper.orderByAsc(StatusFlowDetail::getSequence)
                .eq(StatusFlowDetail::getHeaderCode, headerCode)
                .eq(StatusFlowDetail::getWarehouseCode, ShiroUtils.getWarehouseCode());
        return this.list(lambdaQueryWrapper);
    }
}