liurunyu
7 天以前 0bd3125739c0d8bded4f7bd405fd99f1723df964
pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml
@@ -386,7 +386,7 @@
        FROM
        (SELECT COUNT(DISTINCT user_id) AS count_user,'require_attend' AS title  FROM total WHERE user_id !=''
        UNION
        SELECT COUNT(DISTINCT user_id) AS count_user,'actual_attend' AS title  FROM total WHERE user_id !=''  AND login_time <![CDATA[ < ]]>  #{todayDt,jdbcType=TIMESTAMP}) record
        SELECT COUNT(DISTINCT user_id) AS count_user,'actual_attend' AS title  FROM total WHERE user_id !=''  AND login_time <![CDATA[ > ]]>  #{todayDt,jdbcType=TIMESTAMP}) record
    </select>
    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
@@ -394,8 +394,8 @@
        from sta_assembly_work_last
        where id = #{id,jdbcType=BIGINT}
    </delete>
    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast"
            useGeneratedKeys="true">
    <insert id="insert" parameterType="com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast"
           >
        insert into sta_assembly_work_last
        ( id, user_id, line_id
        , station_id, plan_id, process_id
@@ -407,8 +407,8 @@
               , #{status,jdbcType=TINYINT}
               , #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{assistants,jdbcType=VARCHAR})
    </insert>
    <insert id="insertSelective" keyColumn="id" keyProperty="id"
            parameterType="com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast" useGeneratedKeys="true">
    <insert id="insertSelective"
            parameterType="com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast">
        insert into sta_assembly_work_last
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">id,</if>