whywhyo
2023-08-07 94eb7d8c68ab299163b8eb13a1c1df929255377e
zhang-content/src/main/java/com/ruoyi/service/impl/ZYearInfoServiceImpl.java
@@ -17,8 +17,10 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
@@ -37,6 +39,9 @@
    @Autowired
    ZYearInfoServiceImpl zYearInfoService;
    @Resource
    ZYearInfoMapper zYearInfoMapper;
    private LambdaQueryWrapper<ZYearInfo> uniqueCondition(ZYearInfo zYearInfo) {
        LambdaQueryWrapper<ZYearInfo> lqw = new LambdaQueryWrapper<>();
@@ -115,6 +120,12 @@
    }
    @Override
    public AjaxResult listType() {
        List<String> result = zYearInfoMapper.listType();
        return AjaxResult.success(result);
    }
    @Override
    @Transactional
    public AjaxResult importExcel(MultipartFile file) {