| | |
| | | import com.gkhy.exam.common.utils.SecurityUtils; |
| | | import com.gkhy.exam.system.domain.*; |
| | | import com.gkhy.exam.system.mapper.*; |
| | | import com.gkhy.exam.system.service.CompanyIndustryTemplateService; |
| | | import com.gkhy.exam.system.service.ISysDeptService; |
| | | import com.gkhy.exam.system.service.StandardizedTemplateService; |
| | | import com.gkhy.exam.system.service.SysCompanyService; |
| | | import com.gkhy.exam.system.service.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | private CompanySummaryMapper companySummaryMapper; |
| | | @Autowired |
| | | private CompanyQualityPolicyMapper companyQualityPolicyMapper; |
| | | |
| | | @Autowired |
| | | private CustomerService customerService; |
| | | @Override |
| | | public CommonPage selectStandardizedTemplateList(Integer companyId, Integer templateType) { |
| | | boolean admin = SecurityUtils.adminUser(); |
| | |
| | | standardizedTemplate.setCreateBy(loginUser.getUsername()); |
| | | standardizedTemplate.setCreateTime(LocalDateTime.now()); |
| | | int insert = standardizedTemplateMapper.insert(standardizedTemplate); |
| | | |
| | | if (standardizedTemplate.getTemplateType().equals(4)&&standardizedTemplate.getTemplateName().contains("满意度")){ |
| | | Customer customer = new Customer(); |
| | | customer.setCompanyId(standardizedTemplate.getCompanyId()); |
| | | customer.setFileName(standardizedTemplate.getTemplateName()); |
| | | customer.setFilePath(standardizedTemplate.getFilePath()); |
| | | customerService.insertCustomer(customer); |
| | | } |
| | | |
| | | if (insert>0){ |
| | | return CommonResult.success(); |
| | | } |