状态变更
This commit is contained in:
parent
2b516d65bf
commit
bb5bd836a2
|
|
@ -116,4 +116,6 @@ public interface BpmPurchaseInfoMapper {
|
|||
* @return update count
|
||||
*/
|
||||
int updateByPrimaryKey(BpmPurchaseInfo record);
|
||||
|
||||
int updateStatusById(@Param("updatedStatus") Byte updatedStatus, @Param("id") Integer id);
|
||||
}
|
||||
|
|
@ -221,6 +221,10 @@ public class BpmPurchaseInfoService{
|
|||
return bpmPurchaseInfoMapper.updateIsActiveById(id);
|
||||
}
|
||||
|
||||
public int updateStatusByIdIn(Byte updatedStatus,Integer id){
|
||||
return bpmPurchaseInfoMapper.updateStatusById(updatedStatus,id);
|
||||
}
|
||||
|
||||
public int updateStatusByIdIn(Integer updatedStatus,Collection<Integer> idCollection){
|
||||
return bpmPurchaseInfoMapper.updateStatusByIdIn(updatedStatus,idCollection);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -790,4 +790,9 @@
|
|||
#{item,jdbcType=INTEGER}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="updateStatusById">
|
||||
update bpm_purchase_info
|
||||
set `status`=#{updatedStatus,jdbcType=TINYINT}
|
||||
where id=#{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue