|
@@ -2,7 +2,6 @@ package com.usoftchina.saas.document.service.impl;
|
|
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
|
-import com.usoftchina.saas.base.Result;
|
|
|
|
|
import com.usoftchina.saas.base.service.CommonBaseServiceImpl;
|
|
import com.usoftchina.saas.base.service.CommonBaseServiceImpl;
|
|
|
import com.usoftchina.saas.commons.api.MaxnumberService;
|
|
import com.usoftchina.saas.commons.api.MaxnumberService;
|
|
|
import com.usoftchina.saas.commons.api.MessageLogService;
|
|
import com.usoftchina.saas.commons.api.MessageLogService;
|
|
@@ -330,8 +329,8 @@ public class VendorServiceImpl extends CommonBaseServiceImpl<VendorMapper, Vendo
|
|
|
if(id != null && id > 0){
|
|
if(id != null && id > 0){
|
|
|
Vendor vendor = new Vendor();
|
|
Vendor vendor = new Vendor();
|
|
|
vendor.setId(id);
|
|
vendor.setId(id);
|
|
|
- vendor.setVe_status(Status.CLOSE.getDisplay());
|
|
|
|
|
- vendor.setVe_statuscode(Status.CLOSE.name());
|
|
|
|
|
|
|
+ vendor.setVe_status(Status.BANNED.getDisplay());
|
|
|
|
|
+ vendor.setVe_statuscode(Status.BANNED.name());
|
|
|
vendor.setUpdaterId(BaseContextHolder.getUserId());
|
|
vendor.setUpdaterId(BaseContextHolder.getUserId());
|
|
|
vendor.setUpdateTime(new Date());
|
|
vendor.setUpdateTime(new Date());
|
|
|
|
|
|
|
@@ -358,19 +357,19 @@ public class VendorServiceImpl extends CommonBaseServiceImpl<VendorMapper, Vendo
|
|
|
if(vendor == null){
|
|
if(vendor == null){
|
|
|
throw new BizException(BizExceptionCode.NO_DATA);
|
|
throw new BizException(BizExceptionCode.NO_DATA);
|
|
|
}
|
|
}
|
|
|
- if (Status.CLOSE.name().equals(vendor.getVe_statuscode())){
|
|
|
|
|
|
|
+ if (Status.BANNED.name().equals(vendor.getVe_statuscode())){
|
|
|
String code = vendor.getVe_code();
|
|
String code = vendor.getVe_code();
|
|
|
vendor = new Vendor();
|
|
vendor = new Vendor();
|
|
|
vendor.setId(id);
|
|
vendor.setId(id);
|
|
|
- vendor.setVe_statuscode(Status.OPEN.name());
|
|
|
|
|
- vendor.setVe_status(Status.OPEN.getDisplay());
|
|
|
|
|
|
|
+ vendor.setVe_statuscode(Status.ENABLE.name());
|
|
|
|
|
+ vendor.setVe_status(Status.ENABLE.getDisplay());
|
|
|
getMapper().updateByPrimaryKeySelective(vendor);
|
|
getMapper().updateByPrimaryKeySelective(vendor);
|
|
|
//记录LOG
|
|
//记录LOG
|
|
|
DocBaseDTO docBaseDTO = generateMsgObj(id, code);
|
|
DocBaseDTO docBaseDTO = generateMsgObj(id, code);
|
|
|
messageLogService.customizeLog(docBaseDTO, Operation.ENABLE);
|
|
messageLogService.customizeLog(docBaseDTO, Operation.ENABLE);
|
|
|
return docBaseDTO;
|
|
return docBaseDTO;
|
|
|
}else {
|
|
}else {
|
|
|
- throw new BizException(BizExceptionCode.BIZ_OPEN);
|
|
|
|
|
|
|
+ throw new BizException(BizExceptionCode.BIZ_ENABLE);
|
|
|
}
|
|
}
|
|
|
}else {
|
|
}else {
|
|
|
throw new BizException(BizExceptionCode.ILLEGAL_ID);
|
|
throw new BizException(BizExceptionCode.ILLEGAL_ID);
|