Commit cba93704 by huangZW

111

parent 71c23e34
......@@ -10,6 +10,7 @@ import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.hutool.core.collection.CollectionUtil;
......@@ -66,13 +67,22 @@ public class AuditApiServiceImpl implements AuditApiService{
com.github.pagehelper.Page<TabHaobanAudit> page = auditMapper.page(auditType, storeIds, staffIds, wxEnterpriseId,enterpriseId,auditStatus);
return PageUtil.changePageHelperToCurrentPage( page,AuditDTO.class);
}
@Transactional
@Override
public void audit(String auditId) {
TabHaobanAudit tab = new TabHaobanAudit();
TabHaobanAudit tab = auditMapper.selectByPrimaryKey(auditId);
if(tab==null){
return;
}
tab.setAuditId(auditId);
tab.setAuditStatus(1);
tab.setUpdateTime(new Date());
auditMapper.updateByPrimaryKeySelective(tab);
auditMapper.updateByPrimaryKeySelective(tab);
String storeId = tab.getCommitStoreId();
String oldValue = tab.getOldValue();
String newValue = tab.getNewValue();
String changeField = tab.getChangeField();
this.editStoreInfo(storeId, changeField, oldValue, newValue);
}
@Override
public void refuse(String auditId, String auditReason) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment