状态变更
This commit is contained in:
parent
2b516d65bf
commit
bb5bd836a2
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue