状态变更

This commit is contained in:
mashuai 2024-08-22 15:10:36 +08:00
parent 2b516d65bf
commit bb5bd836a2
3 changed files with 11 additions and 0 deletions

View File

@ -116,4 +116,6 @@ public interface BpmPurchaseInfoMapper {
* @return update count * @return update count
*/ */
int updateByPrimaryKey(BpmPurchaseInfo record); int updateByPrimaryKey(BpmPurchaseInfo record);
int updateStatusById(@Param("updatedStatus") Byte updatedStatus, @Param("id") Integer id);
} }

View File

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

View File

@ -790,4 +790,9 @@
#{item,jdbcType=INTEGER} #{item,jdbcType=INTEGER}
</foreach> </foreach>
</update> </update>
<update id="updateStatusById">
update bpm_purchase_info
set `status`=#{updatedStatus,jdbcType=TINYINT}
where id=#{id,jdbcType=INTEGER}
</update>
</mapper> </mapper>