|
|
@@ -1405,7 +1405,7 @@ func (this *OilSupplierController) GetDictListByStatus() {
|
|
|
|
|
|
// 所有二级单位
|
|
|
var allunitorglist []organize.Base_Organize
|
|
|
- where = "Category='Unit' and ParentId = '100000001'"
|
|
|
+ where = "Category='Unit' and ParentId in (100000001, 100000128)"
|
|
|
orgsvc.GetEntities(&allunitorglist, where)
|
|
|
dictList["Allunitorglist"] = allunitorglist
|
|
|
|
|
|
@@ -1677,15 +1677,15 @@ func (this *OilSupplierController) UpdateEntity() {
|
|
|
updateCols := svc.GetUpdateCols(OilSupplierCertName, typeCode, model.Id)
|
|
|
err := svc.UpdateEntityBytbl(OilSupplierName, id, &model, updateCols)
|
|
|
|
|
|
- isPay := "0"
|
|
|
- if instyle == suppliercert.PINGSHEN {
|
|
|
- isPay = "0"
|
|
|
- } else {
|
|
|
- isPay = "2"
|
|
|
- }
|
|
|
+ //isPay := "0"
|
|
|
+ //if instyle == suppliercert.PINGSHEN {
|
|
|
+ // isPay = "0"
|
|
|
+ //} else {
|
|
|
+ // isPay = "2"
|
|
|
+ //}
|
|
|
|
|
|
if err == nil {
|
|
|
- svc.DBE.Exec("update OilSupplierCert set InStyle='" + instyle + "', IsPay= " + isPay + " where SupplierId=" + id + " and SupplierTypeCode='" + typeCode + "'")
|
|
|
+ svc.DBE.Exec("update OilSupplierCert set InStyle='" + instyle + " where SupplierId=" + id + " and SupplierTypeCode='" + typeCode + "'") // "', IsPay= " + isPay +
|
|
|
errinfo.Message = "修改成功!"
|
|
|
errinfo.Code = 0
|
|
|
this.Data["json"] = &errinfo
|