StatusFlowHeaderService.java
1.41 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.aop.aspectj.AspectJPrecedenceInformation;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.pc.config.statusFlow.domain.StatusFlowHeader;
import com.huaheng.pc.config.statusFlow.mapper.StatusFlowHeaderMapper;
import java.util.List;
import java.util.Map;
@Service("StatusFlow")
public class StatusFlowHeaderService extends ServiceImpl<StatusFlowHeaderMapper, StatusFlowHeader> {
public List<Map<String, Object>> flowList(String recordType){
LambdaQueryWrapper<StatusFlowHeader> lambda = Wrappers.lambdaQuery();
lambda.select(StatusFlowHeader::getCode, StatusFlowHeader::getName)
.eq(StatusFlowHeader::getRecordType, recordType);
return this.listMaps(lambda);
}
//根据模块区分出入库流程
public List<StatusFlowHeader> shipmentStatusFlowHeaders(String moduleType){
LambdaQueryWrapper<StatusFlowHeader> lambda = Wrappers.lambdaQuery();
lambda.eq(StatusFlowHeader::getModuleType,moduleType)
.eq(StatusFlowHeader::getWarehouseCode, ShiroUtils.getWarehouseCode());
return this.list(lambda);
}
}