|
|
@ -13,8 +13,11 @@ import com.dsic.gj_erp.mapper.jhgk.DmYdjhMapper;
|
|
|
|
import com.dsic.gj_erp.service.jcsj.DmCbxxpService;
|
|
|
|
import com.dsic.gj_erp.service.jcsj.DmCbxxpService;
|
|
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
|
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
@ -24,6 +27,7 @@ import java.util.stream.Collectors;
|
|
|
|
public class ZyjhService extends ServiceImpl<DmYdjhMapper,DmYdjh> {
|
|
|
|
public class ZyjhService extends ServiceImpl<DmYdjhMapper,DmYdjh> {
|
|
|
|
|
|
|
|
|
|
|
|
private final DmCbxxpService dmCbxxpService;
|
|
|
|
private final DmCbxxpService dmCbxxpService;
|
|
|
|
|
|
|
|
private final RedisTemplate<String,Object> redisTemplate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<Map<String, Object>> gcjd(){
|
|
|
|
public List<Map<String, Object>> gcjd(){
|
|
|
@ -85,4 +89,15 @@ public class ZyjhService extends ServiceImpl<DmYdjhMapper,DmYdjh> {
|
|
|
|
|
|
|
|
|
|
|
|
this.update(wrapper);
|
|
|
|
this.update(wrapper);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final String KEY="gxControl";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Object cacheable(String gx){
|
|
|
|
|
|
|
|
if (gx!=null){
|
|
|
|
|
|
|
|
redisTemplate.opsForValue().set(KEY,gx);
|
|
|
|
|
|
|
|
return gx;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
return redisTemplate.opsForValue().get(KEY);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|