新增详情批量修改状态

This commit is contained in:
syruan 2024-08-22 15:04:06 +08:00
parent 413b6857d2
commit 2b516d65bf
3 changed files with 16 additions and 3 deletions

View File

@ -68,6 +68,8 @@ public interface BpmPurchaseInfoMapper {
*/
int updateIsActiveById(@Param("id")Integer id);
int updateStatusByIdIn(@Param("updatedStatus")Integer updatedStatus,@Param("idCollection")Collection<Integer> idCollection);
/**
* insert record to table

View File

@ -221,9 +221,9 @@ public class BpmPurchaseInfoService{
return bpmPurchaseInfoMapper.updateIsActiveById(id);
}
public int updateStatusByIdIn(Integer updatedStatus,Collection<Integer> idCollection){
return bpmPurchaseInfoMapper.updateStatusByIdIn(updatedStatus,idCollection);
}

View File

@ -779,4 +779,15 @@
#{item,jdbcType=INTEGER}
</foreach>
</select>
<!--by syruan on 2024-08-22-->
<update id="updateStatusByIdIn">
update bpm_purchase_info
set `status`=#{updatedStatus,jdbcType=TINYINT}
where id in
<foreach item="item" index="index" collection="idCollection"
open="(" separator="," close=")">
#{item,jdbcType=INTEGER}
</foreach>
</update>
</mapper>