XxlJobHandler

This commit is contained in:
guohb
2024-04-07 11:26:44 +08:00
parent 7111222ce9
commit eb7b2a39ce
6 changed files with 66 additions and 3 deletions

View File

@@ -59,4 +59,7 @@ public interface LineInfoMapper extends Mapper<LineInfoDO> {
* @param lineInfoParam
*/
void insertOrUpdate(@Param("param") LineInfoDO lineInfoParam);
void toExperiencing(@Param("lineIds") List<Long> lineIds,
@Param("code") Integer code);
}

View File

@@ -19,4 +19,11 @@ public interface TrainingExperienceMapper {
LeaseBaseInfoDO selectByLineId(@Param("lineId") Long lineId);
List<LeaseBaseInfoDO> selectByLineIds(@Param("lineIds") List<Long> lineIds);
/**
* 查询当日的门店体验数据
* @return
*/
List<LeaseBaseInfoDO> selectESTime();
}

View File

@@ -280,6 +280,20 @@
</if>
</trim>
</insert>
<update id="toExperiencing">
UPDATE
xfsg_line_info
SET workflow_sub_stage_status = #{code}
WHERE
deleted = 0
AND workflow_sub_stage_status = 85
AND id in
<foreach collection="lineIds" item="lineId" open="(" close=")" separator=",">
#{lineId}
</foreach>
</update>
<select id="getByPartnerId" resultMap="BaseResultMap">
select * from xfsg_line_info where partner_id = #{partnerId} and deleted = 0

View File

@@ -88,6 +88,15 @@
</if>
</where>
</select>
<select id="selectESTime" resultType="com.cool.store.entity.LeaseBaseInfoDO">
SELECT
<include refid="Base_Column_List"/>
FROM
xfsg_lease_base_info
WHERE
DATE(experience_start_time) = CURDATE()
AND deleted = 0
</select>
</mapper>