保证金的收取,退回,激活金额字段修改
This commit is contained in:
parent
5a31ef8548
commit
be53c99df3
@ -1013,7 +1013,8 @@
|
||||
<attribute name="ORGID" label="部门编号" type="STRING" length="32"/>
|
||||
<attribute name="PROVINCES" label="省份" type="STRING" length="32"/>
|
||||
<attribute name="DISTRIBUTOR_CODING" label="经销商编号" type="STRING" length="32"/>
|
||||
<attribute name="TOTAL" label="总额" type="STRING" length="32"/>
|
||||
<attribute name="TOTAL" label="额度" type="STRING" length="32"/>
|
||||
<attribute name="SUMS" label="总额" type="STRING" length="64"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -1305,7 +1306,8 @@
|
||||
<attribute name="ORGID" label="部门编号" type="STRING" length="32"/>
|
||||
<attribute name="PROVINCES" label="省份" type="STRING" length="32"/>
|
||||
<attribute name="DISTRIBUTOR_CODING" label="经销商编码" type="STRING" length="32"/>
|
||||
<attribute name="TOTAL" label="总额" type="STRING" length="32"/>
|
||||
<attribute name="TOTAL" label="额度" type="STRING" length="32"/>
|
||||
<attribute name="SUMS" label="总额" type="STRING" length="64"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -30,11 +30,11 @@ public class CopyDChargeTempToFormal extends BaseBussiness{
|
||||
DataOperatorUtil.copySingleJBO(D_DEPOSITCHARGE_INFO_TEMP.CLASS_NAME, fromCondtion, D_DEPOSITCHARGE_INFO.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
BizObject dibo = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, Sqlca).createQuery("flowunid=:flowunid").setParameter("flowunid",flowunid).getSingleResult(false);
|
||||
BizObject deit = JBOFactory.createBizObjectQuery(D_DEPOSITCHARGE_INFO_TEMP.CLASS_NAME, "flowunid=:flowunid").setParameter("flowunid",flowunid).getSingleResult(false);
|
||||
String num = dibo.getAttribute("TOTAL")==null?"0":dibo.getAttribute("TOTAL").getString();//.getString();
|
||||
BigDecimal total = new BigDecimal("".equals(num)?"0":num);
|
||||
String num = dibo.getAttribute("SUMS")==null?"0":dibo.getAttribute("SUMS").getString();//.getString();
|
||||
BigDecimal sums = new BigDecimal("".equals(num)?"0":num);
|
||||
BigDecimal cautionMoney = new BigDecimal(deit.getAttribute(D_DEPOSITRETURN_INFO_TEMP.CAUTION_MONEY).getString());
|
||||
double num1 = total.add(cautionMoney).doubleValue();
|
||||
JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca).createQuery("update o set TOTAL='"+num1+"' where distributor_no='"+DistributorNo+"'").executeUpdate();
|
||||
double num1 = sums.add(cautionMoney).doubleValue();
|
||||
JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca).createQuery("update o set SUMS='"+num1+"' where distributor_no='"+DistributorNo+"'").executeUpdate();
|
||||
|
||||
return "true";
|
||||
}
|
||||
|
||||
@ -37,10 +37,10 @@ public class CopyDReturnTempToFormal extends BaseBussiness {
|
||||
|
||||
DataOperatorUtil.copySingleJBO(D_DEPOSITRETURN_INFO_TEMP.CLASS_NAME, fromCondtion, D_DEPOSITRETURN_INFO.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
//Ð޸ľÏúÉÌ×ܶî
|
||||
BigDecimal total = new BigDecimal(dst.getAttribute(DISTRIBUTOR_INFO_TEMP.TOTAL).getString());
|
||||
BigDecimal sums = new BigDecimal(dst.getAttribute(DISTRIBUTOR_INFO_TEMP.SUMS).getString());
|
||||
BigDecimal cautionMoney = new BigDecimal(deit.getAttribute(D_DEPOSITRETURN_INFO_TEMP.CAUTION_MONEY).getString());
|
||||
double num = total.subtract(cautionMoney).doubleValue();
|
||||
JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca).createQuery("update o set TOTAL='"+num+"' where distributor_no='"+disStatus+"'").executeUpdate();
|
||||
double num = sums.subtract(cautionMoney).doubleValue();
|
||||
JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca).createQuery("update o set SUMS='"+num+"' where distributor_no='"+disStatus+"'").executeUpdate();
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ public class SelectBalance {
|
||||
Map<String,String> params= new HashMap<String,String>();
|
||||
params.put("distributor_id", distributor_no);
|
||||
//params.put("caution_money", caution_money);
|
||||
String sql="SELECT O.total AS money "
|
||||
String sql="SELECT O.sums AS money "
|
||||
+ "FROM DISTRIBUTOR_INFO O WHERE "
|
||||
+ "O.distributor_no=:distributor_id";
|
||||
List<Map<String,String>> getSql = DataOperatorUtil.getDataBySql(scql, sql, params);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user