Compare commits

..

No commits in common. "0d29d79af6911433e3a08fb3f49fe083b804b453" and "43f11e5db2d94b01ac1ab46eeeb31d2f4404a163" have entirely different histories.

4 changed files with 1 additions and 18 deletions

View File

@ -157,21 +157,10 @@ public class ModelVersionServiceImpl extends ServiceImpl< ModelVersionMapper,Mo
return R.fail(HttpStatus.SHOW_ERROR_MSG,"该模型加密未完成,请稍后再试");
}
updateModel(modelProduct);
return R.ok(modelVersion.getEncryptionFilePath(),modelVersion.getEncryptionFileName());
}
updateModel(modelProduct);
return R.ok(modelVersion.getFilePath(),modelVersion.getFileName());
}
/**
*
* @param modelProduct
*/
private void updateModel(ModelProduct modelProduct){
modelProduct.setNumbers(modelProduct.getNumbers()+1);
modelMapper.updateById(modelProduct);
}
}

View File

@ -117,8 +117,6 @@ public class SysUserAttentionServiceImpl extends ServiceImpl<SysUserAttentionMap
// 模型下载数
Long modelDownloadNum = modelMapper.sumNumber(userId);
//
// 模型运行次数
Long modelRunNum = modelMapper.sumRunNumber(userId);

View File

@ -76,10 +76,6 @@ public class WorkFlowVersionServiceImpl implements WorkFlowVersionService {
return R.fail(HttpStatus.SHOW_ERROR_MSG,"该文件不允许下载");
}
//更新下载次数
workFlow.setDownloadNumber(workFlow.getDownloadNumber()+1);
workFlowMapper.updateById(workFlow);
return R.ok(workFlowVersion.getFilePath(), workFlowVersion.getFileName());
}
}

View File

@ -25,6 +25,6 @@
</select>
<select id="selectModelLikeById" resultType="com.mcwl.resource.domain.WorkFlowLike">
select * from model_like where user_id = #{userId} and model_id = #{id} and del_flag = 0
select * from model_like where user_id = #{userId} and model_id = #{id}
</select>
</mapper>