k94314517
2025-07-04 50fb58286ed3b718c39a97e0987ee7561a295651
server/service/src/main/java/com/doumee/biz/system/impl/SystemDictBizImpl.java
@@ -1,20 +1,30 @@
package com.doumee.biz.system.impl;
import com.doumee.biz.system.SystemDictBiz;
import com.doumee.config.shiro.ShiroSessionManager;
import com.doumee.core.constants.ResponseStatus;
import com.doumee.core.exception.BusinessException;
import com.doumee.dao.system.model.SystemDict;
import com.doumee.service.system.SystemDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
@Service
public class SystemDictBizImpl implements SystemDictBiz {
    @Value("${cookiename}")
    private String authToken;
    @Autowired
    private SystemDictService systemDictService;
    @Override
    @PostConstruct
    public void initAuthToken( ) {
        ShiroSessionManager.AUTH_TOKEN = authToken;
    }
    @Override
    public Integer create(SystemDict systemDict) {
        SystemDict queryDto = new SystemDict();
        queryDto.setCode(systemDict.getCode());