|
|
@@ -2038,10 +2038,11 @@ func (this *OilSupplierController) AddEntity() {
|
|
|
// @Title 修改实体
|
|
|
// @Description 修改实体
|
|
|
// @Success 200 {object} controllers.Request
|
|
|
-// @router /update/:id/:type [post]
|
|
|
+// @router /update/:id/:type/:instyle [post]
|
|
|
func (this *OilSupplierController) UpdateEntity() {
|
|
|
id := this.Ctx.Input.Param(":id")
|
|
|
typeCode := this.Ctx.Input.Param(":type")
|
|
|
+ instyle := this.Ctx.Input.Param(":instyle")
|
|
|
var errinfo ErrorInfo
|
|
|
if id == "" {
|
|
|
errinfo.Message = "操作失败!请求信息不完整"
|
|
|
@@ -2075,6 +2076,7 @@ func (this *OilSupplierController) UpdateEntity() {
|
|
|
updateCols := svc.GetUpdateCols(OilSupplierCertName, typeCode, model.Id)
|
|
|
err := svc.UpdateEntityBytbl(OilSupplierName, id, &model, updateCols)
|
|
|
if err == nil {
|
|
|
+ svc.DBE.Exec("update OilSupplierCert set Instyle="+instyle+" where SupplierId="+id+" and SupplierTypeCode="+typeCode+"")
|
|
|
errinfo.Message = "修改成功!"
|
|
|
errinfo.Code = 0
|
|
|
this.Data["json"] = &errinfo
|