|
@@ -243,6 +243,9 @@ func ContractToContract_Detail(t Contract, productList []ContractProduct_R) (r C
|
|
|
r.Id = t.Id
|
|
r.Id = t.Id
|
|
|
r.T_number = t.T_number
|
|
r.T_number = t.T_number
|
|
|
r.T_customer = t.T_customer
|
|
r.T_customer = t.T_customer
|
|
|
|
|
+ if len(t.T_customer_id) > 0 {
|
|
|
|
|
+ r.T_customer = Read_VerifyContract_Get(t.T_customer_id)
|
|
|
|
|
+ }
|
|
|
r.T_money = t.T_money
|
|
r.T_money = t.T_money
|
|
|
r.T_discount = t.T_discount
|
|
r.T_discount = t.T_discount
|
|
|
r.T_project = t.T_project
|
|
r.T_project = t.T_project
|
|
@@ -503,7 +506,7 @@ func (dao *ContractDaoImpl) Read_VerifyContract_List(T_name, T_customer_id strin
|
|
|
func (dao *ContractDaoImpl) Read_VerifyContract_Excel(T_state int, T_name, T_start_date, T_end_date string) (r_ []Contract_Detail) {
|
|
func (dao *ContractDaoImpl) Read_VerifyContract_Excel(T_state int, T_name, T_start_date, T_end_date string) (r_ []Contract_Detail) {
|
|
|
|
|
|
|
|
var maps []Contract
|
|
var maps []Contract
|
|
|
- sql := "SELECT vc.t_customer as t_customer,vc.t__state, contract.*" +
|
|
|
|
|
|
|
+ sql := "SELECT vc.t__state, contract.*" +
|
|
|
" FROM contract LEFT JOIN verify_contract vc ON vc.t_customer_id=contract.t_customer_id" +
|
|
" FROM contract LEFT JOIN verify_contract vc ON vc.t_customer_id=contract.t_customer_id" +
|
|
|
" WHERE vc.t__state>0 AND contract.t__state>0"
|
|
" WHERE vc.t__state>0 AND contract.t__state>0"
|
|
|
if T_state > 0 {
|
|
if T_state > 0 {
|