#
TQS
2023-01-04 19d106566a98d12a3de3ef7f6816d88c99355ed4
src/main/java/com/zy/core/model/protocol/SteProtocol.java
@@ -4,6 +4,7 @@
import com.core.common.SpringUtils;
import com.zy.asrs.entity.BasSte;
import com.zy.asrs.service.BasSteService;
import com.zy.common.utils.News;
import com.zy.core.enums.SteHisTaskStatusType;
import com.zy.core.enums.SteLocaType;
import com.zy.core.enums.SteStatusType;
@@ -190,6 +191,12 @@
     */
    private Short chargeStatus;
    // 入库取空
    private Boolean inEmpty;
    // 出库取空
    private Boolean outEmpty;
    public void setStatus(Short status){
        this.status = status;
        this.statusType = SteStatusType.get(status);
@@ -255,6 +262,7 @@
                && !isAlarm()
                && this.chargeStatus == 0
                && isEnable()
                && this.getMode()==1
                ;
        if (!res) {
            return res;
@@ -264,7 +272,7 @@
                String chargeLine = SpringUtils.getBean(BasSteService.class).selectById(this.steNo).getChargeLine();
                return charge > Float.parseFloat(chargeLine);
            } catch (Exception e) {
                log.error("fail", e);
                News.error("fail", e);
                return false;
            }
        }