//保存数据到入库检查表 begin
// if(StringUtils.isNotBlank(vo.getAmount())){
//临时保存按钮--保存 进货检验记录表
vo.setSeq(String.valueOf(i+1));
vo.setBatch_no(batch_no);
IncomingInspectInfoEntity inspectInfoEntity = VoToIncomingInspectInfoEntity(vo);
//品类字段,产品代码字段赋值
inspectInfoEntity.setCategory(restoreDate.getCategory());
inspectInfoEntity.setProduct_code(product_code);
// batchNo serialNo 先根据批次号,编号 查询 如果不存在则新增,存在则更新..存在则更新,cid得设置为Null,因为本来就已经有了.否则update cid又变了
int j = materialInspectionMapper.queryInspectInfoEntityIsExist(vo);
if(j>0){
inspectInfoEntity.setCid(vo.getCid());
materialInspectionMapper.updateInspectInfoEntitySelective(inspectInfoEntity);
}else{
//不存在则新增
materialInspectionMapper.insertInspectInfoEntitySelective(inspectInfoEntity);
}
/*}else{
continue;
}*/
//保存数据到入库检查表 end