| | |
| | | import com.gkhy.exam.common.api.CommonPage; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.exception.ApiException; |
| | | import com.gkhy.exam.common.utils.PageUtils; |
| | | import com.gkhy.exam.common.utils.SecurityUtils; |
| | | import com.gkhy.exam.system.domain.QualitySystemPlan; |
| | | import com.gkhy.exam.system.domain.QualitySystemPlanMess; |
| | |
| | | throw new ApiException("非管理员操作,企业id不可为空"); |
| | | } |
| | | } |
| | | PageUtils.startPage(); |
| | | List<QualitySystemPlan> qualitySystemPlans = qualitySystemPlanMapper.selectSystemPlanList(qualitySystemPlan); |
| | | for (QualitySystemPlan systemPlan : qualitySystemPlans) { |
| | | List<QualitySystemPlanMess> qualitySystemPlanMesses = qualitySystemPlanMessMapper.selectByPlanId(systemPlan.getId()); |
| | |
| | | qualitySystemPlanMapper.updateById(qualitySystemPlan); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @Override |
| | | public CommonResult listQualitySystemPlanByid(Integer planId) { |
| | | QualitySystemPlan qualitySystemPlan = qualitySystemPlanMapper.selectListById(planId); |
| | | List<QualitySystemPlanMess> qualitySystemPlanMesses = qualitySystemPlanMessMapper.selectByPlanId(planId); |
| | | qualitySystemPlan.setPlanMesses(qualitySystemPlanMesses); |
| | | return CommonResult.success(qualitySystemPlan); |
| | | } |
| | | } |