|
|
@@ -234,7 +234,7 @@ func (this *OilSupplierCertAppendController) AddAppend() {
|
|
|
style, _ :=strconv.Atoi(modeltmp[0].InStyle)
|
|
|
if style != 6 {
|
|
|
id :=strconv.Itoa(modeltmp[0].SupplierId)
|
|
|
- sqlCount := "select count(*) from OilSupplierCertAppend where SupplierId=" + id + " AND YEAR(CreateOn)=YEAR(NOW())"
|
|
|
+ sqlCount := "select count(*) from OilSupplierCertAppend where SupplierId=" + id + " AND YEAR(CreateOn)=YEAR(NOW()) AND AppendType = '" + model.AppendType + "'"
|
|
|
var countRes, _ = svc.DBE.Query(sqlCount)
|
|
|
if len(countRes) > 0 {
|
|
|
results := countRes[0]
|