mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2024-09-20 15:06:00 +08:00
【数据字典】分类前后台开发完成
This commit is contained in:
parent
179217beef
commit
aa46f42b56
|
@ -9,7 +9,6 @@ import com.github.pagehelper.Page;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.skyeye.common.constans.CommonConstants;
|
import com.skyeye.common.constans.CommonConstants;
|
||||||
import com.skyeye.common.constans.CommonNumConstants;
|
import com.skyeye.common.constans.CommonNumConstants;
|
||||||
import com.skyeye.common.entity.CommonOperatorUserInfo;
|
|
||||||
import com.skyeye.common.object.InputObject;
|
import com.skyeye.common.object.InputObject;
|
||||||
import com.skyeye.common.object.OutputObject;
|
import com.skyeye.common.object.OutputObject;
|
||||||
import com.skyeye.common.util.DataCommonUtil;
|
import com.skyeye.common.util.DataCommonUtil;
|
||||||
|
@ -19,13 +18,14 @@ import com.skyeye.eve.eitity.dict.SysDictTypeMation;
|
||||||
import com.skyeye.eve.eitity.dict.SysDictTypeQueryDO;
|
import com.skyeye.eve.eitity.dict.SysDictTypeQueryDO;
|
||||||
import com.skyeye.eve.service.SysDictTypeService;
|
import com.skyeye.eve.service.SysDictTypeService;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.util.ObjectUtils;
|
import org.springframework.util.ObjectUtils;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName: SysDictTypeServiceImpl
|
* @ClassName: SysDictTypeServiceImpl
|
||||||
|
@ -38,6 +38,8 @@ import java.util.Map;
|
||||||
@Service
|
@Service
|
||||||
public class SysDictTypeServiceImpl implements SysDictTypeService {
|
public class SysDictTypeServiceImpl implements SysDictTypeService {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(SysDictTypeServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysDictTypeDao sysDictTypeDao;
|
private SysDictTypeDao sysDictTypeDao;
|
||||||
|
|
||||||
|
@ -78,10 +80,12 @@ public class SysDictTypeServiceImpl implements SysDictTypeService {
|
||||||
if (ObjectUtils.isEmpty(checkDictTypeMation)) {
|
if (ObjectUtils.isEmpty(checkDictTypeMation)) {
|
||||||
String userId = inputObject.getLogParams().get("id").toString();
|
String userId = inputObject.getLogParams().get("id").toString();
|
||||||
if (StringUtils.isNotEmpty(sysDictTypeMation.getId())) {
|
if (StringUtils.isNotEmpty(sysDictTypeMation.getId())) {
|
||||||
|
LOGGER.info("update data, id is {}", sysDictTypeMation.getId());
|
||||||
DataCommonUtil.setCommonLastUpdateDataByGenericity(sysDictTypeMation, userId);
|
DataCommonUtil.setCommonLastUpdateDataByGenericity(sysDictTypeMation, userId);
|
||||||
sysDictTypeDao.updateById(sysDictTypeMation);
|
sysDictTypeDao.updateById(sysDictTypeMation);
|
||||||
} else {
|
} else {
|
||||||
DataCommonUtil.setCommonDataByGenericity(sysDictTypeMation, userId);
|
DataCommonUtil.setCommonDataByGenericity(sysDictTypeMation, userId);
|
||||||
|
LOGGER.info("insert data, id is {}", sysDictTypeMation.getId());
|
||||||
sysDictTypeDao.insert(sysDictTypeMation);
|
sysDictTypeDao.insert(sysDictTypeMation);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -113,8 +117,8 @@ public class SysDictTypeServiceImpl implements SysDictTypeService {
|
||||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||||
public void deleteDictTypeMationById(InputObject inputObject, OutputObject outputObject) {
|
public void deleteDictTypeMationById(InputObject inputObject, OutputObject outputObject) {
|
||||||
String id = inputObject.getParams().get("id").toString();
|
String id = inputObject.getParams().get("id").toString();
|
||||||
|
LOGGER.info("delete data, id is {}", id);
|
||||||
sysDictTypeDao.deleteById(id);
|
sysDictTypeDao.deleteById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
|
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved. 开源地址:https://gitee.com/doc_wei01/skyeye
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
package com.skyeye.eve.service.impl;
|
package com.skyeye.eve.service.impl;
|
||||||
|
|
||||||
import cn.hutool.json.JSONUtil;
|
import cn.hutool.json.JSONUtil;
|
||||||
|
@ -59,7 +60,6 @@ public class MainPageServiceImpl implements MainPageService {
|
||||||
* @param outputObject
|
* @param outputObject
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void queryNoticeContentListByUserId(InputObject inputObject, OutputObject outputObject) throws Exception {
|
public void queryNoticeContentListByUserId(InputObject inputObject, OutputObject outputObject) throws Exception {
|
||||||
String userId = inputObject.getLogParams().get("id").toString();
|
String userId = inputObject.getLogParams().get("id").toString();
|
||||||
|
|
Loading…
Reference in a new issue