QC3433560 年度费用预算申请 流程更新 费控预算信息
This commit is contained in:
parent
aef3473db1
commit
96b0292a2f
|
|
@ -1,6 +1,6 @@
|
||||||
<component name="ArtifactManager">
|
<component name="ArtifactManager">
|
||||||
<artifact type="jar" name="weaver-develop:jar">
|
<artifact type="jar" name="weaver-develop:jar">
|
||||||
<output-path>$PROJECT_DIR$/out/artifacts/weaver_develop_jar</output-path>
|
<output-path>$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib</output-path>
|
||||||
<root id="archive" name="weaver-develop.jar">
|
<root id="archive" name="weaver-develop.jar">
|
||||||
<element id="module-output" name="weaver-develop" />
|
<element id="module-output" name="weaver-develop" />
|
||||||
</root>
|
</root>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package test;
|
package test;
|
||||||
|
|
||||||
import com.weaver.general.TimeUtil;
|
import com.weaver.general.TimeUtil;
|
||||||
|
import weaver.interfaces.fssecond.action.FnabudgetinfoAction;
|
||||||
|
import weaver.soa.workflow.request.RequestInfo;
|
||||||
|
import weaver.workflow.request.RequestManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author weaver_cl
|
* @Author weaver_cl
|
||||||
|
|
@ -11,8 +14,13 @@ import com.weaver.general.TimeUtil;
|
||||||
public class MainTest {
|
public class MainTest {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
double doubleValue = getDoubleValue("");
|
RequestInfo requestInfo = new RequestInfo();
|
||||||
System.out.println(doubleValue);
|
// RequestManager requestManager = new RequestManager();
|
||||||
|
// requestManager.setFormid(-568);
|
||||||
|
// requestInfo.setRequestManager(requestManager);
|
||||||
|
// requestInfo.setRequestid("1548547");
|
||||||
|
FnabudgetinfoAction fnabudgetinfoAction = new FnabudgetinfoAction();
|
||||||
|
fnabudgetinfoAction.execute(requestInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double getDoubleValue(String var0) {
|
public static double getDoubleValue(String var0) {
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ public class FnabudgetinfoAction implements Action {
|
||||||
|
|
||||||
String requestid = requestInfo.getRequestid();
|
String requestid = requestInfo.getRequestid();
|
||||||
int formid = Math.abs(requestInfo.getRequestManager().getFormid());
|
int formid = Math.abs(requestInfo.getRequestManager().getFormid());
|
||||||
|
|
||||||
RecordSet rs = new RecordSet();
|
RecordSet rs = new RecordSet();
|
||||||
String mainTable = String.format("%s%s", "formtable_main_", formid);
|
String mainTable = String.format("%s%s", "formtable_main_", formid);
|
||||||
String detaiTable = String.format("%s%s",mainTable,"_dt1");
|
String detaiTable = String.format("%s%s",mainTable,"_dt1");
|
||||||
|
|
@ -113,8 +114,6 @@ public class FnabudgetinfoAction implements Action {
|
||||||
// String ybzsm11 = Util.null2String(rs.getString("ybzsm_11"));
|
// String ybzsm11 = Util.null2String(rs.getString("ybzsm_11"));
|
||||||
// String ybzsm12 = Util.null2String(rs.getString("ybzsm_12"));
|
// String ybzsm12 = Util.null2String(rs.getString("ybzsm_12"));
|
||||||
|
|
||||||
FnabudgetinfoDetailPo fnabudgetinfoDetail = FnabudgetinfoDetailPo.builder().budgettypeId(kmmc)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
List<FnabudgetinfoDetailItemPo> items = new ArrayList<>();
|
List<FnabudgetinfoDetailItemPo> items = new ArrayList<>();
|
||||||
items.add(FnabudgetinfoDetailItemPo.builder().budgetAccount(y1).budgetperiodsList(1).build());
|
items.add(FnabudgetinfoDetailItemPo.builder().budgetAccount(y1).budgetperiodsList(1).build());
|
||||||
|
|
@ -132,9 +131,10 @@ public class FnabudgetinfoAction implements Action {
|
||||||
|
|
||||||
items.forEach(e -> {
|
items.forEach(e -> {
|
||||||
if (StringUtils.isNotEmpty(e.getBudgetAccount())){
|
if (StringUtils.isNotEmpty(e.getBudgetAccount())){
|
||||||
|
|
||||||
double value = Util.getDoubleValue(e.getBudgetAccount());
|
double value = Util.getDoubleValue(e.getBudgetAccount());
|
||||||
fnabudgetinfoDetail.setBudgetAccount(value);
|
FnabudgetinfoDetailPo fnabudgetinfoDetail = FnabudgetinfoDetailPo.builder().budgettypeId(kmmc)
|
||||||
fnabudgetinfoDetail.setBudgetperiodsList(e.getBudgetperiodsList());
|
.budgetAccount(value).budgetperiodsList(e.getBudgetperiodsList()).build();
|
||||||
fbDetail.add(fnabudgetinfoDetail);
|
fbDetail.add(fnabudgetinfoDetail);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue