1.修改付款申请新增选择SQL

2.修改本方账户增加收款和付款
This commit is contained in:
zhangbb 2018-10-10 20:00:09 +08:00
parent 02bce8939b
commit f250597c8d
3 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ WHERE lci.businesstype='#businessType' AND (
WHERE fbo.flow_unid = fo.objectno
AND fbo.flow_name = '资金付款'
AND fo.phaseno NOT IN ('1000', '8000'))) tab
where tab.overmoney>0
]]>
</table_sql>
</MYSQL>

View File

@ -63,7 +63,7 @@ public class CmbToCallbackController extends BaseFlowStartAction {
* 本方放款账户获取######开始
*/
BizObjectManager accountManager = JBOFactory.getBizObjectManager(OWN_ACCOUNT.CLASS_NAME);
List<BizObject> accountBoList = accountManager.createQuery("select o.acc_number,o.acc_bank,o.acc_name,o.branch_code,oi.OWN_NAME from o join jbo.com.tenwa.entity.comm.own.OWN_INFO oi on o.own_id = oi.OWN_NUMBER where o.money_type='01' and o.state_='0010' and acc_type='0010' and account_type='out_account' ").getResultList(false);
List<BizObject> accountBoList = accountManager.createQuery("select o.acc_number,o.acc_bank,o.acc_name,o.branch_code,oi.OWN_NAME from o join jbo.com.tenwa.entity.comm.own.OWN_INFO oi on o.own_id = oi.OWN_NUMBER where o.money_type='01' and o.state_='0010' and acc_type='0010' and account_type='out_account' or account_type='inAndOut_account' ").getResultList(false);
if( accountBoList==null ) {
map.put("code", "1") ;
map.put("msg", "本方账户不存在,请检查") ;

View File

@ -88,7 +88,7 @@ public class CmbToPayController extends BaseFlowStartAction {
* 本方放款账户获取######开始
*/
BizObjectManager accountManager = JBOFactory.getBizObjectManager(OWN_ACCOUNT.CLASS_NAME);
List<BizObject> accountBoList = accountManager.createQuery("select o.id,o.acc_number,o.acc_bank,o.acc_name,o.branch_code,oi.OWN_NAME from o join jbo.com.tenwa.entity.comm.own.OWN_INFO oi on o.own_id = oi.OWN_NUMBER where o.money_type='01' and o.state_='0010' and acc_type='0010' and account_type='out_account' ").getResultList(false);
List<BizObject> accountBoList = accountManager.createQuery("select o.id,o.acc_number,o.acc_bank,o.acc_name,o.branch_code,oi.OWN_NAME from o join jbo.com.tenwa.entity.comm.own.OWN_INFO oi on o.own_id = oi.OWN_NUMBER where o.money_type='01' and o.state_='0010' and acc_type='0010' and (account_type='out_account' or account_type='inAndOut_account') ").getResultList(false);
if( accountBoList==null ||accountBoList.size()==0) {
map.put("code", "1") ;
map.put("msg", "本方账户不存在,请检查") ;
@ -97,7 +97,7 @@ public class CmbToPayController extends BaseFlowStartAction {
}
if( accountBoList!=null && accountBoList.size()>1 ) {
map.put("code", "1") ;
map.put("msg", "启用的汽车类放款账户有多个请检查,请检查") ;
map.put("msg", "启用的汽车类放款账户只能同时存在一个,请在本方账户中检查!") ;
JSONObject jsonObj = JSONObject.fromObject(map);
return jsonObj.toString();
}