| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.google.gson.Gson;
|
| | |
| | | private JumpDetailV2Service jumpDetailV2Service;
|
| | |
|
| | | @Override
|
| | | public void addZhuShouMsg(MsgCommonDTO dto) throws ConfigException {
|
| | | Config value = configService.getConfig(KEY_ZHUSHOU);
|
| | | public void addZhuShouMsg(MsgCommonDTO dto, SystemEnum systemEnum) throws ConfigException {
|
| | | Config value = configService.getConfig(KEY_ZHUSHOU,systemEnum);
|
| | | if (StringUtil.isNullOrEmpty(dto.getContent()) || StringUtil.isNullOrEmpty(dto.getParams())
|
| | | || dto.getShow() == null)
|
| | | throw new ConfigException(1, "参数不完整");
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public void addGuanXuanMsg(MsgCommonDTO dto) throws ConfigException {
|
| | | Config value = configService.getConfig(KEY_GUANXUAN);
|
| | | public void addGuanXuanMsg(MsgCommonDTO dto, SystemEnum systemEnum) throws ConfigException {
|
| | | Config value = configService.getConfig(KEY_GUANXUAN,systemEnum);
|
| | | if (StringUtil.isNullOrEmpty(dto.getContent()) || StringUtil.isNullOrEmpty(dto.getParams())
|
| | | || dto.getShow() == null)
|
| | | throw new ConfigException(1, "参数不完整");
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public MsgCommonDTO getZhuShouMsg() {
|
| | | Config value = configService.getConfig(KEY_ZHUSHOU);
|
| | | public MsgCommonDTO getZhuShouMsg( SystemEnum systemEnum) {
|
| | | Config value = configService.getConfig(KEY_ZHUSHOU,systemEnum);
|
| | | if (value == null)
|
| | | return null;
|
| | | return new Gson().fromJson(value.getValue(), MsgCommonDTO.class);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public MsgCommonDTO getGuanXuanMsg() {
|
| | | Config value = configService.getConfig(KEY_GUANXUAN);
|
| | | public MsgCommonDTO getGuanXuanMsg( SystemEnum systemEnum) {
|
| | | Config value = configService.getConfig(KEY_GUANXUAN,systemEnum);
|
| | | if (value == null)
|
| | | return null;
|
| | | return new Gson().fromJson(value.getValue(), MsgCommonDTO.class);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void addNotifyMsg(MsgCommonDTO dto) throws ConfigException {
|
| | | Config value = configService.getConfig(KEY_NOTIFY);
|
| | | public void addNotifyMsg(MsgCommonDTO dto, SystemEnum systemEnum) throws ConfigException {
|
| | | Config value = configService.getConfig(KEY_NOTIFY,systemEnum);
|
| | | if (StringUtil.isNullOrEmpty(dto.getContent()) || StringUtil.isNullOrEmpty(dto.getParams())
|
| | | || dto.getShow() == null)
|
| | | throw new ConfigException(1, "参数不完整");
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public MsgCommonDTO getNotifyMsg() {
|
| | | Config value = configService.getConfig(KEY_NOTIFY);
|
| | | public MsgCommonDTO getNotifyMsg(SystemEnum systemEnum) {
|
| | | Config value = configService.getConfig(KEY_NOTIFY,systemEnum);
|
| | | if (value == null)
|
| | | return null;
|
| | | return new Gson().fromJson(value.getValue(), MsgCommonDTO.class);
|