package com.chenyang.nse.bussiness.dao.table.core.duty;

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.duty.FieldPermissionsInfo;
import org.springframework.stereotype.Repository;

@Repository
public class FieldPermissionsInfoDao extends BaseDao<FieldPermissionsInfo, String> {
   public void updateFieldInfo(String dutytableid, String column, String businessid, String skillid) {
      String sql = "update t_console_fieldpermissions set businessid = '" + businessid + "',skillid = '" + skillid + "' where dutytableid = '" + dutytableid + "' and columnname = '" + column + "'";
      this.getSession().createNativeQuery(sql).executeUpdate();
   }
}
