新增详情批量修改状态
This commit is contained in:
parent
413b6857d2
commit
2b516d65bf
|
|
@ -68,6 +68,8 @@ public interface BpmPurchaseInfoMapper {
|
||||||
*/
|
*/
|
||||||
int updateIsActiveById(@Param("id")Integer id);
|
int updateIsActiveById(@Param("id")Integer id);
|
||||||
|
|
||||||
|
int updateStatusByIdIn(@Param("updatedStatus")Integer updatedStatus,@Param("idCollection")Collection<Integer> idCollection);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* insert record to table
|
* insert record to table
|
||||||
|
|
|
||||||
|
|
@ -221,9 +221,9 @@ public class BpmPurchaseInfoService{
|
||||||
return bpmPurchaseInfoMapper.updateIsActiveById(id);
|
return bpmPurchaseInfoMapper.updateIsActiveById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int updateStatusByIdIn(Integer updatedStatus,Collection<Integer> idCollection){
|
||||||
|
return bpmPurchaseInfoMapper.updateStatusByIdIn(updatedStatus,idCollection);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -779,4 +779,15 @@
|
||||||
#{item,jdbcType=INTEGER}
|
#{item,jdbcType=INTEGER}
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
Loading…
Reference in New Issue