Commit 89a09ed6 by 王衍超

完善代码;

parent e71acbb5
...@@ -6,6 +6,7 @@ import java.util.UUID; ...@@ -6,6 +6,7 @@ import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import com.beecode.bap.workflow.core.BizProcessState;
import com.beecode.bcp.type.KObject; import com.beecode.bcp.type.KObject;
import com.beecode.inz.query.entity.RowData; import com.beecode.inz.query.entity.RowData;
import com.beecode.inz.query.processor.DataProcessor; import com.beecode.inz.query.processor.DataProcessor;
...@@ -50,6 +51,17 @@ public class SalesPlanTempProcessor implements DataProcessor { ...@@ -50,6 +51,17 @@ public class SalesPlanTempProcessor implements DataProcessor {
UUID regionalCompanyId = UUID.fromString(row.get("regionalCompany.id").toString()); UUID regionalCompanyId = UUID.fromString(row.get("regionalCompany.id").toString());
KObject regionalCompany = orgService.load(regionalCompanyId); KObject regionalCompany = orgService.load(regionalCompanyId);
row.put("regionalCompanyName", regionalCompany.getString("name")); row.put("regionalCompanyName", regionalCompany.getString("name"));
String approveStateName = null;
int approveState = Integer.valueOf(row.get("approveState").toString());
if(BizProcessState.IN_PROCESS.getValue() == approveState) {
approveStateName ="待审核";
}else if(BizProcessState.DONE_WITH_AGREE.getValue() == approveState) {
approveStateName ="已通过";
}else if(BizProcessState.DONE_WITH_REJECT.getValue() == approveState) {
approveStateName ="已驳回";
}
row.put("approveStateName", approveStateName);
} }
} }
} }
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