|
@@ -21,7 +21,6 @@ import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
import static com.xy.utils.Beans.copy;
|
|
import static com.xy.utils.Beans.copy;
|
|
@@ -65,13 +64,6 @@ public class SysDictLogServiceImpl extends ServiceImpl<SysDictLogMapper, SysDict
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public boolean handleLog(SysDictLog sysDictLog, EnumSysDictOperateType operateType) {
|
|
public boolean handleLog(SysDictLog sysDictLog, EnumSysDictOperateType operateType) {
|
|
- // 判断当前环境是否为测试环境
|
|
|
|
- String[] activeProfiles = environment.getActiveProfiles();
|
|
|
|
- log.info("当前环境:{}", activeProfiles);
|
|
|
|
- boolean isTestEnvironment = Arrays.asList(activeProfiles).contains("uat");
|
|
|
|
- if (!isTestEnvironment) {
|
|
|
|
- return false; // 如果不是测试环境,返回false
|
|
|
|
- }
|
|
|
|
sysDictLog.setId(null);
|
|
sysDictLog.setId(null);
|
|
sysDictLog.setIsSync(false);
|
|
sysDictLog.setIsSync(false);
|
|
sysDictLog.setOperateType(operateType.getIntCode());
|
|
sysDictLog.setOperateType(operateType.getIntCode());
|