jinlin
2024-07-15 878b3569173004ea52ad7c6a538abc86e056d5c8
modules/mainPart/src/main/resources/mapper/basicInfo/ParamDataDao.xml
@@ -2,6 +2,9 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zt.life.modules.mainPart.basicInfo.dao.ParamDataDao">
    <delete id="deleteByShipId">
        delete from param_data where ship_id =${shipId}
    </delete>
    <select id="getList" resultType="com.zt.life.modules.mainPart.basicInfo.model.ParamData">
        SELECT
@@ -38,5 +41,11 @@
          and a.page_code = #{pageCode}
        limit 1
    </select>
    <select id="getByShipId" resultType="com.zt.life.modules.mainPart.basicInfo.model.ParamData">
        SELECT a.*
        FROM param_data a
        where a.is_delete = 0
          and a.ship_id = #{shipId}
    </select>
</mapper>