Commit 373d979c by huangZW

111

parent 8b57f925
...@@ -8,27 +8,41 @@ package com.gic.haoban.manage.api.enums; ...@@ -8,27 +8,41 @@ package com.gic.haoban.manage.api.enums;
public enum StoreFieldEnum { public enum StoreFieldEnum {
//门店名称 //门店名称
STORE_NAME("1"), STORE_NAME("1","门店名称"),
//门店面积 //门店面积
STORE_AREA("2"), STORE_AREA("2","门店面积"),
//联系电话 //联系电话
CONACTS_PHONE("3"), CONACTS_PHONE("3","联系电话"),
//营业时间 //营业时间
BUSINESS_TIME_STRING("4"), BUSINESS_TIME_STRING("4","营业时间"),
//门店地址 //门店地址
STORE_ADDRESS("5"), STORE_ADDRESS("5","门店地址"),
//门店图片 //门店图片
STORE_IMAG("6"); STORE_IMAG("6","门店图片");
/** /**
* 类型 * 类型
*/ */
private String value; private String value;
private String name;
StoreFieldEnum(String value) { StoreFieldEnum(String value,String name) {
this.value = value; this.value = value;
this.name = name;
} }
public String getValue() { public String getValue() {
return value; return value;
} }
public String getName() {
return name;
}
public static String getValueName(String changeField) {
for (StoreFieldEnum c : StoreFieldEnum.values()) {
if (c.getValue() == changeField) {
return c.name;
}
}
return null;
}
} }
...@@ -117,7 +117,12 @@ public class AuditApiServiceImpl implements AuditApiService{ ...@@ -117,7 +117,12 @@ public class AuditApiServiceImpl implements AuditApiService{
String newValue = tab.getNewValue(); String newValue = tab.getNewValue();
String changeField = tab.getChangeField(); String changeField = tab.getChangeField();
this.editStoreInfo(storeId, changeField, oldValue, newValue); this.editStoreInfo(storeId, changeField, oldValue, newValue);
//名字
String title = StoreFieldEnum.getValueName(changeField);
title = "["+title+"]"+"修改审核通过";
// QywxXcxSendMessageDTO messageDTO = new QywxXcxSendMessageDTO(); // QywxXcxSendMessageDTO messageDTO = new QywxXcxSendMessageDTO();
// config.getWxSuiteid();
// qywxSuiteApiService.sendMessage("ww9ede832a84b7ae5f","ww2c34dc56739bb105", messageDTO); // qywxSuiteApiService.sendMessage("ww9ede832a84b7ae5f","ww2c34dc56739bb105", messageDTO);
} }
@Override @Override
...@@ -128,7 +133,13 @@ public class AuditApiServiceImpl implements AuditApiService{ ...@@ -128,7 +133,13 @@ public class AuditApiServiceImpl implements AuditApiService{
tab.setUpdateTime(new Date()); tab.setUpdateTime(new Date());
tab.setAuditReason(auditReason); tab.setAuditReason(auditReason);
tab.setAuditName(auditName); tab.setAuditName(auditName);
auditMapper.updateByPrimaryKeySelective(tab); auditMapper.updateByPrimaryKeySelective(tab);
TabHaobanAudit tab2 = auditMapper.selectByPrimaryKey(auditId);
String changeField = tab2.getChangeField();
String title = StoreFieldEnum.getValueName(changeField);
title = "["+title+"]"+"被拒绝。拒绝理由:"+auditReason;
} }
@Override @Override
public int save(Integer auditType,String wxEnterpriseId, String enterpriseId, public int save(Integer auditType,String wxEnterpriseId, String enterpriseId,
......
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