/* * Copyright (c) 2018-2025, ztt All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the pig4cloud.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: ztt */ package com.chinaztt.mes.quality.service; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.extension.service.IService; import com.chinaztt.mes.quality.dto.ApplyDTO; import com.chinaztt.mes.quality.dto.ApplyPartDTO; import com.chinaztt.mes.quality.entity.Apply; import com.chinaztt.ztt.common.core.util.R; import java.util.List; /** * 检测申请表 * * @author cxf * @date 2021-04-01 13:34:45 */ public interface ApplyService extends IService { /** * 通过id删除检测申请表 * * @param id * @return */ boolean deleteById(Long id); /** * 根据库位号查询库存数量查询服务接口 * * @param apply * @return */ JSONObject getStock(Apply apply); /** * 新增检测申请表 * * @param applyDto * @return */ boolean saveDto(ApplyDTO applyDto); /** * 批量新增检测申请零件 * * @param applyPartList * @return */ boolean saveApplyPartList(List applyPartList); }