|
@@ -162,6 +162,9 @@ func (this *ContractAllocationController) CompanyContractList() {
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
|
+ condition += ` AND a.create_time >= ? AND a.create_time <= ? `
|
|
|
+ pars = append(pars, startDate+" 00:00:01", endDate+" 23:59:59")
|
|
|
+
|
|
|
//条件
|
|
|
if adminId != "" {
|
|
|
condition += ` AND c.seller_id in (` + adminId + `) `
|
|
@@ -220,7 +223,7 @@ func (this *ContractAllocationController) CompanyContractList() {
|
|
|
var conditionAllocation string
|
|
|
var parsAllocation []interface{}
|
|
|
|
|
|
- conditionAllocation = " AND real_name = ? "
|
|
|
+ conditionAllocation = " AND real_name = ? AND money != 0 "
|
|
|
parsAllocation = append(parsAllocation, researcherRealName)
|
|
|
allocationCompanyContractList, err := cygx.GetCygxAllocationCompanyContractList(conditionAllocation, parsAllocation)
|
|
|
if err != nil {
|
|
@@ -849,7 +852,8 @@ func (this *ContractAllocationController) CompanyContractStatistics() {
|
|
|
var condition string
|
|
|
|
|
|
var pars []interface{}
|
|
|
-
|
|
|
+ condition += ` AND a.create_time >= ? AND a.create_time <= ? `
|
|
|
+ pars = append(pars, startDate+" 00:00:01", endDate+" 23:59:59")
|
|
|
//根据当前角色来获取查询条件
|
|
|
//condition, pars = getQueryParams(condition, pars, sysUser, "c.")
|
|
|
|
|
@@ -881,6 +885,7 @@ func (this *ContractAllocationController) CompanyContractStatistics() {
|
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ //return
|
|
|
var companyContractIds []int
|
|
|
companyContractIdBool := make(map[int]bool)
|
|
|
for _, v := range listContract {
|