Просмотр исходного кода

[审批流][修改][修改枚举值]

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
d0953aa0c2
2 измененных файлов: 8 добавлений и 16 удалений
  1. +7
    -8
      mallinkService/src/main/java/com/iformall/enums/EnumFlowKey.java
  2. +1
    -8
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java

+ 7
- 8
mallinkService/src/main/java/com/iformall/enums/EnumFlowKey.java Просмотреть файл

@@ -4,11 +4,10 @@ package com.iformall.enums;
* Created by luozukai * Created by luozukai
* 流程key * 流程key
*/ */
public enum EnumFlowKey {

CONTRACT("contract_flow", "合同审批流程"),
BILL("end_bill_flow", "账单审批流程"),
END_CONTRACT("end_contract_flow", "终止合同审批流程"),
public enum EnumFlowKey{
CONTRACT(1, "contract_flow"), //合同审批
BILL(2, "end_bill_flow"),//账单审批
END_CONTRACT(3, "end_contract_flow")//终止合同审批
; ;


public static EnumFlowKey getEnum(Integer code) { public static EnumFlowKey getEnum(Integer code) {
@@ -20,15 +19,15 @@ public enum EnumFlowKey {
return null; return null;
} }


private String code;
private Integer code;
private String message; private String message;


EnumFlowKey(String code, String message) {
EnumFlowKey(Integer code, String message) {
this.code = code; this.code = code;
this.message = message; this.message = message;
} }


public String getCode() {
public Integer getCode() {
return code; return code;
} }




+ 1
- 8
mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java Просмотреть файл

@@ -97,14 +97,7 @@ public class WxFlowServiceImpl implements WxFlowService {
* @return * @return
*/ */
public static String getFlowKeyByType(int flowType){ public static String getFlowKeyByType(int flowType){
if(1 == flowType){
return EnumFlowKey.CONTRACT.getCode();
}else if(2 == flowType){
return EnumFlowKey.BILL.getCode();
}else if(3 == flowType){
return EnumFlowKey.END_CONTRACT.getCode();
}
return null;
return EnumFlowKey.getEnum(flowType).getMessage();
} }


/** /**


Загрузка…
Отмена
Сохранить