package cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.busi.print.method;

import cn.estsh.i3plus.ext.mes.pcn.pojo.util.MesPcnExtConstWords;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @Description 打印数据执行方法
 * @Author: wangjie
 * @CreateDate: 2020/6/22 9:38 AM
 * @Description:
 **/
@Slf4j
@Service
public class SxPrintDispatchService {

    public String getSnWithOutPercent(String sn) {
        return (!StringUtils.isEmpty(sn) && sn.substring(0, 1).equals(MesPcnExtConstWords.PERCENT)) ? sn.substring(1) : sn;
    }

}
