package thyyxxk.webserver.dao.his.targetmanagement;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import thyyxxk.webserver.entity.highreport.ZbReportCycleScore;
import thyyxxk.webserver.entity.targetmanagement.TargetDictTree;
import thyyxxk.webserver.entity.targetmanagement.TargetManagement;
import thyyxxk.webserver.entity.targetmanagement.ZbZdBaseInfo;
import java.util.List;
/**
* @description: 指标字典
* @author: hsh
* @date: 2023/5/30 17:24
**/
@Mapper
public interface ZbZdBaseInfoDao {
@Select("")
List selectZbZdBaseInfo(TargetManagement dto);
@Select("")
ZbZdBaseInfo selectZbZdBaseInfoById(TargetManagement target);
@Select("")
List selectTargetDictTree(TargetManagement dto);
@Insert("insert into zb_zd_base_info (id, name, pid, sort, score, ratio, type, state, open_time, dept, dept_code, " +
"op, op_id, definition, method, score_rule, source, is_leaf, child_id, mom_id) " +
"values (#{id},#{name},#{pid},#{sort},#{score},#{ratio},#{type},#{state},#{openTime},#{dept},#{deptCode}, " +
"#{op},#{opId},#{definition},#{method},#{scoreRule},#{source},#{isLeaf},#{childId},#{momId})")
int saveZbZdBaseInfo(ZbZdBaseInfo zbZdBaseInfo);
@Update("")
int updateZbZdBaseInfo(ZbZdBaseInfo zbZdBaseInfo);
@Update("")
int deleteTargetDictById(@Param("id") String id, @Param("pid") String pid);
@Update("")
void updateZbZdBaseInfoCalcId(@Param("id") String id, @Param("pid") String pid, @Param("childId") String calcId, @Param("momId") String momId);
@Select(" select * from zb_zd_base_info where pid = #{pid} order by id ")
List selectTargetDictScoreBySecond(@Param("pid") String pid);
}