付款单
This commit is contained in:
parent
f7325c3d8e
commit
49aaccd8fa
|
@ -27,6 +27,24 @@ public class PayBillEntity extends BaseEntity {
|
|||
private String pkBalatype;//结算方式
|
||||
private String billCode;//单据编号
|
||||
private String queryState;
|
||||
private String pkRecproject;//收款方名称
|
||||
private String memo;//摘要
|
||||
|
||||
public String getPkRecproject() {
|
||||
return pkRecproject;
|
||||
}
|
||||
|
||||
public void setPkRecproject(String pkRecproject) {
|
||||
this.pkRecproject = pkRecproject;
|
||||
}
|
||||
|
||||
public String getMemo() {
|
||||
return memo;
|
||||
}
|
||||
|
||||
public void setMemo(String memo) {
|
||||
this.memo = memo;
|
||||
}
|
||||
|
||||
public String getQueryState() {
|
||||
return queryState;
|
||||
|
|
|
@ -12,12 +12,14 @@
|
|||
<result property="fieldName" column="field_name" jdbcType="VARCHAR"/>
|
||||
<result property="pkBalatype" column="pk_balatype" jdbcType="VARCHAR"/>
|
||||
<result property="billCode" column="bill_code" jdbcType="VARCHAR"/>
|
||||
<result property="memo" column="memo" jdbcType="VARCHAR"/>
|
||||
<result property="pkRecproject" column="pk_recproject" jdbcType="VARCHAR"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<!--工程项目查询-->
|
||||
<select id="PayBillEntity_list_base" resultMap="get-PayBillEntity-result" parameterType="com.hzya.frame.seeyon.paybill.entity.PayBillEntity">
|
||||
select bill_code,id,bill_date,primal_money,pk_oppaccount,pk_supplier,pk_org,pk_balatype,table_name,field_name,send_state from (
|
||||
select bill_code,m1.id,bill_date,formmain_0236.field0003 as pk_recproject,memo,primal_money,pk_oppaccount,pk_supplier,pk_org,pk_balatype,table_name,field_name,send_state from (
|
||||
SELECT
|
||||
body.id as id,
|
||||
field0001 as bill_code,
|
||||
|
@ -27,6 +29,8 @@
|
|||
field0083 AS pk_supplier,
|
||||
field0089 AS pk_org,
|
||||
field0091 AS pk_balatype,
|
||||
field0090 AS pk_recproject_code,
|
||||
field0082 AS memo,
|
||||
'formson_0222' as table_name,
|
||||
'field0084' as field_name,
|
||||
field0084 as send_state
|
||||
|
@ -43,6 +47,8 @@
|
|||
field0077 AS pk_supplier,
|
||||
field0082 AS pk_org,
|
||||
field0084 AS pk_balatype,
|
||||
field0083 AS pk_recproject,
|
||||
field0076 AS memo,
|
||||
'formson_0210' as table_name,
|
||||
'field0078' as field_name,
|
||||
field0078 as send_state
|
||||
|
@ -59,13 +65,15 @@
|
|||
field0057 AS pk_supplier,
|
||||
field0061 AS pk_org,
|
||||
field0063 AS pk_balatype,
|
||||
field0062 AS pk_recproject,
|
||||
field0056 AS memo,
|
||||
'formson_0223' as table_name,
|
||||
'field0058' as field_name,
|
||||
field0058 as send_state
|
||||
FROM formmain_0094 main
|
||||
LEFT JOIN formson_0223 body ON main.id = body.formmain_id
|
||||
WHERE field0053 IS NOT NULL and finishedflag = '1'
|
||||
)m1
|
||||
)m1 left join formmain_0236 on m1.pk_recproject_code = formmain_0236.field0002
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="queryState != null and queryState != ''"> and send_state is null</if>
|
||||
|
|
|
@ -154,6 +154,8 @@ public class PayBillServiceImpl extends BaseService<PaymentEntity,String> implem
|
|||
body.put("direction","-1");//方向 :1=收;-1=付;
|
||||
body.put("objecttype","0");//交易对象
|
||||
body.put("pk_customer",pay.getPkSupplier());//客户
|
||||
body.put("pk_recproject",pay.getPkRecproject());//收支项目
|
||||
body.put("memo",pay.getMemo());//摘要
|
||||
String pkOppaccount = "";
|
||||
if(StrUtil.isNotEmpty(pay.getPkOppaccount())){
|
||||
pkOppaccount = pay.getPkOppaccount().replaceAll(" ","");
|
||||
|
|
Loading…
Reference in New Issue