| | |
| | | import com.gkhy.exam.common.utils.PageUtils; |
| | | import com.gkhy.exam.common.utils.SecurityUtils; |
| | | import com.gkhy.exam.system.domain.SupplierSure; |
| | | import com.gkhy.exam.system.domain.SupplierSurePerformance; |
| | | import com.gkhy.exam.system.mapper.SupplierSureMapper; |
| | | import com.gkhy.exam.system.mapper.SupplierSurePerformanceMapper; |
| | | import com.gkhy.exam.system.mapper.SupplierSureQualityMapper; |
| | | import com.gkhy.exam.system.service.SupplierSureService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Autowired |
| | | private SupplierSureMapper supplierSureMapper; |
| | | @Autowired |
| | | private SupplierSurePerformanceMapper performanceMapper; |
| | | @Autowired |
| | | private SupplierSureQualityMapper qualityMapper; |
| | | |
| | | @Override |
| | | public CommonPage selectSupplierList(SupplierSure sure) { |
| | |
| | | sure.setCreateTime(LocalDateTime.now()); |
| | | sure.setCreateBy(SecurityUtils.getUsername()); |
| | | supplierSureMapper.insert(sure); |
| | | performanceMapper.savePerformance(sure.getId()); |
| | | qualityMapper.saveQuality(sure.getId()); |
| | | return CommonResult.success(); |
| | | } |
| | | |