| | |
| | | package com.zbooksoft.gdmis.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.zbooksoft.gdmis.dao.CatYswjxxMapper; |
| | | import com.zbooksoft.gdmis.data.entity.CatYswjxx; |
| | | import com.zbooksoft.gdmis.service.CatYswjxxService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description |
| | |
| | | **/ |
| | | @Service |
| | | public class CatYswjxxServiceImpl extends ServiceImpl<CatYswjxxMapper, CatYswjxx> implements CatYswjxxService { |
| | | @Override |
| | | public String getMaxFileType(Long ajId, String fileType) { |
| | | QueryWrapper<CatYswjxx> catYswjxxQueryWrapper = new QueryWrapper<>(); |
| | | catYswjxxQueryWrapper.eq("aj_id", ajId) |
| | | .eq("wjlx", fileType) |
| | | .select("max(XH) as xh"); |
| | | Map<String, Object> map = this.getMap(catYswjxxQueryWrapper); |
| | | if (map != null) { |
| | | return map.get("xh").toString(); |
| | | } else { |
| | | return "0"; |
| | | } |
| | | } |
| | | } |