|
@@ -850,24 +850,42 @@ func (this *OilSupplierCertController) AuditEntityFir() {
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
|
|
|
|
|
if receiveVal == "true" {
|
|
if receiveVal == "true" {
|
|
|
- supplierCertEntity.Status = status
|
|
|
|
|
- supplierCertEntity.Step = step
|
|
|
|
|
- cols := []string{
|
|
|
|
|
- "Status",
|
|
|
|
|
- "Step",
|
|
|
|
|
- }
|
|
|
|
|
- certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
|
|
|
- if supplierCertEntity.Status == suppliercert.PAYING_AUDIT_STATUS {//PAYING_AUDIT_STATUS {
|
|
|
|
|
- paysvc := paymentinfo.GetPaymentService(utils.DBE)
|
|
|
|
|
- var Amount float64
|
|
|
|
|
- if supplierCertEntity.SupplierTypeCode == "01" {
|
|
|
|
|
- Amount = 6000
|
|
|
|
|
- }else if supplierCertEntity.SupplierTypeCode == "02"{
|
|
|
|
|
- Amount = 7000
|
|
|
|
|
- }else if supplierCertEntity.SupplierTypeCode == "03" {
|
|
|
|
|
- Amount = 8000
|
|
|
|
|
|
|
+ if supplierCertEntity.Status == suppliercert.CENT_AUDIT_STATUS {
|
|
|
|
|
+ if supplierCertEntity.InStyle == "1" {
|
|
|
|
|
+ paysvc := paymentinfo.GetPaymentService(utils.DBE)
|
|
|
|
|
+ var Amount float64
|
|
|
|
|
+ if supplierCertEntity.SupplierTypeCode == "01" {
|
|
|
|
|
+ Amount = 6000
|
|
|
|
|
+ } else if supplierCertEntity.SupplierTypeCode == "02" {
|
|
|
|
|
+ Amount = 7000
|
|
|
|
|
+ } else if supplierCertEntity.SupplierTypeCode == "03" {
|
|
|
|
|
+ Amount = 8000
|
|
|
|
|
+ }
|
|
|
|
|
+ paysvc.AddPaymentinfo(supplierCertEntity.SupplierId, supplierCertEntity.Id, Amount, "1")
|
|
|
|
|
+ supplierCertEntity.Status = status
|
|
|
|
|
+ supplierCertEntity.Step = step
|
|
|
|
|
+ cols := []string{
|
|
|
|
|
+ "Status",
|
|
|
|
|
+ "Step",
|
|
|
|
|
+ }
|
|
|
|
|
+ certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ supplierCertEntity.Status = suppliercert.STOREING_STATUS
|
|
|
|
|
+ supplierCertEntity.Step = step
|
|
|
|
|
+ cols := []string{
|
|
|
|
|
+ "Status",
|
|
|
|
|
+ "Step",
|
|
|
|
|
+ }
|
|
|
|
|
+ certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ supplierCertEntity.Status = status
|
|
|
|
|
+ supplierCertEntity.Step = step
|
|
|
|
|
+ cols := []string{
|
|
|
|
|
+ "Status",
|
|
|
|
|
+ "Step",
|
|
|
}
|
|
}
|
|
|
- paysvc.AddPaymentinfo(supplierCertEntity.SupplierId, supplierCertEntity.Id, Amount,"1")
|
|
|
|
|
|
|
+ certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
|
}
|
|
}
|
|
|
errinfo.Message = "提交成功!"
|
|
errinfo.Message = "提交成功!"
|
|
|
errinfo.Code = 0
|
|
errinfo.Code = 0
|
|
@@ -996,6 +1014,7 @@ func (this *OilSupplierCertController) IsAccess() {
|
|
|
// @router /createaccesscardno/:type [get]
|
|
// @router /createaccesscardno/:type [get]
|
|
|
func (this *OilSupplierCertController) CreateAccessCardNo() {
|
|
func (this *OilSupplierCertController) CreateAccessCardNo() {
|
|
|
Id := this.GetString("Id")
|
|
Id := this.GetString("Id")
|
|
|
|
|
+ certId := this.GetString(("SupplierCertId"))
|
|
|
typeCode := this.Ctx.Input.Param(":type")
|
|
typeCode := this.Ctx.Input.Param(":type")
|
|
|
codecSvc := codecsequence.GetCodecSequenceService(utils.DBE)
|
|
codecSvc := codecsequence.GetCodecSequenceService(utils.DBE)
|
|
|
var model []supplier.OilSupplier
|
|
var model []supplier.OilSupplier
|
|
@@ -1042,6 +1061,10 @@ func (this *OilSupplierCertController) CreateAccessCardNo() {
|
|
|
cols = []string{"JSAccessCardNo"}
|
|
cols = []string{"JSAccessCardNo"}
|
|
|
}
|
|
}
|
|
|
codecSvc.UpdateEntityByIdCols(Id, &entity, cols)
|
|
codecSvc.UpdateEntityByIdCols(Id, &entity, cols)
|
|
|
|
|
+ var cert suppliercert.OilSupplierCert
|
|
|
|
|
+ certcols := []string{"AccessCardNo"}
|
|
|
|
|
+ cert.AccessCardNo = seqStr
|
|
|
|
|
+ codecSvc.UpdateEntityByIdCols(certId, &cert, certcols)
|
|
|
this.Data["json"] = seqStr
|
|
this.Data["json"] = seqStr
|
|
|
this.ServeJSON()
|
|
this.ServeJSON()
|
|
|
}
|
|
}
|