Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
03333e0f
Commit
03333e0f
authored
Jan 11, 2024
by
全洪江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户模块前端
parent
6531b6c8
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
541 additions
and
30 deletions
+541
-30
customerDetail.js
...-xt/src/main/webapp/biz/topsun/customer/customerDetail.js
+270
-30
CustomerBankListApplication.java
...sun/customer/application/CustomerBankListApplication.java
+9
-0
CustomerBrandApplication.java
...topsun/customer/application/CustomerBrandApplication.java
+10
-0
CustomerCompanyCodeApplication.java
.../customer/application/CustomerCompanyCodeApplication.java
+9
-0
CustomerSalesOrganizationApplication.java
...mer/application/CustomerSalesOrganizationApplication.java
+11
-0
CustomerBankListApplicationImpl.java
...mer/application/Impl/CustomerBankListApplicationImpl.java
+21
-0
CustomerBrandApplicationImpl.java
...stomer/application/Impl/CustomerBrandApplicationImpl.java
+21
-0
CustomerCompanyApplicationImpl.java
...omer/application/Impl/CustomerCompanyApplicationImpl.java
+21
-0
CustomerSalesOrganizationApplicationImpl.java
...cation/Impl/CustomerSalesOrganizationApplicationImpl.java
+21
-0
CustomerBankListController.java
...opsun/customer/controller/CustomerBankListController.java
+28
-0
CustomerBrandController.java
...u/topsun/customer/controller/CustomerBrandController.java
+38
-0
CustomerCompanyCodeController.java
...un/customer/controller/CustomerCompanyCodeController.java
+27
-0
CustomerSalesOrganizationController.java
...tomer/controller/CustomerSalesOrganizationController.java
+27
-0
CustomerBrand.java
...java/com/huigou/topsun/customer/domain/CustomerBrand.java
+5
-0
customerMapper.xml
.../main/resources/config/topsun/customer/customerMapper.xml
+23
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/customer/customerDetail.js
View file @
03333e0f
...
...
@@ -544,43 +544,86 @@ function loadCustomerBrandListGrid() {
}
}
);
customer
PayInfoGridManager
=
UICtrl
.
grid
(
"#customerPayInfo
ListGrid"
,
{
customer
BrandGridManager
=
UICtrl
.
grid
(
"#customerBrand
ListGrid"
,
{
columns
:
[
{
display
:
"
支付方户名
"
,
name
:
"
customerPayAccountName
"
,
width
:
2
00
,
display
:
"
品牌
"
,
name
:
"
brand
"
,
width
:
1
00
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
required
:
false
,
type
:
"text"
}
},
{
display
:
"录入人"
,
name
:
"createdByName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"职位"
,
name
:
"position"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"录入时间"
,
name
:
"createdDate"
,
width
:
200
,
minWidth
:
60
,
type
:
"date"
,
align
:
"left"
,
display
:
"录入时间"
,
name
:
"createdDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"修改人"
,
name
:
"lastModifiedByName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"联系人"
,
name
:
"contact"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"修改时间"
,
name
:
"lastModifiedDate"
,
width
:
200
,
minWidth
:
60
,
type
:
"date"
,
align
:
"left"
,
display
:
"电话号码"
,
name
:
"tel"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"e-Mail"
,
name
:
"eMail"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"经营类型"
,
name
:
"operateType"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"工厂代码"
,
name
:
"factoryCode"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"跟单员"
,
name
:
"merchandiser"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
}
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/customer
PayInfo/slicedCustomerPayInfo
List.ajax'
,
url
:
web_app
.
name
+
'/customer
Brand/slicedCustomerBrand
List.ajax'
,
parms
:
{
customerId
:
$
(
"#customerId"
).
val
()},
pageSize
:
10
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"
4
0%"
,
height
:
"
10
0%"
,
enabledEdit
:
true
,
heightDiff
:
-
8
,
checkbox
:
true
,
...
...
@@ -592,15 +635,15 @@ function deleteCustomerBrandHandler() {
var
_grid
=
UICtrl
.
getGridManager
(
'#customerBrandListGrid'
);
DataUtil
.
delSelectedRows
(
{
action
:
'customer
PayInfo/deleteCustomerPayInfo
.ajax'
,
action
:
'customer
Brand/deleteCustomerBrand
.ajax'
,
param
:
{},
gridManager
:
_grid
,
idFieldName
:
'customer
PayInfo
Id'
,
idFieldName
:
'customer
Brand
Id'
,
onSuccess
:
function
(
data
)
{
if
(
data
==
"1"
)
{
Public
.
successTip
(
"删除成功!"
);
}
customer
PayInfo
GridManager
.
loadData
();
customer
Brand
GridManager
.
loadData
();
}
}
)
...
...
@@ -611,20 +654,20 @@ function loadCustomerBankListGrid() {
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
(
{
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
customer
PayInfo
GridManager
);
UICtrl
.
addGridRow
(
customer
Bank
GridManager
);
},
deleteHandler
:
function
()
{
deleteCustomerPayInfo
Handler
();
// deleteCustomerBank
Handler();
}
}
);
customer
PayInfoGridManager
=
UICtrl
.
grid
(
"#customerPayInfo
ListGrid"
,
{
customer
BankGridManager
=
UICtrl
.
grid
(
"#customerBank
ListGrid"
,
{
columns
:
[
{
display
:
"
支付方户名
"
,
name
:
"
customerPayAccountNam
e"
,
display
:
"
开户银行代码
"
,
name
:
"
depositBankCod
e"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
...
...
@@ -634,43 +677,240 @@ function loadCustomerBankListGrid() {
}
},
{
display
:
"录入人"
,
name
:
"createdByName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"银行账号"
,
name
:
"bankAccount"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"录入时间"
,
name
:
"createdDate"
,
width
:
200
,
minWidth
:
60
,
type
:
"date"
,
align
:
"left"
,
display
:
"账户持有人姓名"
,
name
:
"accountHolderName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
}
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/customerBankList/slicedCustomerBankList.ajax'
,
parms
:
{
customerId
:
$
(
"#customerId"
).
val
()},
pageSize
:
10
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
enabledEdit
:
true
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
});
}
function
loadCompanyCodeListGrid
(
currentTabId
)
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
(
{
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
companyCodeGridManager
);
},
deleteHandler
:
function
()
{
// deleteCompanyCodeHandler();
}
}
);
companyCodeGridManager
=
UICtrl
.
grid
(
"#companyCodeListGrid"
,
{
columns
:
[
{
display
:
"公司代码"
,
name
:
"companyCode"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"修改人"
,
name
:
"lastModifiedByName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
display
:
"统驭科目"
,
name
:
"reconciliationAccount"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"修改时间"
,
name
:
"lastModifiedDate"
,
width
:
200
,
minWidth
:
60
,
type
:
"date"
,
align
:
"left"
,
display
:
"付款条件"
,
name
:
"companyPaymentTerms"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"催款过程"
,
name
:
"collectionProcess"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
}
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/customer
PayInfo/slicedCustomerPayInfo
List.ajax'
,
url
:
web_app
.
name
+
'/customer
CompanyCode/slicedCustomerCompanyCode
List.ajax'
,
parms
:
{
customerId
:
$
(
"#customerId"
).
val
()},
pageSize
:
10
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"
4
0%"
,
height
:
"
10
0%"
,
enabledEdit
:
true
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
});
}
function
loadCompanyCodeListGrid
(
currentTabId
)
{
}
function
loadSalesOrganizationGrid
(
currentTabId
)
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
(
{
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
salesOrganizationGridManager
);
},
deleteHandler
:
function
()
{
// deleteCompanyCodeHandler();
}
}
);
salesOrganizationGridManager
=
UICtrl
.
grid
(
"#salesOrganizationListGrid"
,
{
columns
:
[
{
display
:
"销售组织"
,
name
:
"organization"
,
width
:
10
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"分销渠道"
,
name
:
"distributionChannel"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"产品组"
,
name
:
"productGroup"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"销售办公室"
,
name
:
"salesOffice"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"销售小组"
,
name
:
"salesGroup"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"客户等级(客户分类)"
,
name
:
"customerGrade"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"币别"
,
name
:
"currency"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"汇率类型"
,
name
:
"exchangeRate"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"国际贸易条款"
,
name
:
"incoterm"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"国际贸易条款位置"
,
name
:
"incotermPosition"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
},
{
display
:
"付款条件"
,
name
:
"salesPaymentTerms"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"客户科目分配组"
,
name
:
"customerAccountAllocationGroup"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"税收类别"
,
name
:
"taxCategory"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"客户税分类"
,
name
:
"customerTaxClassification"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
true
,
type
:
"text"
,
}
},
{
display
:
"装运条件"
,
name
:
"shippingConditions"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
false
,
type
:
"text"
}
}
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/customerSalesOrganization/slicedCustomerSalesOrganizationList.ajax'
,
parms
:
{
customerId
:
$
(
"#customerId"
).
val
()},
pageSize
:
10
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
enabledEdit
:
true
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
});
}
...
...
topsun/src/main/java/com/huigou/topsun/customer/application/CustomerBankListApplication.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
;
import
com.huigou.topsun.customer.domain.CustomerBankList
;
import
java.util.List
;
public
interface
CustomerBankListApplication
{
List
<
CustomerBankList
>
getCustomerBankList
(
String
customerId
);
}
topsun/src/main/java/com/huigou/topsun/customer/application/CustomerBrandApplication.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
;
import
com.huigou.topsun.customer.domain.CustomerBrand
;
import
com.huigou.topsun.customer.domain.CustomerPayInfo
;
import
java.util.List
;
public
interface
CustomerBrandApplication
{
List
<
CustomerBrand
>
getCustomerBrandList
(
String
customerId
);
}
topsun/src/main/java/com/huigou/topsun/customer/application/CustomerCompanyCodeApplication.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
;
import
com.huigou.topsun.customer.domain.CustomerCompanyCode
;
import
java.util.List
;
public
interface
CustomerCompanyCodeApplication
{
List
<
CustomerCompanyCode
>
getCustomerCompanyCodeList
(
String
customerId
);
}
topsun/src/main/java/com/huigou/topsun/customer/application/CustomerSalesOrganizationApplication.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
;
import
com.huigou.topsun.customer.domain.CustomerBankList
;
import
com.huigou.topsun.customer.domain.CustomerSalesOrganization
;
import
java.util.List
;
public
interface
CustomerSalesOrganizationApplication
{
List
<
CustomerSalesOrganization
>
getCustomerSalesOrganizationList
(
String
customerId
);
}
topsun/src/main/java/com/huigou/topsun/customer/application/Impl/CustomerBankListApplicationImpl.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
.
Impl
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.customer.application.CustomerBankListApplication
;
import
com.huigou.topsun.customer.domain.CustomerBankList
;
import
com.huigou.topsun.customer.domain.CustomerBrand
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CustomerBankListApplicationImpl
extends
BaseApplication
implements
CustomerBankListApplication
{
String
QUERY_XML_FILE_PATH
=
"config/topsun/customer/customerMapper.xml"
;
@Override
public
List
<
CustomerBankList
>
getCustomerBankList
(
String
customerId
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"customerBankList"
);
List
<
CustomerBankList
>
customerBankList
=
this
.
sqlExecutorDao
.
queryToList
(
queryDescriptor
.
getSql
(),
CustomerBankList
.
class
,
customerId
);
return
customerBankList
;
}
}
topsun/src/main/java/com/huigou/topsun/customer/application/Impl/CustomerBrandApplicationImpl.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
.
Impl
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.customer.application.CustomerBrandApplication
;
import
com.huigou.topsun.customer.domain.CustomerBrand
;
import
com.huigou.topsun.customer.domain.CustomerPayInfo
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CustomerBrandApplicationImpl
extends
BaseApplication
implements
CustomerBrandApplication
{
String
QUERY_XML_FILE_PATH
=
"config/topsun/customer/customerMapper.xml"
;
@Override
public
List
<
CustomerBrand
>
getCustomerBrandList
(
String
customerId
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"customerBrandList"
);
List
<
CustomerBrand
>
customerBrandList
=
this
.
sqlExecutorDao
.
queryToList
(
queryDescriptor
.
getSql
(),
CustomerBrand
.
class
,
customerId
);
return
customerBrandList
;
}
}
topsun/src/main/java/com/huigou/topsun/customer/application/Impl/CustomerCompanyApplicationImpl.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
.
Impl
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.customer.application.CustomerCompanyCodeApplication
;
import
com.huigou.topsun.customer.domain.CustomerBrand
;
import
com.huigou.topsun.customer.domain.CustomerCompanyCode
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CustomerCompanyApplicationImpl
extends
BaseApplication
implements
CustomerCompanyCodeApplication
{
String
QUERY_XML_FILE_PATH
=
"config/topsun/customer/customerMapper.xml"
;
@Override
public
List
<
CustomerCompanyCode
>
getCustomerCompanyCodeList
(
String
customerId
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"customerCompanyCodeList"
);
List
<
CustomerCompanyCode
>
customerCompanyCodeList
=
this
.
sqlExecutorDao
.
queryToList
(
queryDescriptor
.
getSql
(),
CustomerCompanyCode
.
class
,
customerId
);
return
customerCompanyCodeList
;
}
}
topsun/src/main/java/com/huigou/topsun/customer/application/Impl/CustomerSalesOrganizationApplicationImpl.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
application
.
Impl
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.customer.application.CustomerSalesOrganizationApplication
;
import
com.huigou.topsun.customer.domain.CustomerSalesOrganization
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CustomerSalesOrganizationApplicationImpl
extends
BaseApplication
implements
CustomerSalesOrganizationApplication
{
String
QUERY_XML_FILE_PATH
=
"config/topsun/customer/customerMapper.xml"
;
@Override
public
List
<
CustomerSalesOrganization
>
getCustomerSalesOrganizationList
(
String
customerId
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"customerSalesOrganizationList"
);
List
<
CustomerSalesOrganization
>
customerSalesOrganizationList
=
this
.
sqlExecutorDao
.
queryToList
(
queryDescriptor
.
getSql
(),
CustomerSalesOrganization
.
class
,
customerId
);
return
customerSalesOrganizationList
;
}
}
topsun/src/main/java/com/huigou/topsun/customer/controller/CustomerBankListController.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
controller
;
import
com.huigou.topsun.customer.application.CustomerApplication
;
import
com.huigou.topsun.customer.application.CustomerBankListApplication
;
import
com.huigou.topsun.customer.domain.CustomerBankList
;
import
com.huigou.topsun.customer.domain.CustomerBrand
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
java.util.List
;
@Controller
@ControllerMapping
(
"/customerBankList"
)
public
class
CustomerBankListController
extends
CommonController
{
@Autowired
private
CustomerBankListApplication
customerBankListApplication
;
public
String
slicedCustomerBankList
()
{
SDO
sdo
=
getSDO
();
String
customerId
=
sdo
.
getString
(
"customerId"
);
List
<
CustomerBankList
>
customerBrandList
=
customerBankListApplication
.
getCustomerBankList
(
customerId
);
return
packGridDataAndResult
(
customerBrandList
);
}
}
topsun/src/main/java/com/huigou/topsun/customer/controller/CustomerBrandController.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
controller
;
import
com.huigou.topsun.customer.application.CustomerBrandApplication
;
import
com.huigou.topsun.customer.domain.CustomerBrand
;
import
com.huigou.topsun.customer.domain.CustomerPayInfo
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
java.util.List
;
@Controller
@ControllerMapping
(
"/customerBrand"
)
public
class
CustomerBrandController
extends
CommonController
{
@Autowired
private
CustomerBrandApplication
customerBrandApplication
;
public
String
slicedCustomerBrandList
()
{
SDO
sdo
=
this
.
getSDO
();
String
customerId
=
sdo
.
getString
(
"customerId"
);
List
<
CustomerBrand
>
customerBrandList
=
customerBrandApplication
.
getCustomerBrandList
(
customerId
);
return
packGridDataAndResult
(
customerBrandList
);
}
// public String deleteCustomerBrand() {
// SDO sdo = this.getSDO();
// List<String> ids = sdo.getIds();
// int result = customerBrandApplication.deleteCustomerBrandList(ids);
// if (result==1) {
// return success();
// }
// else {
// return error("品牌信息删除失败");
// }
// }
}
topsun/src/main/java/com/huigou/topsun/customer/controller/CustomerCompanyCodeController.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
controller
;
import
com.huigou.topsun.customer.application.CustomerCompanyCodeApplication
;
import
com.huigou.topsun.customer.domain.CustomerBankList
;
import
com.huigou.topsun.customer.domain.CustomerCompanyCode
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
java.util.List
;
@Controller
@ControllerMapping
(
"/customerCompanyCode"
)
public
class
CustomerCompanyCodeController
extends
CommonController
{
@Autowired
private
CustomerCompanyCodeApplication
customerCompanyCodeApplication
;
public
String
slicedCustomerCompanyCodeList
()
{
SDO
sdo
=
getSDO
();
String
customerId
=
sdo
.
getString
(
"customerId"
);
List
<
CustomerCompanyCode
>
customerCompanyCodeList
=
customerCompanyCodeApplication
.
getCustomerCompanyCodeList
(
customerId
);
return
packGridDataAndResult
(
customerCompanyCodeList
);
}
}
topsun/src/main/java/com/huigou/topsun/customer/controller/CustomerSalesOrganizationController.java
0 → 100644
View file @
03333e0f
package
com
.
huigou
.
topsun
.
customer
.
controller
;
import
com.huigou.topsun.customer.application.CustomerSalesOrganizationApplication
;
import
com.huigou.topsun.customer.domain.CustomerBankList
;
import
com.huigou.topsun.customer.domain.CustomerSalesOrganization
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.SDO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
java.util.List
;
@Controller
@ControllerMapping
(
"/customerSalesOrganization"
)
public
class
CustomerSalesOrganizationController
extends
CommonController
{
@Autowired
private
CustomerSalesOrganizationApplication
customerSalesOrganizationApplication
;
public
String
slicedCustomerSalesOrganizationList
()
{
SDO
sdo
=
getSDO
();
String
customerId
=
sdo
.
getString
(
"customerId"
);
List
<
CustomerSalesOrganization
>
customerSalesOrganizationList
=
customerSalesOrganizationApplication
.
getCustomerSalesOrganizationList
(
customerId
);
return
packGridDataAndResult
(
customerSalesOrganizationList
);
}
}
topsun/src/main/java/com/huigou/topsun/customer/domain/CustomerBrand.java
View file @
03333e0f
...
...
@@ -34,6 +34,11 @@ public class CustomerBrand implements Serializable {
*/
private
String
brand
;
/**
* 职位
*/
private
String
position
;
/**
* 联系人
*/
...
...
topsun/src/main/resources/config/topsun/customer/customerMapper.xml
View file @
03333e0f
...
...
@@ -93,4 +93,27 @@
select t.* from monthly_settlement_method t where 1=1 order by t.sequence
</sql-query>
</query>
<query
name=
"customerBrandList"
label=
"查询用户品牌"
table=
"customer_brand"
>
<sql-query>
select cd.* from customer_brand cd where customer_id = ?
</sql-query>
</query>
<query
name=
"customerBankList"
label=
"查询客户银行列表"
table=
"customer_bank_list"
>
<sql-query>
select cbl.* from customer_bank_list cbl where customer_id = ?
</sql-query>
</query>
<query
name=
"customerCompanyCodeList"
label=
"公司代码列表"
table=
"customer_company_code"
>
<sql-query>
select c.* from customer_company_code c where customer_id = ?
</sql-query>
</query>
<query
name=
"customerSalesOrganizationList"
label=
"销售组织列表"
table=
"customer_sales_organization"
>
<sql-query>
select c.* from customer_sales_organization c where customer_id = ?
</sql-query>
</query>
</query-mappings>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment