|
@@ -120,7 +120,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
Plan plan = planMapper.selectById(report.getPlanId());
|
|
|
if (plan.getPlanType() == 0) {
|
|
|
//普通计划检查产品是否存在
|
|
|
- Product product = productMapper.selectById(report.getProductId());
|
|
|
+ Product product = productMapper.selectById(plan.getProductId());
|
|
|
if (product == null) {
|
|
|
httpRespMsg.setError("产品不存在,无法报工");
|
|
|
return httpRespMsg;
|