|
@@ -161,7 +161,7 @@ func (this *CustomAPIController) DeleteCustom() {
|
161
|
161
|
func (this *CustomAPIController) ModifyCustom() {
|
162
|
162
|
id, _ := this.GetInt64("id")
|
163
|
163
|
module, _ := this.GetInt64("module")
|
164
|
|
- custom, _ := service.FindCustomInfoByID(id)
|
|
164
|
+ custom, _ := service.FindCustomInfoByIDTwo(id)
|
165
|
165
|
switch module {
|
166
|
166
|
case 1: //编辑基本信息
|
167
|
167
|
name := this.GetString("name")
|
|
@@ -175,7 +175,6 @@ func (this *CustomAPIController) ModifyCustom() {
|
175
|
175
|
address := this.GetString("address")
|
176
|
176
|
client_remark := this.GetString("client_remark")
|
177
|
177
|
topline_time := this.GetString("topline_time")
|
178
|
|
-
|
179
|
178
|
custom.CustomType = customType
|
180
|
179
|
custom.Salesperson = salesperson
|
181
|
180
|
custom.SignTime = signTime
|
|
@@ -189,7 +188,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
189
|
188
|
custom.Mtime = time.Now().Unix()
|
190
|
189
|
custom.ClientRemark = client_remark
|
191
|
190
|
custom.ToplineTime = topline_time
|
192
|
|
- err := service.UpdateCustom(custom)
|
|
191
|
+ err := service.UpdateCustomTwo(custom)
|
193
|
192
|
if err != nil {
|
194
|
193
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
195
|
194
|
return
|
|
@@ -210,7 +209,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
210
|
209
|
custom.ImplementRemark = implementRemark
|
211
|
210
|
custom.ID = id
|
212
|
211
|
custom.Mtime = time.Now().Unix()
|
213
|
|
- err := service.UpdateCustom(custom)
|
|
212
|
+ err := service.UpdateCustomTwo(custom)
|
214
|
213
|
if err != nil {
|
215
|
214
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
216
|
215
|
return
|
|
@@ -230,7 +229,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
230
|
229
|
custom.LisContact = lisContact
|
231
|
230
|
custom.ID = id
|
232
|
231
|
custom.Mtime = time.Now().Unix()
|
233
|
|
- err := service.UpdateCustom(custom)
|
|
232
|
+ err := service.UpdateCustomTwo(custom)
|
234
|
233
|
if err != nil {
|
235
|
234
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
236
|
235
|
return
|
|
@@ -250,7 +249,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
250
|
249
|
custom.YbRemark = ybRemark
|
251
|
250
|
custom.ID = id
|
252
|
251
|
custom.Mtime = time.Now().Unix()
|
253
|
|
- err := service.UpdateCustom(custom)
|
|
252
|
+ err := service.UpdateCustomTwo(custom)
|
254
|
253
|
if err != nil {
|
255
|
254
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
256
|
255
|
return
|
|
@@ -271,7 +270,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
271
|
270
|
custom.QcRemark = qcRemark
|
272
|
271
|
custom.ID = id
|
273
|
272
|
custom.Mtime = time.Now().Unix()
|
274
|
|
- err := service.UpdateCustom(custom)
|
|
273
|
+ err := service.UpdateCustomTwo(custom)
|
275
|
274
|
if err != nil {
|
276
|
275
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
277
|
276
|
return
|
|
@@ -286,7 +285,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
286
|
285
|
custom.Remark = remark
|
287
|
286
|
custom.ID = id
|
288
|
287
|
custom.Mtime = time.Now().Unix()
|
289
|
|
- err := service.UpdateCustom(custom)
|
|
288
|
+ err := service.UpdateCustomTwo(custom)
|
290
|
289
|
if err != nil {
|
291
|
290
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
292
|
291
|
return
|
|
@@ -337,7 +336,7 @@ func (this *CustomAPIController) ModifyCustom() {
|
337
|
336
|
|
338
|
337
|
custom.ID = id
|
339
|
338
|
custom.Mtime = time.Now().Unix()
|
340
|
|
- err := service.UpdateCustom(custom)
|
|
339
|
+ err := service.UpdateCustomTwo(custom)
|
341
|
340
|
if err != nil {
|
342
|
341
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
343
|
342
|
return
|
|
@@ -618,6 +617,8 @@ func (this *CustomAPIController) CreateContractInfo() {
|
618
|
617
|
code := this.GetString("code")
|
619
|
618
|
name := this.GetString("name")
|
620
|
619
|
sumamt := this.GetString("sumamt")
|
|
620
|
+ custom_name := this.GetString("custom_name")
|
|
621
|
+
|
621
|
622
|
start_time := this.GetString("start_time")
|
622
|
623
|
end_time := this.GetString("end_time")
|
623
|
624
|
signing_person := this.GetString("signing_person")
|
|
@@ -638,6 +639,7 @@ func (this *CustomAPIController) CreateContractInfo() {
|
638
|
639
|
SigningPerson: signing_person,
|
639
|
640
|
WordFileUrl: wordFileURL,
|
640
|
641
|
PdfFileUrl: pdfFileURL,
|
|
642
|
+ CustomName: custom_name,
|
641
|
643
|
Remark: remark,
|
642
|
644
|
Ctime: ctime,
|
643
|
645
|
Mtime: mtime,
|
|
@@ -897,6 +899,9 @@ func (this *CustomAPIController) EditDemandInfo() {
|
897
|
899
|
demandStatus, _ := this.GetInt64("demand_status")
|
898
|
900
|
demandCreator := this.GetString("demand_creator")
|
899
|
901
|
demandCreateDate := this.GetString("demand_create_date")
|
|
902
|
+ demandFinishDate := this.GetString("demand_finish_date")
|
|
903
|
+ demandDetail := this.GetString("demand_detail")
|
|
904
|
+
|
900
|
905
|
demandDirector := this.GetString("demand_director")
|
901
|
906
|
cd, _ := service.FindChargeDemandInfo(id)
|
902
|
907
|
cd.DemandType = demandType
|
|
@@ -904,7 +909,9 @@ func (this *CustomAPIController) EditDemandInfo() {
|
904
|
909
|
cd.DemandStatus = demandStatus
|
905
|
910
|
cd.DemandCreator = demandCreator
|
906
|
911
|
cd.DemandCreateDate = demandCreateDate
|
|
912
|
+ cd.DemandFinishDate = demandFinishDate
|
907
|
913
|
cd.DemandDirector = demandDirector
|
|
914
|
+ cd.DemandDetail = demandDetail
|
908
|
915
|
cd.Mtime = time.Now().Unix()
|
909
|
916
|
err := service.SaveChargeDemand(&cd)
|
910
|
917
|
if err != nil {
|