package com.mes.damage.service;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.github.yulichang.base.MPJBaseService;
|
import com.mes.damage.entity.Damage;
|
import com.mes.damage.entity.DamagePrint;
|
import com.mes.opctask.entity.LoadGlassDeviceTaskHistory;
|
import com.mes.pp.entity.ReportingWork;
|
import com.mes.pp.entity.ReportingWorkDetail;
|
import com.mes.utils.Result;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 服务类
|
* </p>
|
*
|
* @author wu
|
* @since 2024-06-13
|
*/
|
public interface DamageService extends MPJBaseService<Damage> {
|
|
Page<Damage> selectDamage(
|
String startTime,
|
String endTime,
|
int type,
|
int status,
|
String workingProcedure,
|
int pageNum, // 新增:动态页码
|
int pageSize // 新增:动态每页条数
|
);
|
|
// List<Damage> selectDamage(String startTime, String endTime, int type, int status, String workingProcedure);
|
|
void submitDamage(List<Damage> damageList);
|
|
Boolean submitReport(Damage damage);
|
|
/**
|
* 按照玻璃id信息自动报工
|
*
|
* @param glassId
|
* @param deviceId
|
* @param workingProcedure
|
* @param remark
|
*/
|
void autoSubmitReport(String glassId, int deviceId, String workingProcedure, String remark, int type);
|
|
/**
|
* 单个破损
|
*
|
* @param damage
|
*/
|
void insertDamage(Damage damage);
|
|
/**
|
* 批量破损
|
*
|
* @param damageList
|
*/
|
void batchInsertDamage(List<Damage> damageList);
|
|
List<DamagePrint> selectDamagePrint(Damage damage);
|
|
List<DamagePrint> selectDamagePrintDetails(Damage damage);
|
|
void deleteByGlassId(String glassId);
|
|
Boolean sendToERP(ReportingWork reportingWork, List<ReportingWorkDetail> reportingWorkDetails, Boolean type);
|
|
List<Damage> queryUnTempByFlowCardId(String flowCardId);
|
}
|